{ "openapi": "3.0.3", "info": { "title": "API Reference", "version": "v0", "description": "Sentry Public API", "termsOfService": "http://sentry.io/terms/", "contact": { "email": "partners@sentry.io" }, "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" } }, "paths": { "/": { "get": { "operationId": "retrieveApiIndex", "description": "Return the API version, the scopes of the token that authenticated the request,\nand the authenticated user. Use it to check which scopes a token has.\n\nAuthentication is optional. `auth` is null unless the request uses a token or API\nkey. `user` is null for anonymous requests and for credentials that don't belong\nto a user, such as API keys and organization auth tokens.", "summary": "Retrieve the Current Credentials", "tags": [ "Users" ], "security": [ { "auth_token": [] }, {} ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "version": { "type": "string", "description": "API version. Always \"0\"" }, "auth": { "type": "object", "properties": { "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes stored on the token or API key that authenticated the request" } }, "required": [ "scopes" ], "nullable": true, "description": "The credentials that authenticated the request, or null for session and anonymous requests" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" }, "options": { "type": "object", "properties": { "theme": { "type": "string", "description": "UI theme: \"light\", \"dark\" or \"system\". Defaults to \"system\"" }, "language": { "type": "string", "description": "UI language code, such as `en`" }, "stacktraceOrder": { "enum": [ -1, 1, 2 ], "type": "integer", "description": "Stack trace frame order: -1 for the default (most recent first), 1 for most recent last, 2 for most recent first" }, "defaultIssueEvent": { "type": "string", "description": "Event shown by default on issue details: \"recommended\", \"latest\" or \"oldest\"" }, "timezone": { "type": "string", "description": "Time zone for displayed dates, such as `UTC`" }, "clock24Hours": { "type": "boolean", "description": "Whether times are shown in 24-hour format" }, "prefersIssueDetailsStreamlinedUI": { "type": "boolean", "nullable": true, "description": "Whether the user prefers the streamlined issue details UI, or null if they haven't chosen" } }, "required": [ "clock24Hours", "defaultIssueEvent", "language", "prefersIssueDetailsStreamlinedUI", "stacktraceOrder", "theme", "timezone" ], "description": "Preferences of the user" }, "flags": { "type": "object", "properties": { "newsletter_consent_prompt": { "type": "boolean", "description": "Whether to ask the user for newsletter consent" } }, "required": [ "newsletter_consent_prompt" ], "description": "Account flags of the user" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "flags", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "options", "username" ], "nullable": true, "description": "The authenticated user, or null for anonymous requests and requests made with an API key or organization auth token" } }, "required": [ "auth", "user", "version" ] }, "examples": { "RetrieveTheCurrentCredentials": { "value": { "version": "0", "auth": { "scopes": [ "org:read", "project:read" ] }, "user": { "id": "1", "name": "Jane Bloggs", "username": "jane@example.com", "email": "jane@example.com", "avatarUrl": "https://gravatar.com/avatar/1d4e7f2c9b3a?s=32&d=mm", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2023-03-01T18:12:42.000000Z", "lastLogin": "2026-11-02T09:31:05.000000Z", "has2fa": true, "lastActive": "2026-11-07T15:20:11.000000Z", "isSuperuser": false, "isStaff": false, "emails": [ { "id": "1", "email": "jane@example.com", "is_verified": true } ], "experiments": {}, "options": { "theme": "system", "language": "en", "stacktraceOrder": -1, "defaultIssueEvent": "recommended", "timezone": "UTC", "clock24Hours": false, "prefersIssueDetailsStreamlinedUI": null }, "flags": { "newsletter_consent_prompt": false }, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null }, "identities": [] } }, "summary": "Retrieve the current credentials" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "429": { "description": "Too Many Requests" } }, "x-sentry-routing": { "silo": "control" } } }, "/organizations/": { "get": { "operationId": "listOrganizations", "description": "Return a list of organizations available to the authenticated session in a region.\nThis is particularly useful for requests with a user bound context. For API key-based requests this will only return the organization that belongs to the key.", "summary": "List Your Organizations", "parameters": [ { "in": "query", "name": "owner", "schema": { "type": "boolean" }, "description": "Specify `true` to restrict results to organizations in which you are an owner." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Filters results by using [query syntax](/product/sentry-basics/search/).\n\nValid query fields include:\n- `id`: The organization ID\n- `slug`: The organization slug\n- `status`: The organization's current status (one of `active`, `pending_deletion`, or `deletion_in_progress`)\n- `email` or `member_id`: Filter your organizations by the emails or [organization member IDs](/api/organizations/list-an-organizations-members/) of specific members included\n- `query`: Filter your organizations by name, slug, and members that contain this substring\n\nExample: `query=(slug:foo AND status:active) OR (email:[thing-one@example.com,thing-two@example.com] AND query:bar)`\n" }, { "in": "query", "name": "sortBy", "schema": { "type": "string" }, "description": "The field to sort results by, in descending order. If not specified the results are sorted by the date they were created.\n\nValid fields include:\n- `members`: By number of members\n- `events`: By number of events in the past 24 hours\n" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." } ], "tags": [ "Users" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ] } }, "examples": { "ListYourOrganizations": { "value": [ { "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "dateCreated": "2018-11-06T21:19:55.101Z", "features": [ "session-replay-video", "onboarding", "advanced-search", "monitor-seat-billing", "issue-platform" ], "hasAuthProvider": false, "id": "2", "isEarlyAdopter": false, "allowMemberInvite": true, "allowMemberProjectCreation": true, "allowSuperuserAccess": false, "links": { "organizationUrl": "https://the-interstellar-jurisdiction.sentry.io", "regionUrl": "https://us.sentry.io" }, "name": "The Interstellar Jurisdiction", "require2FA": false, "slug": "the-interstellar-jurisdiction", "status": { "id": "active", "name": "active" } } ], "summary": "List your organizations" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "both" } } }, "/organizations/{organization_id_or_slug}/": { "get": { "operationId": "getOrganization", "description": "Return details on an individual organization, including various details\nsuch as membership access and teams.", "summary": "Retrieve an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "detailed", "schema": { "type": "string" }, "description": "\nSpecify `\"0\"` to return organization details that do not include projects or teams.\n" } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ] }, "examples": { "RetrieveAnOrganization": { "value": { "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "dateCreated": "2018-11-06T21:19:55.101Z", "hasAuthProvider": false, "id": "2", "isEarlyAdopter": false, "allowMemberInvite": true, "allowMemberProjectCreation": true, "allowSuperuserAccess": false, "links": { "organizationUrl": "https://the-interstellar-jurisdiction.sentry.io", "regionUrl": "https://us.sentry.io" }, "name": "The Interstellar Jurisdiction", "require2FA": false, "slug": "the-interstellar-jurisdiction", "status": { "id": "active", "name": "active" } }, "summary": "Retrieve an organization" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateOrganization", "description": "Update various attributes and configurable settings for the given organization.", "summary": "Update an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Organizations" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "slug": { "type": "string", "description": "The new slug for the organization, which needs to be unique.", "maxLength": 50 }, "name": { "type": "string", "description": "The new name for the organization.", "maxLength": 64 }, "isEarlyAdopter": { "type": "boolean", "description": "Specify `true` to opt-in to new features before they're released to the public." }, "hideAiFeatures": { "type": "boolean", "description": "Specify `true` to hide AI features from the organization." }, "defaultRole": { "enum": [ "member", "admin", "manager", "owner" ], "type": "string", "description": "The default role new members will receive.\n\n* `member` - Member\n* `admin` - Admin\n* `manager` - Manager\n* `owner` - Owner" }, "openMembership": { "type": "boolean", "description": "Specify `true` to allow organization members to freely join any team." }, "eventsMemberAdmin": { "type": "boolean", "description": "Specify `true` to allow members to delete events (including the delete & discard action) by granting them the `event:admin` scope." }, "alertsMemberWrite": { "type": "boolean", "description": "Specify `true` to allow members to create, edit, and delete alert rules by granting them the `alerts:write` scope." }, "attachmentsRole": { "enum": [ "member", "admin", "manager", "owner" ], "type": "string", "description": "The role required to download event attachments, such as native crash reports or log files.\n\n* `member` - Member\n* `admin` - Admin\n* `manager` - Manager\n* `owner` - Owner" }, "debugFilesRole": { "enum": [ "member", "admin", "manager", "owner" ], "type": "string", "description": "The role required to download debug information files, ProGuard mappings and source maps.\n\n* `member` - Member\n* `admin` - Admin\n* `manager` - Manager\n* `owner` - Owner" }, "hasGranularReplayPermissions": { "type": "boolean", "description": "Specify `true` to enable granular replay permissions, allowing per-member access control for replay data." }, "replayAccessMembers": { "type": "array", "items": { "type": "integer" }, "nullable": true, "description": "A list of user IDs who have permission to access replay data. Requires the hasGranularReplayPermissions flag to be true to be enforced." }, "avatarType": { "enum": [ "letter_avatar", "upload" ], "type": "string", "description": "The type of display picture for the organization.\n\n* `letter_avatar` - Use initials\n* `upload` - Upload an image" }, "avatar": { "type": "string", "description": "The image to upload as the organization avatar, in base64. Required if `avatarType` is `upload`." }, "require2FA": { "type": "boolean", "description": "Specify `true` to require and enforce two-factor authentication for all members." }, "allowSharedIssues": { "type": "boolean", "description": "Specify `true` to allow sharing of limited details on issues to anonymous users." }, "enhancedPrivacy": { "type": "boolean", "description": "Specify `true` to enable enhanced privacy controls to limit personally identifiable information (PII) as well as source code in things like notifications." }, "scrapeJavaScript": { "type": "boolean", "description": "Specify `true` to allow Sentry to scrape missing JavaScript source context when possible." }, "storeCrashReports": { "enum": [ 0, 1, 5, 10, 20, 50, 100, -1 ], "type": "integer", "description": "How many native crash reports (such as Minidumps for improved processing and download in issue details) to store per issue.\n\n* `0` - Disabled\n* `1` - 1 per issue\n* `5` - 5 per issue\n* `10` - 10 per issue\n* `20` - 20 per issue\n* `50` - 50 per issue\n* `100` - 100 per issue\n* `-1` - Unlimited" }, "allowJoinRequests": { "type": "boolean", "description": "Specify `true` to allow users to request to join your organization." }, "dataScrubber": { "type": "boolean", "description": "Specify `true` to require server-side data scrubbing for all projects." }, "dataScrubberDefaults": { "type": "boolean", "description": "Specify `true` to apply the default scrubbers to prevent things like passwords and credit cards from being stored for all projects." }, "sensitiveFields": { "type": "array", "items": { "type": "string" }, "description": "A list of additional global field names to match against when scrubbing data for all projects." }, "safeFields": { "type": "array", "items": { "type": "string" }, "description": "A list of global field names which data scrubbers should ignore." }, "scrubIPAddresses": { "type": "boolean", "description": "Specify `true` to prevent IP addresses from being stored for new events on all projects." }, "relayPiiConfig": { "type": "string", "description": "Advanced data scrubbing rules that can be configured for each project as a JSON string. The new rules will only apply to new incoming events. For more details on advanced data scrubbing, see our [full documentation](/security-legal-pii/scrubbing/advanced-datascrubbing/).\n\n> Warning: Calling this endpoint with this field fully overwrites the advanced data scrubbing rules.\n\nBelow is an example of a payload for a set of advanced data scrubbing rules for masking credit card numbers from the log message (equivalent to `[Mask] [Credit card numbers] from [$message]` in the Sentry app) and removing a specific key called `foo` (equivalent to `[Remove] [Anything] from [extra.foo]` in the Sentry app):\n```json\n{\n relayPiiConfig: \"{\\\"rules\":{\\\"0\\\":{\\\"type\\\":\\\"creditcard\\\",\\\"redaction\\\":{\\\"method\\\":\\\"mask\\\"}},\\\"1\\\":{\\\"type\\\":\\\"anything\\\",\\\"redaction\\\":{\\\"method\\\":\\\"remove\\\"}}},\\\"applications\\\":{\\\"$message\\\":[\\\"0\\\"],\\\"extra.foo\\\":[\\\"1\\\"]}}\"\n}\n```\n " }, "trustedRelays": { "type": "array", "items": { "type": "object", "additionalProperties": {} }, "description": "A list of local Relays (the name, public key, and description as a JSON) registered for the organization. This feature is only available for organizations on the Business and Enterprise plans. Read more about Relay [here](/product/relay/).\n\n Below is an example of a list containing a single local Relay registered for the organization:\n ```json\n {\n trustedRelays: [\n {\n name: \"my-relay\",\n publicKey: \"eiwr9fdruw4erfh892qy4493reyf89ur34wefd90h\",\n description: \"Configuration for my-relay.\"\n }\n ]\n }\n ```\n " }, "relayDsnEndpoint": { "type": "string", "nullable": true, "description": "A Relay base URL to use when displaying Client Key DSNs for this organization." }, "issueAlertsThreadFlag": { "type": "boolean", "description": "Specify `true` to allow the Sentry Slack integration to post replies in threads for an Issue Alert notification. Requires a Slack integration." }, "metricAlertsThreadFlag": { "type": "boolean", "description": "Specify `true` to allow the Sentry Slack integration to post replies in threads for a Metric Alert notification. Requires a Slack integration." }, "cancelDeletion": { "type": "boolean", "description": "Specify `true` to restore an organization that is pending deletion." }, "apdexThreshold": { "type": "integer", "description": "Deprecated. Response-time threshold in milliseconds previously used to compute Apdex." } } } } } }, "security": [ { "auth_token": [ "org:admin", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" }, "role": { "type": "string", "description": "Deprecated, use orgRole" }, "orgRole": { "type": "string", "description": "The requesting user's role in the organization" }, "planSampleRate": { "type": "number", "format": "double", "description": "Sample rate of the organization's plan, from 0 to 1" }, "desiredSampleRate": { "type": "number", "format": "double", "description": "Sample rate dynamic sampling aims for, from 0 to 1" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Experiment assignments for the organization, mapping each experiment name to active or control" }, "isDefault": { "type": "boolean", "description": "Whether this is the default organization of a single-organization install" }, "defaultRole": { "type": "string", "description": "Role that new members get by default" }, "orgRoleList": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Role ID, such as member or admin" }, "name": { "type": "string", "description": "Display name of the role" }, "desc": { "type": "string", "description": "Description of what the role can do" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes the role grants in this organization" }, "allowed": { "type": "boolean", "description": "Deprecated alias of isAllowed" }, "isAllowed": { "type": "boolean", "description": "Whether the requesting user can assign this role" }, "isRetired": { "type": "boolean", "description": "Whether the role is retired and shouldn't be assigned to more members" }, "isTeamRolesAllowed": { "type": "boolean", "description": "Whether members with this role can have team-level roles" }, "is_global": { "type": "boolean", "description": "Deprecated alias of isGlobal" }, "isGlobal": { "type": "boolean", "description": "Whether the role gives access to all teams and projects in the organization" }, "minimumTeamRole": { "type": "string", "description": "ID of the lowest team role that members with this organization role hold on every team" } }, "required": [ "allowed", "desc", "id", "isAllowed", "isGlobal", "isRetired", "isTeamRolesAllowed", "is_global", "minimumTeamRole", "name", "scopes" ] }, "description": "Organization roles available in the organization" }, "teamRoleList": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Role ID, such as member or admin" }, "name": { "type": "string", "description": "Display name of the role" }, "desc": { "type": "string", "description": "Description of what the role can do" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes the role grants in this organization" }, "allowed": { "type": "boolean", "description": "Deprecated alias of isAllowed" }, "isAllowed": { "type": "boolean", "description": "Whether the requesting user can assign this role" }, "isRetired": { "type": "boolean", "description": "Whether the role is retired and shouldn't be assigned to more members" }, "isTeamRolesAllowed": { "type": "boolean", "description": "Whether members with this role can have team-level roles" }, "isMinimumRoleFor": { "type": "string", "nullable": true, "description": "ID of the organization role whose members hold at least this team role on every team, or null" } }, "required": [ "allowed", "desc", "id", "isAllowed", "isMinimumRoleFor", "isRetired", "isTeamRolesAllowed", "name", "scopes" ] }, "description": "Team roles available in the organization" }, "openMembership": { "type": "boolean", "description": "Whether members can freely join any team" }, "allowSharedIssues": { "type": "boolean", "description": "Whether limited details of issues can be shared with anonymous users" }, "enhancedPrivacy": { "type": "boolean", "description": "Whether enhanced privacy controls limit personally identifiable information (PII) and source code in things like notifications" }, "dataScrubber": { "type": "boolean", "description": "Whether server-side data scrubbing is required for all projects" }, "dataScrubberDefaults": { "type": "boolean", "description": "Whether the default scrubbers apply to all projects, to keep things like passwords and credit cards from being stored" }, "sensitiveFields": { "type": "array", "items": { "type": "string" }, "description": "Additional field names that data scrubbing matches in all projects" }, "safeFields": { "type": "array", "items": { "type": "string" }, "description": "Field names that data scrubbers ignore in all projects" }, "storeCrashReports": { "type": "integer", "description": "How many native crash reports to store per issue; 0 is disabled and -1 is unlimited" }, "attachmentsRole": { "type": "string", "description": "Role required to download event attachments, such as native crash reports or log files" }, "debugFilesRole": { "type": "string", "description": "Role required to download debug information files, ProGuard mappings and source maps" }, "eventsMemberAdmin": { "type": "boolean", "description": "Whether members can delete events, through the event:admin scope" }, "alertsMemberWrite": { "type": "boolean", "description": "Whether members can create, edit and delete alert rules, through the alerts:write scope" }, "scrubIPAddresses": { "type": "boolean", "description": "Whether IP addresses are kept from being stored for new events in all projects" }, "scrapeJavaScript": { "type": "boolean", "description": "Whether Sentry scrapes missing JavaScript source context when possible" }, "allowJoinRequests": { "type": "boolean", "description": "Whether users can request to join the organization" }, "relayPiiConfig": { "type": "string", "nullable": true, "description": "Advanced data scrubbing rules of the organization as a JSON string, or null" }, "relayDsnEndpoint": { "type": "string", "nullable": true, "description": "Relay base URL used when displaying Client Key DSNs, or null" }, "trustedRelays": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the Relay" }, "description": { "type": "string", "description": "Description of the Relay" }, "publicKey": { "type": "string", "description": "Public key of the Relay" }, "created": { "type": "string", "format": "date-time", "description": "When the Relay was added" }, "lastModified": { "type": "string", "format": "date-time", "description": "When the Relay was added or its name or description last changed" } } }, "description": "Local Relays registered for the organization" }, "pendingAccessRequests": { "type": "integer", "description": "Number of pending requests to join teams in the organization" }, "hideAiFeatures": { "type": "boolean", "description": "Whether AI features are hidden for the organization" }, "aggregatedDataConsent": { "type": "boolean", "description": "Whether the organization agreed to let Sentry use its data in aggregate" }, "isDynamicallySampled": { "type": "boolean", "description": "Whether dynamic sampling keeps less than all events, for the organization or any of its projects" }, "issueAlertsThreadFlag": { "type": "boolean", "description": "Whether the Slack integration posts replies in threads for issue alert notifications" }, "metricAlertsThreadFlag": { "type": "boolean", "description": "Whether the Slack integration posts replies in threads for metric alert notifications" }, "requiresSso": { "type": "boolean", "description": "Whether the requesting user must sign in with SSO to access the organization" }, "defaultAutofixAutomationTuning": { "type": "string", "description": "Default Autofix automation tuning for new projects" }, "defaultSeerScannerAutomation": { "type": "boolean", "description": "Default issue scanner automation for new projects; on seat-based Seer plans, new projects always have it on" }, "enableSeerCoding": { "type": "boolean", "description": "Whether Seer coding is enabled for the organization" }, "defaultCodingAgent": { "type": "string", "description": "Coding agent that automated Autofix runs on new projects hand off to, or seer; applies to seat-based Seer plans" }, "defaultCodingAgentIntegrationId": { "type": "string", "nullable": true, "description": "Integration ID of the default coding agent, or null" }, "defaultAutomatedRunStoppingPoint": { "type": "string", "description": "Step where automated Autofix runs on new projects stop by default" }, "autoEnableCodeReview": { "type": "boolean", "description": "Whether code review is turned on for GitHub repositories when they're added" }, "autoOpenPrs": { "type": "boolean", "description": "Whether automated Autofix runs on new projects open pull requests by default" }, "defaultCodeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Code review triggers that GitHub repositories get when they're added" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Team ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Team slug, unique within the organization" }, "name": { "type": "string", "description": "Display name of the team" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the team was created (ISO 8601)" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of the team" }, "teamRole": { "type": "string", "nullable": true, "description": "The requesting user's role in the team" }, "flags": { "type": "object", "additionalProperties": { "type": "boolean" }, "description": "Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the team through their team role. Empty if the user has no access" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams" }, "isPending": { "type": "boolean", "description": "Whether the requesting user has a pending request to join the team" }, "memberCount": { "type": "integer", "description": "Number of members in the team" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Team avatar" }, "externalTeams": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Teams in external providers, such as Slack or GitHub, that are linked to this team" }, "organization": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ], "description": "Organization the team belongs to" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ] }, "description": "Projects the team has access to" } }, "required": [ "access", "avatar", "dateCreated", "flags", "hasAccess", "id", "isMember", "isPending", "memberCount", "name", "slug", "teamRole" ] }, "description": "Active teams of the organization" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "latestDeploys": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed" }, "options": { "type": "object", "additionalProperties": {}, "description": "Requested project options, keyed by option name. Only included when options are requested" }, "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "nullable": true, "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms seen in the project's events" }, "hasUserReports": { "type": "boolean", "description": "Whether the project has received user reports" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments seen in the project's events" }, "latestRelease": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ], "nullable": true, "description": "Latest release of the project" } }, "required": [ "access", "dateCreated", "environments", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "hasUserReports", "id", "isBookmarked", "isMember", "latestRelease", "name", "platform", "platforms", "slug", "team", "teams" ] }, "description": "Active projects of the organization" } }, "required": [ "aggregatedDataConsent", "alertsMemberWrite", "allowJoinRequests", "allowMemberInvite", "allowMemberProjectCreation", "allowSharedIssues", "allowSuperuserAccess", "attachmentsRole", "autoEnableCodeReview", "autoOpenPrs", "avatar", "dataScrubber", "dataScrubberDefaults", "dateCreated", "debugFilesRole", "defaultAutofixAutomationTuning", "defaultAutomatedRunStoppingPoint", "defaultCodeReviewTriggers", "defaultCodingAgent", "defaultCodingAgentIntegrationId", "defaultRole", "defaultSeerScannerAutomation", "enableSeerCoding", "enhancedPrivacy", "eventsMemberAdmin", "experiments", "hasAuthProvider", "hideAiFeatures", "id", "isDefault", "isDynamicallySampled", "isEarlyAdopter", "issueAlertsThreadFlag", "links", "metricAlertsThreadFlag", "name", "openMembership", "orgRoleList", "pendingAccessRequests", "projects", "relayDsnEndpoint", "relayPiiConfig", "require2FA", "requiresSso", "safeFields", "scrapeJavaScript", "scrubIPAddresses", "sensitiveFields", "slug", "status", "storeCrashReports", "teamRoleList", "teams", "trustedRelays" ] }, "examples": { "UpdateAnOrganization": { "value": { "id": "2", "slug": "the-interstellar-jurisdiction", "status": { "id": "active", "name": "active" }, "name": "The Interstellar Jurisdiction", "dateCreated": "2018-11-06T21:19:55.101Z", "isEarlyAdopter": false, "allowMemberInvite": true, "allowMemberProjectCreation": true, "allowSuperuserAccess": false, "require2FA": false, "requiresSso": false, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null }, "links": { "organizationUrl": "https://the-interstellar-jurisdiction.sentry.io", "regionUrl": "https://us.sentry.io" }, "hasAuthProvider": false, "access": [ "org:integrations", "member:admin", "alerts:write", "team:write", "team:admin", "project:write", "org:read", "member:write", "project:read", "member:read", "event:admin", "event:write", "org:write", "org:admin", "project:releases", "org:billing", "project:admin", "team:read", "event:read", "alerts:read" ], "onboardingTasks": [ { "task": "create_project", "status": "complete", "completionSeen": null, "dateCompleted": "2019-06-17T18:56:25.856360Z", "data": {} } ], "experiments": {}, "isDefault": false, "defaultRole": "member", "orgRoleList": [ { "id": "billing", "name": "Billing", "desc": "Can manage subscription and billing details.", "scopes": [ "org:billing" ], "allowed": true, "isAllowed": true, "isRetired": false, "is_global": false, "isGlobal": false, "isTeamRolesAllowed": false, "minimumTeamRole": "contributor" }, { "id": "member", "name": "Member", "desc": "Members can view and act on events, as well as view most other data within the organization.", "scopes": [ "team:read", "project:releases", "org:read", "event:read", "alerts:write", "member:read", "alerts:read", "event:admin", "project:read", "event:write" ], "allowed": true, "isAllowed": true, "isRetired": false, "is_global": false, "isGlobal": false, "isTeamRolesAllowed": true, "minimumTeamRole": "contributor" }, { "id": "admin", "name": "Admin", "desc": "Admin privileges on any teams of which they're a member. They can create new teams and projects, as well as remove teams and projects on which they already hold membership (or all teams, if open membership is enabled). Additionally, they can manage memberships of teams that they are members of. They cannot invite members to the organization.", "scopes": [ "team:admin", "org:integrations", "project:admin", "team:read", "project:releases", "org:read", "team:write", "event:read", "alerts:write", "member:read", "alerts:read", "event:admin", "project:read", "event:write", "project:write" ], "allowed": true, "isAllowed": true, "isRetired": true, "is_global": false, "isGlobal": false, "isTeamRolesAllowed": true, "minimumTeamRole": "admin" }, { "id": "manager", "name": "Manager", "desc": "Gains admin access on all teams as well as the ability to add and remove members.", "scopes": [ "team:admin", "org:integrations", "project:releases", "team:write", "member:read", "org:write", "project:write", "project:admin", "team:read", "org:read", "event:read", "member:write", "alerts:write", "alerts:read", "event:admin", "project:read", "event:write", "member:admin" ], "allowed": true, "isAllowed": true, "isRetired": false, "is_global": true, "isGlobal": true, "isTeamRolesAllowed": true, "minimumTeamRole": "admin" }, { "id": "owner", "name": "Owner", "desc": "Unrestricted access to the organization, its data, and its settings. Can add, modify, and delete projects and members, as well as make billing and plan changes.", "scopes": [ "team:admin", "org:integrations", "project:releases", "org:admin", "team:write", "member:read", "org:write", "project:write", "project:admin", "team:read", "org:read", "event:read", "member:write", "alerts:write", "org:billing", "alerts:read", "event:admin", "project:read", "event:write", "member:admin" ], "allowed": true, "isAllowed": true, "isRetired": false, "is_global": true, "isGlobal": true, "isTeamRolesAllowed": true, "minimumTeamRole": "admin" } ], "teamRoleList": [ { "id": "contributor", "name": "Contributor", "desc": "Contributors can view and act on events, as well as view most other data within the team's projects.", "scopes": [ "project:read", "project:releases", "member:read", "team:read", "event:read", "alerts:read", "event:write", "org:read" ], "allowed": false, "isAllowed": false, "isRetired": false, "isTeamRolesAllowed": true, "isMinimumRoleFor": null }, { "id": "admin", "name": "Team Admin", "desc": "Admin privileges on the team. They can create and remove projects, and can manage the team's memberships.", "scopes": [ "project:read", "project:releases", "member:read", "event:admin", "team:write", "project:admin", "team:read", "org:integrations", "alerts:write", "team:admin", "project:write", "event:read", "alerts:read", "event:write", "org:read" ], "allowed": false, "isAllowed": false, "isRetired": false, "isTeamRolesAllowed": true, "isMinimumRoleFor": "admin" } ], "openMembership": true, "allowSharedIssues": true, "enhancedPrivacy": false, "dataScrubber": false, "dataScrubberDefaults": false, "sensitiveFields": [], "safeFields": [], "storeCrashReports": 0, "attachmentsRole": "member", "debugFilesRole": "admin", "eventsMemberAdmin": true, "alertsMemberWrite": true, "scrubIPAddresses": false, "scrapeJavaScript": true, "allowJoinRequests": true, "relayPiiConfig": null, "relayDsnEndpoint": null, "hideAiFeatures": false, "aggregatedDataConsent": false, "defaultAutofixAutomationTuning": "off", "autoEnableCodeReview": true, "defaultCodeReviewTriggers": [ "on_ready_for_review", "on_new_commit" ], "defaultSeerScannerAutomation": true, "enableSeerCoding": true, "autoOpenPrs": false, "defaultCodingAgent": "seer", "defaultCodingAgentIntegrationId": null, "defaultAutomatedRunStoppingPoint": "code_changes", "issueAlertsThreadFlag": true, "metricAlertsThreadFlag": true, "trustedRelays": [], "role": "owner", "orgRole": "owner", "pendingAccessRequests": 0, "isDynamicallySampled": false, "teams": [ { "id": "1", "slug": "my-team", "name": "my-team", "dateCreated": "2019-06-17T18:56:19.729172Z", "isMember": true, "teamRole": "admin", "flags": { "idp:provisioned": false }, "access": [ "project:read", "project:releases", "member:read", "event:admin", "team:write", "project:admin", "team:read", "org:integrations", "alerts:write", "team:admin", "project:write", "event:read", "alerts:read", "event:write", "org:read" ], "hasAccess": true, "isPending": false, "memberCount": 1, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null } } ], "projects": [ { "team": { "id": "1", "slug": "my-team", "name": "my-team" }, "teams": [ { "id": "1", "slug": "my-team", "name": "my-team" } ], "id": "1", "name": "node", "slug": "node", "isBookmarked": false, "isMember": true, "access": [ "project:read", "project:releases", "member:read", "event:admin", "team:write", "project:admin", "team:read", "org:integrations", "alerts:write", "team:admin", "project:write", "event:read", "alerts:read", "event:write", "org:read" ], "hasAccess": true, "dateCreated": "2019-06-17T18:56:25.777769Z", "environments": [], "features": [ "releases" ], "firstEvent": null, "firstTransactionEvent": false, "hasSessions": false, "hasProfiles": false, "hasReplays": false, "hasFlags": false, "hasFeedbacks": false, "hasNewFeedbacks": false, "hasMonitors": false, "hasMinifiedStackTrace": false, "hasInsightsHttp": true, "hasInsightsDb": false, "hasInsightsAssets": true, "hasInsightsAppStart": false, "hasInsightsScreenLoad": false, "hasInsightsVitals": false, "hasInsightsCaches": false, "hasInsightsQueues": false, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "platform": "node", "platforms": [], "latestRelease": null, "hasUserReports": false, "latestDeploys": null } ] }, "summary": "Update an organization" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "description": "Conflict" }, "413": { "description": "Image too large." } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/agents/conversations/": { "get": { "operationId": "listOrganizationAIConversations", "description": "**Experimental:** This API is under active development and may change.\n\nReturn AI conversations ordered by latest span time.\n\n`query` uses Sentry search syntax.\n\n**Span filters**\n\n- Description: `\"payment failed\"`; status: `span.status:[error,internal_error]`.\n- Operation: `gen_ai.operation.type:tool`; tool: `gen_ai.tool.name:get_weather`.\n- Duration: `span.duration:>2s`; ID: `gen_ai.conversation.id:\"session:123\"`\n or `conversation.conversationId:\"session:123\"`.\n\n**Conversation filters**\n\n- Calls: `conversation.llmCalls` or `conversation.messages`, and\n `conversation.toolCalls`; failures: `conversation.errors` and\n `conversation.toolErrors`.\n- Usage: `conversation.inputTokens`, `conversation.outputTokens`,\n `conversation.totalTokens`, and `conversation.totalCost`.\n- Timespan: `conversation.timeSpan` measures elapsed time between first and last AI spans;\n `conversation.generationDuration` sums LLM call durations. Both use milliseconds.\n\nUse numeric comparisons such as `conversation.toolCalls:>2`. Queries return\nconversations, not spans. Each `AND` condition may match a different span.\nReturned totals include all AI spans in selected project, environment, and time\nfilters, not only matching spans.\n\nNegation means no span matches, including when an attribute is absent. Payloads\nare searchable only when recorded and not scrubbed. Payload failure text does\nnot mark a span as failed; set `span.status:error` for reliable failure search.\n\nConversations are searchable for the last 30 days. Ranges that reach further back,\nincluding a `statsPeriod` longer than 30 days, return a 400.", "summary": "List an Organization's AI Conversations", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Sentry search syntax matched against spans. A conversation is returned when any span in it matches. Summary fields include all spans in selected projects and time range, not only matching spans." }, { "in": "query", "name": "sort", "schema": { "type": "string", "enum": [ "-conversation.age", "-conversation.conversationId", "-conversation.errors", "-conversation.generationDuration", "-conversation.inputTokens", "-conversation.llmCalls", "-conversation.outputTokens", "-conversation.timeSpan", "-conversation.toolCalls", "-conversation.toolErrors", "-conversation.totalCost", "-conversation.totalTokens", "conversation.age", "conversation.conversationId", "conversation.errors", "conversation.generationDuration", "conversation.inputTokens", "conversation.llmCalls", "conversation.outputTokens", "conversation.timeSpan", "conversation.toolCalls", "conversation.toolErrors", "conversation.totalCost", "conversation.totalTokens" ] }, "description": "The field to sort conversations by. Prefix it with `-` to sort in descending order. Defaults to `-conversation.age`, most recent first." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Number of conversations to return per page. Defaults to 10; maximum is 100." } ], "tags": [ "Explore" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "endTimestamp": { "type": "integer", "description": "When the conversation's last AI span happened, as a Unix timestamp in milliseconds" }, "errors": { "type": "integer", "description": "Number of spans whose status isn't ok, cancelled or unknown" }, "generationDuration": { "type": "number", "format": "double", "description": "Total duration of the conversation's LLM calls in milliseconds" }, "inputTokens": { "type": "integer", "description": "Number of input tokens used by LLM calls" }, "llmCalls": { "type": "integer", "description": "Number of LLM calls" }, "outputTokens": { "type": "integer", "description": "Number of output tokens used by LLM calls" }, "startTimestamp": { "type": "integer", "description": "When the conversation's first AI span happened, as a Unix timestamp in milliseconds" }, "toolCalls": { "type": "integer", "description": "Number of tool calls" }, "toolErrors": { "type": "integer", "description": "Number of failed tool calls" }, "toolNames": { "type": "array", "items": { "type": "string" }, "description": "Names of the tools called, sorted" }, "totalCost": { "type": "number", "format": "double", "description": "Total cost of LLM calls" }, "totalTokens": { "type": "integer", "description": "Total number of tokens used by LLM calls" }, "conversationId": { "type": "string", "description": "ID of the conversation" }, "timeSpan": { "type": "number", "format": "double", "description": "Elapsed time between the first and last AI spans in milliseconds" }, "title": { "type": "string", "nullable": true, "description": "Stored title of the conversation. Null when it has none yet" }, "projectId": { "type": "integer", "nullable": true, "description": "ID of the project the conversation belongs to" }, "flow": { "type": "array", "items": { "type": "string" }, "description": "Names of the agents in the conversation" }, "traceCount": { "type": "integer", "description": "Number of traces in the conversation" }, "traceIds": { "type": "array", "items": { "type": "string" }, "description": "IDs of the traces in the conversation" }, "firstInput": { "type": "string", "nullable": true, "description": "First input message of the conversation" }, "lastOutput": { "type": "string", "nullable": true, "description": "Last output message of the conversation" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID of the user who started the conversation" }, "email": { "type": "string", "nullable": true, "description": "Email of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" } }, "required": [ "email", "id", "ip_address", "username" ], "nullable": true, "description": "User who started the conversation" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "description": "Slug of the project" } }, "required": [ "id", "name", "slug" ] }, "description": "Projects the conversation's spans belong to" }, "webUrl": { "type": "string", "format": "uri", "description": "URL of the conversation in Sentry" } }, "required": [ "conversationId", "endTimestamp", "errors", "firstInput", "flow", "generationDuration", "inputTokens", "lastOutput", "llmCalls", "outputTokens", "projectId", "projects", "startTimestamp", "timeSpan", "title", "toolCalls", "toolErrors", "toolNames", "totalCost", "totalTokens", "traceCount", "traceIds", "user", "webUrl" ] } }, "examples": { "ReturnAListOfAIConversations": { "value": [ { "conversationId": "01JQZ4W8X7J2Q9B4R5M6N7P8T9", "title": "Check San Francisco weather", "projectId": 1, "projects": [ { "id": 1, "name": "Weather Assistant", "slug": "weather-assistant" } ], "webUrl": "https://sentry.io/organizations/org-slug/explore/agents/conversations/01JQZ4W8X7J2Q9B4R5M6N7P8T9/?project=1", "flow": [ "Weather Assistant" ], "errors": 0, "llmCalls": 2, "toolCalls": 1, "totalTokens": 485, "inputTokens": 320, "outputTokens": 165, "totalCost": 0.0042, "timeSpan": 2500, "generationDuration": 1250.5, "startTimestamp": 1743465600000, "endTimestamp": 1743465602500, "traceCount": 1, "traceIds": [ "4c79f60c11214eb38604f4ae0781bfb2" ], "firstInput": "What is the weather in San Francisco?", "lastOutput": "It is currently 18°C and sunny in San Francisco.", "user": { "id": "123", "email": "user@example.com", "username": "example-user", "ip_address": "192.0.2.1" }, "toolNames": [ "get_weather" ], "toolErrors": 0 } ], "summary": "Return a list of AI conversations" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/agents/conversations/{conversation_id}/": { "get": { "operationId": "retrieveOrganizationAIConversation", "description": "**Experimental:** This API is under active development and may change.\n\nReturn spans recorded for one AI conversation in start-time order.\n\nMessage, tool, and response attributes contain their recorded string values.\n`stats.errors` counts spans whose status is not `ok`, `cancelled`, or `unknown`.\n`stats.errorToolNames` lists tools used by those spans.\n`stats.inputTokens` includes cache-read and cache-write tokens. In `stats.usageByModel`,\n`inputCost` includes cache-read and cache-write costs, and `outputCost` includes\nreasoning cost. These cost breakdowns are not added to `totalCost`.\nStats are returned on the first page only. Without an explicit range, Sentry widens\nthe search to the last 30 days. Ranges that reach further back, including a\n`statsPeriod` longer than 30 days, return a 400. A missing conversation returns an\nempty `spans` list.", "summary": "Retrieve an Organization's AI Conversation", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "conversation_id", "schema": { "type": "string" }, "description": "Conversation ID recorded in `gen_ai.conversation.id`.", "required": true }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Number of spans to return per page. Defaults to 100; maximum is 1,000." } ], "tags": [ "Explore" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "description": "Span page plus conversation-level metadata.", "properties": { "conversationId": { "type": "string", "description": "ID of the conversation" }, "title": { "type": "string", "nullable": true, "description": "Stored title of the conversation. Null when it has none yet" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "description": "Slug of the project" } }, "required": [ "id", "name", "slug" ] }, "description": "Projects the conversation's spans belong to" }, "webUrl": { "type": "string", "format": "uri", "description": "URL of the conversation in Sentry" }, "spans": { "type": "array", "items": { "type": "object", "additionalProperties": {} }, "description": "Spans recorded for the conversation, in start-time order" }, "stats": { "type": "object", "properties": { "endTimestamp": { "type": "integer", "description": "When the conversation's last AI span happened, as a Unix timestamp in milliseconds" }, "errors": { "type": "integer", "description": "Number of spans whose status isn't ok, cancelled or unknown" }, "generationDuration": { "type": "number", "format": "double", "description": "Total duration of the conversation's LLM calls in milliseconds" }, "inputTokens": { "type": "integer", "description": "Number of input tokens used by LLM calls" }, "llmCalls": { "type": "integer", "description": "Number of LLM calls" }, "outputTokens": { "type": "integer", "description": "Number of output tokens used by LLM calls" }, "startTimestamp": { "type": "integer", "description": "When the conversation's first AI span happened, as a Unix timestamp in milliseconds" }, "toolCalls": { "type": "integer", "description": "Number of tool calls" }, "toolErrors": { "type": "integer", "description": "Number of failed tool calls" }, "toolNames": { "type": "array", "items": { "type": "string" }, "description": "Names of the tools called, sorted" }, "totalCost": { "type": "number", "format": "double", "description": "Total cost of LLM calls" }, "totalTokens": { "type": "integer", "description": "Total number of tokens used by LLM calls" }, "cacheReadTokens": { "type": "integer", "description": "Number of input tokens read from the cache" }, "cacheWriteTokens": { "type": "integer", "description": "Number of input tokens written to the cache" }, "errorToolNames": { "type": "array", "items": { "type": "string" }, "description": "Names of the tools used by spans with errors" }, "reasoningTokens": { "type": "integer", "description": "Number of reasoning tokens" }, "cacheReadCost": { "type": "number", "format": "double", "description": "Cost of cache-read tokens" }, "cacheWriteCost": { "type": "number", "format": "double", "description": "Cost of cache-write tokens" }, "reasoningCost": { "type": "number", "format": "double", "description": "Cost of reasoning tokens" }, "usageByModel": { "type": "array", "items": { "type": "object", "properties": { "model": { "type": "string", "nullable": true, "description": "Name of the model" }, "llmCalls": { "type": "integer", "description": "Number of LLM calls to the model" }, "inputTokens": { "type": "integer", "description": "Number of input tokens, including cache-read and cache-write tokens" }, "outputTokens": { "type": "integer", "description": "Number of output tokens" }, "totalTokens": { "type": "integer", "description": "Total number of tokens" }, "cacheReadTokens": { "type": "integer", "description": "Number of input tokens read from the cache" }, "cacheWriteTokens": { "type": "integer", "description": "Number of input tokens written to the cache" }, "reasoningTokens": { "type": "integer", "description": "Number of reasoning tokens" }, "inputCost": { "type": "number", "format": "double", "description": "Cost of input tokens, including cache-read and cache-write costs" }, "outputCost": { "type": "number", "format": "double", "description": "Cost of output tokens, including reasoning cost" }, "cacheReadCost": { "type": "number", "format": "double", "description": "Cost of cache-read tokens" }, "cacheWriteCost": { "type": "number", "format": "double", "description": "Cost of cache-write tokens" }, "reasoningCost": { "type": "number", "format": "double", "description": "Cost of reasoning tokens" }, "totalCost": { "type": "number", "format": "double", "description": "Total cost" } }, "required": [ "cacheReadCost", "cacheReadTokens", "cacheWriteCost", "cacheWriteTokens", "inputCost", "inputTokens", "llmCalls", "model", "outputCost", "outputTokens", "reasoningCost", "reasoningTokens", "totalCost", "totalTokens" ] }, "description": "Token usage and cost per model" } }, "required": [ "cacheReadCost", "cacheReadTokens", "cacheWriteCost", "cacheWriteTokens", "endTimestamp", "errorToolNames", "errors", "generationDuration", "inputTokens", "llmCalls", "outputTokens", "reasoningCost", "reasoningTokens", "startTimestamp", "toolCalls", "toolErrors", "toolNames", "totalCost", "totalTokens", "usageByModel" ], "nullable": true, "description": "Aggregate stats for the conversation. Only returned on the first page" } }, "required": [ "conversationId", "projects", "spans", "stats", "title", "webUrl" ] }, "examples": { "ReturnAnAIConversation": { "value": { "conversationId": "01JQZ4W8X7J2Q9B4R5M6N7P8T9", "title": "Check San Francisco weather", "projects": [ { "id": 1, "name": "Weather Assistant", "slug": "weather-assistant" } ], "webUrl": "https://sentry.io/organizations/org-slug/explore/agents/conversations/01JQZ4W8X7J2Q9B4R5M6N7P8T9/?project=1", "stats": { "cacheReadTokens": 0, "cacheWriteTokens": 0, "cacheReadCost": 0, "cacheWriteCost": 0, "reasoningCost": 0, "endTimestamp": 1743465601250, "errors": 0, "errorToolNames": [], "generationDuration": 1250, "inputTokens": 0, "llmCalls": 1, "outputTokens": 0, "reasoningTokens": 0, "startTimestamp": 1743465600000, "toolCalls": 0, "toolErrors": 0, "toolNames": [], "totalCost": 0.0042, "totalTokens": 485, "usageByModel": [ { "model": "gpt-4o-mini-2024-07-18", "llmCalls": 1, "inputTokens": 0, "outputTokens": 0, "totalTokens": 485, "cacheReadTokens": 0, "cacheWriteTokens": 0, "reasoningTokens": 0, "inputCost": 0, "outputCost": 0, "cacheReadCost": 0, "cacheWriteCost": 0, "reasoningCost": 0, "totalCost": 0.0042 } ] }, "spans": [ { "span_id": "a1b2c3d4e5f67890", "trace": "4c79f60c11214eb38604f4ae0781bfb2", "parent_span": null, "precise.start_ts": 1743465600, "precise.finish_ts": 1743465601.25, "project": "weather-assistant", "project.id": 1, "span.op": "gen_ai.chat", "span.status": "ok", "span.description": "chat gpt-4o-mini", "span.duration": 1250, "transaction": "weather-agent", "is_transaction": false, "gen_ai.conversation.id": "01JQZ4W8X7J2Q9B4R5M6N7P8T9", "gen_ai.operation.type": "ai_client", "gen_ai.request.model": "gpt-4o-mini", "gen_ai.response.model": "gpt-4o-mini-2024-07-18", "gen_ai.input.messages": "[{\"role\":\"user\",\"content\":\"What is the weather in San Francisco?\"}]", "gen_ai.output.messages": "[{\"role\":\"assistant\",\"content\":\"It is currently 18°C and sunny in San Francisco.\"}]", "gen_ai.usage.total_tokens": 485, "gen_ai.cost.total_tokens": 0.0042, "user.id": "123", "user.email": "user@example.com", "errors": [], "occurrences": [] } ] }, "summary": "Return an AI conversation" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/artifactbundle/assemble/": { "post": { "operationId": "assembleOrganizationArtifactBundle", "description": "**Experimental:** This API is under active development and may change.\n\nAssemble previously uploaded chunks into an artifact bundle, such as source maps, and\nstore its debug IDs.\n\nThe response reports the bundle's `state`. If chunks are missing, upload them and send\nthe request again. Repeat the request to poll until the state is `ok` or `error`.\nResending an identical request is safe: a bundle that is already assembling or\nassembled reports its state instead of starting a new job.", "summary": "Assemble an Artifact Bundle", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Releases" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "projects": { "type": "array", "items": { "type": "string" }, "description": "The IDs or slugs of the projects the bundle belongs to." }, "checksum": { "type": "string", "pattern": "^[0-9a-f]{40}$", "description": "The SHA-1 checksum of the whole bundle." }, "chunks": { "type": "array", "items": { "type": "string", "pattern": "^[0-9a-f]{40}$" }, "description": "The SHA-1 checksums of the bundle's chunks, in order. Upload missing chunks with the chunk upload endpoint. Send an empty list to poll the bundle's state." }, "version": { "type": "string", "pattern": "^[^/]+$", "description": "The release to associate the bundle with." }, "dist": { "type": "string", "description": "The distribution to associate the bundle with. Requires `version`." } }, "required": [ "checksum", "chunks", "projects" ], "additionalProperties": false } } } }, "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "state": { "type": "string", "description": "State of the bundle: ok, not_found, created, assembling or error" }, "missingChunks": { "type": "array", "items": { "type": "string" }, "description": "Checksums of the chunks the server doesn't have yet" }, "detail": { "type": "string", "nullable": true, "description": "Error message when the state is error" } }, "required": [ "missingChunks", "state" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/available-actions/": { "get": { "operationId": "fetchOrganizationAvailableActions", "description": "**Experimental:** This API is under active development and may change.\n\nReturns a list of available actions for a given org", "summary": "List Available Alert Actions", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "type", "schema": { "type": "array", "items": { "type": "string", "enum": [ "discord", "email", "github", "github_enterprise", "jira", "jira_server", "msteams", "opsgenie", "pagerduty", "seer_workflow", "sentry_app", "slack", "slack_staging", "vsts", "webhook" ] } }, "description": "Filter by action type. Can be specified multiple times." } ], "tags": [ "Monitors" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Type of the action" }, "handlerGroup": { "type": "string", "description": "Group the action belongs to, such as notification or ticket_creation" }, "configSchema": { "type": "object", "properties": { "$schema": { "type": "string", "description": "URI of the JSON Schema dialect" }, "type": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "JSON type or types the value has" }, "description": { "type": "string", "description": "What the value is" }, "properties": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "object", "description": "Same as the JsonSchemaDocument this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "boolean" } ] }, "description": "Schemas of the object's properties, by property name. false forbids the property" }, "required": { "type": "array", "items": { "type": "string" }, "description": "Properties the object must have" }, "additionalProperties": { "type": "boolean", "description": "Whether the object can have properties that aren't listed" }, "enum": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "boolean" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "description": "Values the value can be" }, "default": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } }, { "type": "object", "additionalProperties": { "type": "string" } }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Value used when none is given" }, "items": { "type": "object", "description": "Schema of the array's items" }, "allOf": { "type": "array", "items": { "type": "object", "description": "Same as the JsonSchemaDocument this is inside. Its fields are left out here so it doesn't repeat forever." }, "description": "Schemas that the value must all match" }, "if": { "type": "object", "description": "Schema that decides whether then applies" }, "then": { "type": "object", "description": "Schema the value must match when if matches" }, "pattern": { "type": "string", "description": "Regular expression the string must match" } }, "description": "JSON schema of the action's config" }, "dataSchema": { "type": "object", "properties": { "$schema": { "type": "string", "description": "URI of the JSON Schema dialect" }, "type": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "JSON type or types the value has" }, "description": { "type": "string", "description": "What the value is" }, "properties": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "object", "description": "Same as the JsonSchemaDocument this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "boolean" } ] }, "description": "Schemas of the object's properties, by property name. false forbids the property" }, "required": { "type": "array", "items": { "type": "string" }, "description": "Properties the object must have" }, "additionalProperties": { "type": "boolean", "description": "Whether the object can have properties that aren't listed" }, "enum": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "boolean" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "description": "Values the value can be" }, "default": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } }, { "type": "object", "additionalProperties": { "type": "string" } }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Value used when none is given" }, "items": { "type": "object", "description": "Schema of the array's items" }, "allOf": { "type": "array", "items": { "type": "object", "description": "Same as the JsonSchemaDocument this is inside. Its fields are left out here so it doesn't repeat forever." }, "description": "Schemas that the value must all match" }, "if": { "type": "object", "description": "Schema that decides whether then applies" }, "then": { "type": "object", "description": "Schema the value must match when if matches" }, "pattern": { "type": "string", "description": "Regular expression the string must match" } }, "description": "JSON schema of the action's data" }, "sentryApp": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry app" }, "name": { "type": "string", "description": "Name of the Sentry app" }, "installationId": { "type": "string", "description": "ID of the Sentry app installation" }, "installationUuid": { "type": "string", "format": "uuid", "description": "UUID of the Sentry app installation" }, "status": { "enum": [ "unpublished", "published", "internal", "publish_request_inprogress", "deletion_in_progress" ], "type": "string", "description": "Status of the Sentry app" }, "settings": { "type": "object", "required": [ "type", "uri", "required_fields" ], "properties": { "type": { "type": "string", "enum": [ "alert-rule-settings" ], "description": "Type of the element" }, "description": { "type": "string", "maxLength": 140, "minLength": 1, "description": "Text shown above the settings form" }, "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "required_fields": { "type": "array", "minItems": 1, "items": { "anyOf": [ { "type": "object", "required": [ "type", "name", "label" ], "properties": { "type": { "type": "string", "enum": [ "select" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "async": { "type": "boolean", "description": "Whether the field loads its options from uri as the user types" }, "skip_load_on_open": { "type": "boolean", "description": "Whether to skip loading the options from uri when the form opens" }, "multiple": { "type": "boolean", "description": "Whether more than one option can be selected" }, "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "options": { "type": "array", "minItems": 1, "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, each a two-item array" }, "depends_on": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Names of the fields that this field's options depend on" }, "choices": { "type": "array", "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, loaded from options or from uri. Each is a two-item array" }, "defaultValue": { "type": "string", "description": "Value selected by default, from the options loaded from uri" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "text" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "textarea" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } } ] }, "description": "Fields that the user must fill in" }, "optional_fields": { "type": "array", "minItems": 1, "items": { "anyOf": [ { "type": "object", "required": [ "type", "name", "label" ], "properties": { "type": { "type": "string", "enum": [ "select" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "async": { "type": "boolean", "description": "Whether the field loads its options from uri as the user types" }, "skip_load_on_open": { "type": "boolean", "description": "Whether to skip loading the options from uri when the form opens" }, "multiple": { "type": "boolean", "description": "Whether more than one option can be selected" }, "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "options": { "type": "array", "minItems": 1, "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, each a two-item array" }, "depends_on": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Names of the fields that this field's options depend on" }, "choices": { "type": "array", "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, loaded from options or from uri. Each is a two-item array" }, "defaultValue": { "type": "string", "description": "Value selected by default, from the options loaded from uri" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "text" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "textarea" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } } ] }, "description": "Fields that the user can fill in" } }, "description": "Settings form for the action, from the app's alert rule action component" }, "title": { "type": "string", "description": "Title of the app's alert rule action component" } }, "required": [ "id", "installationId", "installationUuid", "name", "status" ], "description": "Sentry app that provides the action. Only set for Sentry app actions" }, "integrations": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the integration" }, "name": { "type": "string", "description": "Name of the integration" }, "services": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the service" }, "name": { "type": "string", "description": "Name of the service" } }, "required": [ "id", "name" ] }, "description": "Services available in the integration, such as PagerDuty services" } }, "required": [ "id", "name" ] }, "description": "Integrations the action can use" }, "services": { "type": "array", "items": { "type": "object", "properties": { "slug": { "type": "string", "description": "Slug of the webhook service" }, "name": { "type": "string", "description": "Name of the webhook service" } }, "required": [ "name", "slug" ] }, "description": "Webhook services the action can send to" }, "disabledReason": { "enum": [ "plan" ], "type": "string", "description": "Why the action can't be used, such as plan. Omitted when it can be used" } }, "required": [ "configSchema", "dataSchema", "handlerGroup", "type" ] } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/chunk-upload/": { "get": { "operationId": "getOrganizationChunkUploadOptions", "description": "**Experimental:** This API is under active development and may change.\n\nReturn the URL and limits to use when uploading file chunks, such as the chunk size,\nthe number of chunks per request, and the supported compression.", "summary": "Retrieve Chunk Upload Options", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to upload chunks to" }, "chunkSize": { "type": "integer", "description": "Size of each chunk in bytes" }, "chunksPerRequest": { "type": "integer", "description": "Maximum number of chunks in one upload request" }, "maxFileSize": { "type": "integer", "description": "Maximum size of an assembled file in bytes" }, "maxRequestSize": { "type": "integer", "description": "Maximum size of one upload request in bytes" }, "concurrency": { "type": "integer", "description": "Maximum number of upload requests to run at the same time" }, "hashAlgorithm": { "type": "string", "description": "Algorithm used to checksum chunks, always sha1" }, "compression": { "type": "array", "items": { "type": "string" }, "description": "Compression formats the server accepts for chunks, such as gzip and zstd. Empty when compression is off" }, "accept": { "type": "array", "items": { "type": "string" }, "description": "Kinds of files the server can assemble from chunks, such as debug_files or artifact_bundles" } }, "required": [ "accept", "chunkSize", "chunksPerRequest", "compression", "concurrency", "hashAlgorithm", "maxFileSize", "maxRequestSize", "url" ] } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true }, "post": { "operationId": "uploadOrganizationChunks", "description": "**Experimental:** This API is under active development and may change.\n\nUpload file chunks so they can be assembled into debug information files or artifact\nbundles. Send requests to the URL from the chunk upload options, which uses the\nregion-specific domain (for example `us.sentry.io` or `de.sentry.io`).\n\nChunks may be compressed with one of the codecs listed in the options. Select it with\nthe `Content-Encoding` request header. Resending a chunk is safe: chunks are stored\nby checksum, so an identical upload changes nothing.", "summary": "Upload File Chunks", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Organizations" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "file": { "type": "array", "items": { "type": "string", "format": "uri" }, "description": "The chunks to upload. Name each part after the SHA-1 checksum of its uncompressed content. Repeat the field for each chunk, up to `chunksPerRequest` per request." } }, "required": [ "file" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/code-mappings/": { "get": { "operationId": "listOrganizationCodeMappings", "description": "Return repository path mappings for projects the user can access.", "summary": "List an Organization's Code Mappings", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "integrationId", "schema": { "type": "string" }, "description": "Filter mappings to a specific installed integration." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Filter by project ID or slug. Pass `-1` to include all projects the user can access. When omitted, mappings include all projects the user can access." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "The maximum number of mappings to return per page." } ], "tags": [ "Integrations" ], "security": [ { "auth_token": [ "org:admin", "org:ci", "org:integrations", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the code mapping" }, "projectId": { "type": "string", "description": "ID of the project" }, "projectSlug": { "type": "string", "description": "Slug of the project" }, "repoId": { "type": "string", "description": "ID of the repository" }, "repoName": { "type": "string", "description": "Name of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "nullable": true, "description": "Provider of the repository's integration" }, "stackRoot": { "type": "string", "description": "Stack trace path prefix that the mapping replaces" }, "sourceRoot": { "type": "string", "description": "Repository path prefix that replaces the stack root" }, "defaultBranch": { "type": "string", "nullable": true, "description": "Branch to link source files on" }, "automaticallyGenerated": { "type": "boolean", "description": "Whether Sentry created the mapping automatically" }, "hasCodeOwner": { "type": "boolean", "description": "Whether the mapping has a CODEOWNERS file linked" } }, "required": [ "automaticallyGenerated", "defaultBranch", "hasCodeOwner", "id", "integrationId", "projectId", "projectSlug", "provider", "repoId", "repoName", "sourceRoot", "stackRoot" ] } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createOrganizationCodeMapping", "description": "Create a repository path mapping for a project and installed integration.", "summary": "Create an Organization Code Mapping", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Integrations" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "repository_id": { "type": "integer", "description": "The ID of a repository belonging to the installed integration." }, "project_id": { "type": "integer", "description": "The ID of the project to associate with the code mapping." }, "stack_root": { "type": "string", "description": "The path prefix to replace in stack trace filenames.", "pattern": "^[^\\s'\\\"]+$" }, "source_root": { "type": "string", "description": "The repository path prefix to substitute for the stack trace prefix.", "pattern": "^[^\\s'\\\"]+$" }, "integration_id": { "type": "integer", "description": "The ID of the installed integration that provides the repository." }, "default_branch": { "type": "string", "description": "The default branch to use when resolving source files. May be empty for Perforce.", "pattern": "^(^(?![\\/]))([\\w\\.\\/-]+)(?= 0), w (1-6), h (>= 1), and x + w <= 6.", "properties": { "x": { "type": "integer", "maximum": 5, "minimum": 0, "description": "Column position (0-indexed)." }, "y": { "type": "integer", "minimum": 0, "description": "Row position (0-indexed)." }, "w": { "type": "integer", "maximum": 6, "minimum": 1, "description": "Width in grid columns (1-6)." }, "h": { "type": "integer", "minimum": 1, "description": "Height in grid rows." } }, "required": [ "h", "w", "x", "y" ] } ], "nullable": true }, "axis_range": { "enum": [ "auto", "dataMin", null ], "type": "string", "nullable": true, "description": "Y-axis range: auto or dataMin.\n\n* `auto`\n* `dataMin`" }, "legend_type": { "enum": [ "default", "breakdown", null ], "type": "string", "nullable": true, "description": "Legend style: default or breakdown.\n\n* `default`\n* `breakdown`" } } }, "description": "A json list of widgets saved in this dashboard." }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "The saved projects filter for this dashboard." }, "environment": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "The saved environment filter for this dashboard." }, "period": { "type": "string", "nullable": true, "description": "The saved time range period for this dashboard." }, "start": { "type": "string", "format": "date-time", "nullable": true, "description": "The saved start time for this dashboard." }, "end": { "type": "string", "format": "date-time", "nullable": true, "description": "The saved end time for this dashboard." }, "filters": { "type": "object", "additionalProperties": {}, "description": "The saved filters for this dashboard." }, "utc": { "type": "boolean", "description": "Setting that lets you display saved time range for this dashboard in UTC." }, "permissions": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "is_editable_by_everyone": { "type": "boolean", "description": "Whether the dashboard is editable by everyone." }, "teams_with_edit_access": { "type": "array", "items": { "type": "integer" }, "description": "List of team IDs that have edit access to a dashboard." } }, "required": [ "is_editable_by_everyone" ] } ], "nullable": true, "description": "Permissions that restrict users from editing dashboards" }, "query_priority": { "enum": [ "normal", "faster", null ], "type": "string", "nullable": true, "description": "The query priority\n\n* `normal`\n* `faster`" }, "is_favorited": { "type": "boolean", "default": false, "description": "Favorite the dashboard automatically for the request user" } }, "required": [ "title" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Saved environment filter for the dashboard" }, "period": { "type": "string", "description": "Saved relative time range, such as 24h" }, "utc": { "type": "string", "description": "Whether the saved time range is shown in UTC" }, "expired": { "type": "boolean", "description": "Whether the saved start time was outside data retention and was moved forward" }, "start": { "type": "string", "format": "date-time", "description": "Saved start of the time range (ISO 8601)" }, "end": { "type": "string", "format": "date-time", "description": "Saved end of the time range (ISO 8601)" }, "id": { "type": "string", "description": "ID of the dashboard" }, "title": { "type": "string", "description": "Title of the dashboard" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the dashboard was created (ISO 8601)" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the dashboard" }, "widgets": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the widget" }, "title": { "type": "string", "description": "Title of the widget" }, "description": { "type": "string", "nullable": true, "description": "Description of the widget" }, "displayType": { "type": "string", "nullable": true, "description": "How the widget is displayed, such as line, area, bar, table or big_number" }, "thresholds": { "type": "object", "properties": { "preferredPolarity": { "type": "string", "description": "Whether higher (+) or lower (-) values are better. Empty when unset" }, "timeWindow": { "type": "string", "description": "Time window the thresholds apply to, as a stats period such as 5m, 1h or 1d" }, "max_values": { "type": "object", "additionalProperties": { "type": "integer" }, "description": "Threshold maximums, keyed max1 and max2" }, "unit": { "type": "string", "description": "Unit of the threshold values" } }, "required": [ "max_values", "unit" ], "nullable": true, "description": "Thresholds that color the widget's values" }, "interval": { "type": "string", "description": "Time interval for the widget's series, such as 5m" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the widget was created (ISO 8601)" }, "dashboardId": { "type": "string", "description": "ID of the dashboard the widget belongs to" }, "queries": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the widget query" }, "name": { "type": "string", "description": "Name of the query, used as the series name" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "Fields the query selects" }, "aggregates": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions the query computes" }, "transformations": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "description": "Transformations applied to aggregates, keyed by the aggregate's index" }, "columns": { "type": "array", "items": { "type": "string" }, "description": "Columns the query groups by" }, "fieldAliases": { "type": "array", "items": { "type": "string" }, "description": "Aliases shown in place of field names in table headers" }, "conditions": { "type": "string", "description": "Search query that filters the data" }, "orderby": { "type": "string", "description": "Field the results are sorted by" }, "widgetId": { "type": "string", "description": "ID of the widget the query belongs to" }, "onDemand": { "type": "array", "items": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "Whether on-demand metric extraction is enabled for the query" }, "extractionState": { "type": "string", "description": "On-demand extraction state, such as enabled:enrolled or disabled:high-cardinality" }, "dashboardWidgetQueryId": { "type": "integer", "description": "ID of the widget query" } }, "required": [ "dashboardWidgetQueryId", "enabled", "extractionState" ] }, "description": "On-demand metric extraction settings for the query" }, "isHidden": { "type": "boolean", "description": "Whether the query is hidden from the UI" }, "selectedAggregate": { "type": "integer", "nullable": true, "description": "Index of the aggregate shown by Big Number widgets" }, "linkedDashboards": { "type": "array", "items": { "type": "object", "properties": { "field": { "type": "string", "description": "Field that links to the dashboard" }, "dashboardId": { "type": "integer", "description": "ID of the linked dashboard" } }, "required": [ "dashboardId", "field" ] }, "description": "Dashboards linked from fields in the query's results" } }, "required": [ "aggregates", "columns", "conditions", "fieldAliases", "fields", "id", "isHidden", "linkedDashboards", "name", "onDemand", "orderby", "selectedAggregate", "transformations", "widgetId" ] }, "description": "Queries that provide the widget's data" }, "limit": { "type": "integer", "nullable": true, "description": "Maximum number of series or rows the widget shows" }, "widgetType": { "type": "string", "nullable": true, "description": "Dataset the widget queries, such as error-events, spans, logs or issue" }, "layout": { "type": "object", "additionalProperties": { "type": "integer" }, "nullable": true, "description": "Position and size of the widget on the dashboard grid" }, "axisRange": { "type": "string", "nullable": true, "description": "Y-axis range: auto or dataMin" }, "legendType": { "enum": [ "default", "breakdown", null ], "type": "string", "nullable": true, "description": "Legend style: default or breakdown" }, "datasetSource": { "type": "string", "nullable": true, "description": "Whether the widget's dataset was chosen by the user or inferred" }, "exploreUrls": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Explore URLs for each query, for widgets that query transactions" }, "changedReason": { "type": "array", "items": { "type": "object", "properties": { "orderby": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Sort orders that were dropped when the widget was migrated from transactions to spans" }, "equations": { "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, "nullable": true, "description": "Equations that were dropped when the widget was migrated from transactions to spans" }, "selected_columns": { "type": "array", "items": { "type": "string" }, "description": "Columns that were dropped when the widget was migrated from transactions to spans" } }, "required": [ "equations", "orderby", "selected_columns" ] }, "nullable": true, "description": "Parts of each query that were dropped when the widget was migrated from transactions to spans" } }, "required": [ "axisRange", "changedReason", "dashboardId", "datasetSource", "dateCreated", "description", "displayType", "id", "interval", "layout", "legendType", "limit", "queries", "thresholds", "title", "widgetType" ] }, "description": "Widgets on the dashboard" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "Saved project filter for the dashboard. [-1] means all projects" }, "filters": { "type": "object", "properties": { "release": { "type": "array", "items": { "type": "string" }, "description": "Saved release filter" }, "releaseId": { "type": "array", "items": { "type": "string" }, "description": "Saved release ID filter" }, "globalFilter": { "type": "array", "items": { "type": "object", "properties": { "dataset": { "type": "string", "description": "Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs" }, "tag": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the tag or attribute the filter applies to" }, "name": { "type": "string", "description": "Display name of the tag or attribute" }, "kind": { "type": "string", "description": "Kind of the field, such as tag, measurement or field" } }, "required": [ "key", "name" ], "description": "Tag or attribute being filtered" }, "value": { "type": "string", "description": "Filter condition in search syntax, such as browser.name:[Chrome]" }, "isTemporary": { "type": "boolean", "description": "Whether the filter comes from a link and isn't saved by the user" } }, "required": [ "dataset", "tag", "value" ] }, "description": "Saved global filters applied to every widget" } }, "description": "Saved release and global filters for the dashboard" }, "permissions": { "type": "object", "properties": { "isEditableByEveryone": { "type": "boolean", "description": "Whether everyone in the organization can edit the dashboard" }, "teamsWithEditAccess": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the teams that can edit the dashboard" } }, "required": [ "isEditableByEveryone", "teamsWithEditAccess" ], "nullable": true, "description": "Edit permissions for the dashboard" }, "isFavorited": { "type": "boolean", "description": "Whether the requesting user favorited the dashboard" }, "prebuiltId": { "type": "integer", "nullable": true, "description": "ID of the prebuilt dashboard this dashboard comes from" }, "queryPriority": { "type": "string", "description": "Query priority for the dashboard: normal or faster" } }, "required": [ "createdBy", "dateCreated", "filters", "id", "isFavorited", "permissions", "prebuiltId", "projects", "queryPriority", "title", "widgets" ] }, "examples": { "CreateDashboard": { "value": { "id": "1", "title": "Dashboard", "dateCreated": "2024-06-20T14:38:03.498574Z", "createdBy": { "id": "1", "name": "Admin", "username": "admin", "email": "admin@sentry.io", "avatarUrl": "www.example.com", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-10-25T17:07:33.190596Z", "lastLogin": "2024-07-16T15:28:39.261659Z", "has2fa": true, "lastActive": "2024-07-16T20:45:49.364197Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "1", "email": "admin@sentry.io", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": "www.example.com" } }, "widgets": [ { "id": "658714", "title": "Custom Widget", "description": null, "displayType": "table", "thresholds": null, "interval": "5m", "dateCreated": "2024-07-16T15:36:46.048343Z", "dashboardId": "1", "datasetSource": "user", "queries": [ { "id": "1", "name": "", "fields": [ "avg(transaction.duration)", "transaction" ], "aggregates": [ "avg(transaction.duration)" ], "transformations": {}, "columns": [ "transaction" ], "fieldAliases": [ "", "" ], "conditions": "", "orderby": "-avg(transaction.duration)", "widgetId": "1", "onDemand": [ { "enabled": false, "extractionState": "disabled:not-applicable", "dashboardWidgetQueryId": 1 } ], "isHidden": false, "selectedAggregate": null, "linkedDashboards": [] } ], "limit": null, "widgetType": "transaction-like", "layout": { "w": 2, "y": 0, "h": 2, "minH": 2, "x": 0 }, "exploreUrls": null, "changedReason": null, "axisRange": null, "legendType": "default" } ], "projects": [ 1 ], "filters": {}, "environment": [ "alpha" ], "period": "7d", "permissions": { "isEditableByEveryone": true, "teamsWithEditAccess": [] }, "isFavorited": false, "prebuiltId": null, "queryPriority": "normal" }, "summary": "Create Dashboard" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "description": "Conflict" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/dashboards/{dashboard_id}/": { "get": { "operationId": "getOrganizationDashboard", "description": "Return details about an organization's custom dashboard.", "summary": "Retrieve an Organization's Custom Dashboard", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "dashboard_id", "schema": { "type": "integer" }, "description": "The ID of the dashboard you'd like to retrieve.", "required": true } ], "tags": [ "Dashboards" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Saved environment filter for the dashboard" }, "period": { "type": "string", "description": "Saved relative time range, such as 24h" }, "utc": { "type": "string", "description": "Whether the saved time range is shown in UTC" }, "expired": { "type": "boolean", "description": "Whether the saved start time was outside data retention and was moved forward" }, "start": { "type": "string", "format": "date-time", "description": "Saved start of the time range (ISO 8601)" }, "end": { "type": "string", "format": "date-time", "description": "Saved end of the time range (ISO 8601)" }, "id": { "type": "string", "description": "ID of the dashboard" }, "title": { "type": "string", "description": "Title of the dashboard" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the dashboard was created (ISO 8601)" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the dashboard" }, "widgets": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the widget" }, "title": { "type": "string", "description": "Title of the widget" }, "description": { "type": "string", "nullable": true, "description": "Description of the widget" }, "displayType": { "type": "string", "nullable": true, "description": "How the widget is displayed, such as line, area, bar, table or big_number" }, "thresholds": { "type": "object", "properties": { "preferredPolarity": { "type": "string", "description": "Whether higher (+) or lower (-) values are better. Empty when unset" }, "timeWindow": { "type": "string", "description": "Time window the thresholds apply to, as a stats period such as 5m, 1h or 1d" }, "max_values": { "type": "object", "additionalProperties": { "type": "integer" }, "description": "Threshold maximums, keyed max1 and max2" }, "unit": { "type": "string", "description": "Unit of the threshold values" } }, "required": [ "max_values", "unit" ], "nullable": true, "description": "Thresholds that color the widget's values" }, "interval": { "type": "string", "description": "Time interval for the widget's series, such as 5m" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the widget was created (ISO 8601)" }, "dashboardId": { "type": "string", "description": "ID of the dashboard the widget belongs to" }, "queries": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the widget query" }, "name": { "type": "string", "description": "Name of the query, used as the series name" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "Fields the query selects" }, "aggregates": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions the query computes" }, "transformations": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "description": "Transformations applied to aggregates, keyed by the aggregate's index" }, "columns": { "type": "array", "items": { "type": "string" }, "description": "Columns the query groups by" }, "fieldAliases": { "type": "array", "items": { "type": "string" }, "description": "Aliases shown in place of field names in table headers" }, "conditions": { "type": "string", "description": "Search query that filters the data" }, "orderby": { "type": "string", "description": "Field the results are sorted by" }, "widgetId": { "type": "string", "description": "ID of the widget the query belongs to" }, "onDemand": { "type": "array", "items": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "Whether on-demand metric extraction is enabled for the query" }, "extractionState": { "type": "string", "description": "On-demand extraction state, such as enabled:enrolled or disabled:high-cardinality" }, "dashboardWidgetQueryId": { "type": "integer", "description": "ID of the widget query" } }, "required": [ "dashboardWidgetQueryId", "enabled", "extractionState" ] }, "description": "On-demand metric extraction settings for the query" }, "isHidden": { "type": "boolean", "description": "Whether the query is hidden from the UI" }, "selectedAggregate": { "type": "integer", "nullable": true, "description": "Index of the aggregate shown by Big Number widgets" }, "linkedDashboards": { "type": "array", "items": { "type": "object", "properties": { "field": { "type": "string", "description": "Field that links to the dashboard" }, "dashboardId": { "type": "integer", "description": "ID of the linked dashboard" } }, "required": [ "dashboardId", "field" ] }, "description": "Dashboards linked from fields in the query's results" } }, "required": [ "aggregates", "columns", "conditions", "fieldAliases", "fields", "id", "isHidden", "linkedDashboards", "name", "onDemand", "orderby", "selectedAggregate", "transformations", "widgetId" ] }, "description": "Queries that provide the widget's data" }, "limit": { "type": "integer", "nullable": true, "description": "Maximum number of series or rows the widget shows" }, "widgetType": { "type": "string", "nullable": true, "description": "Dataset the widget queries, such as error-events, spans, logs or issue" }, "layout": { "type": "object", "additionalProperties": { "type": "integer" }, "nullable": true, "description": "Position and size of the widget on the dashboard grid" }, "axisRange": { "type": "string", "nullable": true, "description": "Y-axis range: auto or dataMin" }, "legendType": { "enum": [ "default", "breakdown", null ], "type": "string", "nullable": true, "description": "Legend style: default or breakdown" }, "datasetSource": { "type": "string", "nullable": true, "description": "Whether the widget's dataset was chosen by the user or inferred" }, "exploreUrls": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Explore URLs for each query, for widgets that query transactions" }, "changedReason": { "type": "array", "items": { "type": "object", "properties": { "orderby": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Sort orders that were dropped when the widget was migrated from transactions to spans" }, "equations": { "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, "nullable": true, "description": "Equations that were dropped when the widget was migrated from transactions to spans" }, "selected_columns": { "type": "array", "items": { "type": "string" }, "description": "Columns that were dropped when the widget was migrated from transactions to spans" } }, "required": [ "equations", "orderby", "selected_columns" ] }, "nullable": true, "description": "Parts of each query that were dropped when the widget was migrated from transactions to spans" } }, "required": [ "axisRange", "changedReason", "dashboardId", "datasetSource", "dateCreated", "description", "displayType", "id", "interval", "layout", "legendType", "limit", "queries", "thresholds", "title", "widgetType" ] }, "description": "Widgets on the dashboard" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "Saved project filter for the dashboard. [-1] means all projects" }, "filters": { "type": "object", "properties": { "release": { "type": "array", "items": { "type": "string" }, "description": "Saved release filter" }, "releaseId": { "type": "array", "items": { "type": "string" }, "description": "Saved release ID filter" }, "globalFilter": { "type": "array", "items": { "type": "object", "properties": { "dataset": { "type": "string", "description": "Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs" }, "tag": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the tag or attribute the filter applies to" }, "name": { "type": "string", "description": "Display name of the tag or attribute" }, "kind": { "type": "string", "description": "Kind of the field, such as tag, measurement or field" } }, "required": [ "key", "name" ], "description": "Tag or attribute being filtered" }, "value": { "type": "string", "description": "Filter condition in search syntax, such as browser.name:[Chrome]" }, "isTemporary": { "type": "boolean", "description": "Whether the filter comes from a link and isn't saved by the user" } }, "required": [ "dataset", "tag", "value" ] }, "description": "Saved global filters applied to every widget" } }, "description": "Saved release and global filters for the dashboard" }, "permissions": { "type": "object", "properties": { "isEditableByEveryone": { "type": "boolean", "description": "Whether everyone in the organization can edit the dashboard" }, "teamsWithEditAccess": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the teams that can edit the dashboard" } }, "required": [ "isEditableByEveryone", "teamsWithEditAccess" ], "nullable": true, "description": "Edit permissions for the dashboard" }, "isFavorited": { "type": "boolean", "description": "Whether the requesting user favorited the dashboard" }, "prebuiltId": { "type": "integer", "nullable": true, "description": "ID of the prebuilt dashboard this dashboard comes from" }, "queryPriority": { "type": "string", "description": "Query priority for the dashboard: normal or faster" } }, "required": [ "createdBy", "dateCreated", "filters", "id", "isFavorited", "permissions", "prebuiltId", "projects", "queryPriority", "title", "widgets" ] }, "examples": { "DashboardGETResponse": { "value": { "id": "1", "title": "Dashboard", "dateCreated": "2024-06-20T14:38:03.498574Z", "createdBy": { "id": "1", "name": "Admin", "username": "admin", "email": "admin@sentry.io", "avatarUrl": "www.example.com", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-10-25T17:07:33.190596Z", "lastLogin": "2024-07-16T15:28:39.261659Z", "has2fa": true, "lastActive": "2024-07-16T20:45:49.364197Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "1", "email": "admin@sentry.io", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": "www.example.com" } }, "widgets": [ { "id": "658714", "title": "Custom Widget", "description": null, "displayType": "table", "thresholds": null, "interval": "5m", "dateCreated": "2024-07-16T15:36:46.048343Z", "dashboardId": "1", "datasetSource": "user", "queries": [ { "id": "1", "name": "", "fields": [ "avg(transaction.duration)", "transaction" ], "aggregates": [ "avg(transaction.duration)" ], "transformations": {}, "columns": [ "transaction" ], "fieldAliases": [ "", "" ], "conditions": "", "orderby": "-avg(transaction.duration)", "widgetId": "1", "onDemand": [ { "enabled": false, "extractionState": "disabled:not-applicable", "dashboardWidgetQueryId": 1 } ], "isHidden": false, "selectedAggregate": null, "linkedDashboards": [] } ], "limit": null, "widgetType": "transaction-like", "layout": { "w": 2, "y": 0, "h": 2, "minH": 2, "x": 0 }, "exploreUrls": null, "changedReason": null, "axisRange": null, "legendType": "default" } ], "projects": [ 1 ], "filters": {}, "environment": [ "alpha" ], "period": "7d", "permissions": { "isEditableByEveryone": true, "teamsWithEditAccess": [] }, "isFavorited": false, "prebuiltId": null, "queryPriority": "normal" }, "summary": "Dashboard GET response" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateOrganizationDashboard", "description": "Edit an organization's custom dashboard as well as any bulk\nedits on widgets that may have been made. (For example, widgets\nthat have been rearranged, updated queries and fields, specific\ndisplay types, and so on.)", "summary": "Edit an Organization's Custom Dashboard", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "dashboard_id", "schema": { "type": "integer" }, "description": "The ID of the dashboard you'd like to retrieve.", "required": true } ], "tags": [ "Dashboards" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "string", "description": "A dashboard's unique id." }, "title": { "type": "string", "description": "The user-defined dashboard title.", "maxLength": 255 }, "widgets": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "string", "description": "ID of an existing widget. Omit it to create a new widget." }, "title": { "type": "string", "description": "Title of the widget.", "maxLength": 255 }, "description": { "type": "string", "nullable": true, "description": "Description of the widget." }, "thresholds": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Thresholds that color the widget's values." }, "display_type": { "enum": [ "line", "area", "bar", "table", "big_number", "details", "categorical_bar", "wheel", "rage_and_dead_clicks", "server_tree", "text", "agents_traces_table", "heatmap" ], "type": "string", "description": "How the widget is displayed, such as line, area, bar, table or big_number.\n\n* `line`\n* `area`\n* `bar`\n* `table`\n* `big_number`\n* `details`\n* `categorical_bar`\n* `wheel`\n* `rage_and_dead_clicks`\n* `server_tree`\n* `text`\n* `agents_traces_table`\n* `heatmap`" }, "interval": { "type": "string", "description": "Time interval for the widget's series, such as 5m.", "maxLength": 10 }, "queries": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "string" }, "fields": { "type": "array", "items": { "type": "string" } }, "aggregates": { "type": "array", "items": { "type": "string" }, "nullable": true }, "transformations": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, "columns": { "type": "array", "items": { "type": "string" }, "nullable": true }, "field_aliases": { "type": "array", "items": { "type": "string" }, "nullable": true }, "name": { "type": "string" }, "conditions": { "type": "string" }, "orderby": { "type": "string" }, "is_hidden": { "type": "boolean" }, "on_demand_extraction": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "extraction_state": { "type": "string" }, "enabled": { "type": "boolean" } } }, "on_demand_extraction_disabled": { "type": "boolean" }, "selected_aggregate": { "type": "integer", "nullable": true }, "linked_dashboards": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "field": { "type": "string" }, "dashboard_id": { "type": "string" } }, "required": [ "dashboard_id", "field" ] }, "nullable": true } } }, "description": "Queries that provide the widget's data." }, "widget_type": { "enum": [ "discover", "issue", "metrics", "error-events", "transaction-like", "spans", "logs", "tracemetrics", "preprod-app-size", null ], "type": "string", "nullable": true, "description": "Dataset the widget queries, such as error-events, spans, logs or issue.\n\n* `discover`\n* `issue`\n* `metrics`\n* `error-events`\n* `transaction-like`\n* `spans`\n* `logs`\n* `tracemetrics`\n* `preprod-app-size`" }, "limit": { "type": "integer", "minimum": 1, "nullable": true, "description": "Maximum number of series or rows the widget shows." }, "layout": { "allOf": [ { "type": "object", "description": "Widget grid layout position and dimensions.\n\nThe dashboard uses a 6-column grid. Required keys: x, y, w, h, minH.\nConstraints: x (0-5), y (>= 0), w (1-6), h (>= 1), minH (>= 1), and x + w <= 6.", "properties": { "x": { "type": "integer", "maximum": 5, "minimum": 0, "description": "Column position (0-indexed)." }, "y": { "type": "integer", "minimum": 0, "description": "Row position (0-indexed)." }, "w": { "type": "integer", "maximum": 6, "minimum": 1, "description": "Width in grid columns (1-6)." }, "h": { "type": "integer", "minimum": 1, "description": "Height in grid rows." }, "min_h": { "type": "integer", "minimum": 1, "description": "Minimum height in grid rows." } }, "required": [ "h", "min_h", "w", "x", "y" ] } ], "nullable": true, "description": "Position and size of the widget on the dashboard grid." }, "axis_range": { "enum": [ "auto", "dataMin", null ], "type": "string", "nullable": true, "description": "Y-axis range: auto or dataMin.\n\n* `auto`\n* `dataMin`" }, "legend_type": { "enum": [ "default", "breakdown", null ], "type": "string", "nullable": true, "description": "Legend style: default or breakdown.\n\n* `default`\n* `breakdown`" } } }, "description": "A json list of widgets saved in this dashboard." }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "The saved projects filter for this dashboard." }, "environment": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "The saved environment filter for this dashboard." }, "period": { "type": "string", "nullable": true, "description": "The saved time range period for this dashboard." }, "start": { "type": "string", "format": "date-time", "nullable": true, "description": "The saved start time for this dashboard." }, "end": { "type": "string", "format": "date-time", "nullable": true, "description": "The saved end time for this dashboard." }, "filters": { "type": "object", "additionalProperties": {}, "description": "The saved filters for this dashboard." }, "utc": { "type": "boolean", "description": "Setting that lets you display saved time range for this dashboard in UTC." }, "permissions": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "is_editable_by_everyone": { "type": "boolean", "description": "Whether the dashboard is editable by everyone." }, "teams_with_edit_access": { "type": "array", "items": { "type": "integer" }, "description": "List of team IDs that have edit access to a dashboard." } }, "required": [ "is_editable_by_everyone" ] } ], "nullable": true, "description": "Permissions that restrict users from editing dashboards" }, "query_priority": { "enum": [ "normal", "faster", null ], "type": "string", "nullable": true, "description": "The query priority\n\n* `normal`\n* `faster`" } } } } } }, "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Saved environment filter for the dashboard" }, "period": { "type": "string", "description": "Saved relative time range, such as 24h" }, "utc": { "type": "string", "description": "Whether the saved time range is shown in UTC" }, "expired": { "type": "boolean", "description": "Whether the saved start time was outside data retention and was moved forward" }, "start": { "type": "string", "format": "date-time", "description": "Saved start of the time range (ISO 8601)" }, "end": { "type": "string", "format": "date-time", "description": "Saved end of the time range (ISO 8601)" }, "id": { "type": "string", "description": "ID of the dashboard" }, "title": { "type": "string", "description": "Title of the dashboard" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the dashboard was created (ISO 8601)" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the dashboard" }, "widgets": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the widget" }, "title": { "type": "string", "description": "Title of the widget" }, "description": { "type": "string", "nullable": true, "description": "Description of the widget" }, "displayType": { "type": "string", "nullable": true, "description": "How the widget is displayed, such as line, area, bar, table or big_number" }, "thresholds": { "type": "object", "properties": { "preferredPolarity": { "type": "string", "description": "Whether higher (+) or lower (-) values are better. Empty when unset" }, "timeWindow": { "type": "string", "description": "Time window the thresholds apply to, as a stats period such as 5m, 1h or 1d" }, "max_values": { "type": "object", "additionalProperties": { "type": "integer" }, "description": "Threshold maximums, keyed max1 and max2" }, "unit": { "type": "string", "description": "Unit of the threshold values" } }, "required": [ "max_values", "unit" ], "nullable": true, "description": "Thresholds that color the widget's values" }, "interval": { "type": "string", "description": "Time interval for the widget's series, such as 5m" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the widget was created (ISO 8601)" }, "dashboardId": { "type": "string", "description": "ID of the dashboard the widget belongs to" }, "queries": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the widget query" }, "name": { "type": "string", "description": "Name of the query, used as the series name" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "Fields the query selects" }, "aggregates": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions the query computes" }, "transformations": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "description": "Transformations applied to aggregates, keyed by the aggregate's index" }, "columns": { "type": "array", "items": { "type": "string" }, "description": "Columns the query groups by" }, "fieldAliases": { "type": "array", "items": { "type": "string" }, "description": "Aliases shown in place of field names in table headers" }, "conditions": { "type": "string", "description": "Search query that filters the data" }, "orderby": { "type": "string", "description": "Field the results are sorted by" }, "widgetId": { "type": "string", "description": "ID of the widget the query belongs to" }, "onDemand": { "type": "array", "items": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "Whether on-demand metric extraction is enabled for the query" }, "extractionState": { "type": "string", "description": "On-demand extraction state, such as enabled:enrolled or disabled:high-cardinality" }, "dashboardWidgetQueryId": { "type": "integer", "description": "ID of the widget query" } }, "required": [ "dashboardWidgetQueryId", "enabled", "extractionState" ] }, "description": "On-demand metric extraction settings for the query" }, "isHidden": { "type": "boolean", "description": "Whether the query is hidden from the UI" }, "selectedAggregate": { "type": "integer", "nullable": true, "description": "Index of the aggregate shown by Big Number widgets" }, "linkedDashboards": { "type": "array", "items": { "type": "object", "properties": { "field": { "type": "string", "description": "Field that links to the dashboard" }, "dashboardId": { "type": "integer", "description": "ID of the linked dashboard" } }, "required": [ "dashboardId", "field" ] }, "description": "Dashboards linked from fields in the query's results" } }, "required": [ "aggregates", "columns", "conditions", "fieldAliases", "fields", "id", "isHidden", "linkedDashboards", "name", "onDemand", "orderby", "selectedAggregate", "transformations", "widgetId" ] }, "description": "Queries that provide the widget's data" }, "limit": { "type": "integer", "nullable": true, "description": "Maximum number of series or rows the widget shows" }, "widgetType": { "type": "string", "nullable": true, "description": "Dataset the widget queries, such as error-events, spans, logs or issue" }, "layout": { "type": "object", "additionalProperties": { "type": "integer" }, "nullable": true, "description": "Position and size of the widget on the dashboard grid" }, "axisRange": { "type": "string", "nullable": true, "description": "Y-axis range: auto or dataMin" }, "legendType": { "enum": [ "default", "breakdown", null ], "type": "string", "nullable": true, "description": "Legend style: default or breakdown" }, "datasetSource": { "type": "string", "nullable": true, "description": "Whether the widget's dataset was chosen by the user or inferred" }, "exploreUrls": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Explore URLs for each query, for widgets that query transactions" }, "changedReason": { "type": "array", "items": { "type": "object", "properties": { "orderby": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Sort orders that were dropped when the widget was migrated from transactions to spans" }, "equations": { "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, "nullable": true, "description": "Equations that were dropped when the widget was migrated from transactions to spans" }, "selected_columns": { "type": "array", "items": { "type": "string" }, "description": "Columns that were dropped when the widget was migrated from transactions to spans" } }, "required": [ "equations", "orderby", "selected_columns" ] }, "nullable": true, "description": "Parts of each query that were dropped when the widget was migrated from transactions to spans" } }, "required": [ "axisRange", "changedReason", "dashboardId", "datasetSource", "dateCreated", "description", "displayType", "id", "interval", "layout", "legendType", "limit", "queries", "thresholds", "title", "widgetType" ] }, "description": "Widgets on the dashboard" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "Saved project filter for the dashboard. [-1] means all projects" }, "filters": { "type": "object", "properties": { "release": { "type": "array", "items": { "type": "string" }, "description": "Saved release filter" }, "releaseId": { "type": "array", "items": { "type": "string" }, "description": "Saved release ID filter" }, "globalFilter": { "type": "array", "items": { "type": "object", "properties": { "dataset": { "type": "string", "description": "Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs" }, "tag": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the tag or attribute the filter applies to" }, "name": { "type": "string", "description": "Display name of the tag or attribute" }, "kind": { "type": "string", "description": "Kind of the field, such as tag, measurement or field" } }, "required": [ "key", "name" ], "description": "Tag or attribute being filtered" }, "value": { "type": "string", "description": "Filter condition in search syntax, such as browser.name:[Chrome]" }, "isTemporary": { "type": "boolean", "description": "Whether the filter comes from a link and isn't saved by the user" } }, "required": [ "dataset", "tag", "value" ] }, "description": "Saved global filters applied to every widget" } }, "description": "Saved release and global filters for the dashboard" }, "permissions": { "type": "object", "properties": { "isEditableByEveryone": { "type": "boolean", "description": "Whether everyone in the organization can edit the dashboard" }, "teamsWithEditAccess": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the teams that can edit the dashboard" } }, "required": [ "isEditableByEveryone", "teamsWithEditAccess" ], "nullable": true, "description": "Edit permissions for the dashboard" }, "isFavorited": { "type": "boolean", "description": "Whether the requesting user favorited the dashboard" }, "prebuiltId": { "type": "integer", "nullable": true, "description": "ID of the prebuilt dashboard this dashboard comes from" }, "queryPriority": { "type": "string", "description": "Query priority for the dashboard: normal or faster" } }, "required": [ "createdBy", "dateCreated", "filters", "id", "isFavorited", "permissions", "prebuiltId", "projects", "queryPriority", "title", "widgets" ] }, "examples": { "DashboardPUTResponse": { "value": { "id": "1", "title": "Dashboard", "dateCreated": "2024-06-20T14:38:03.498574Z", "createdBy": { "id": "1", "name": "Admin", "username": "admin", "email": "admin@sentry.io", "avatarUrl": "www.example.com", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-10-25T17:07:33.190596Z", "lastLogin": "2024-07-16T15:28:39.261659Z", "has2fa": true, "lastActive": "2024-07-16T20:45:49.364197Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "1", "email": "admin@sentry.io", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": "www.example.com" } }, "widgets": [ { "id": "658714", "title": "Custom Widget", "description": null, "displayType": "table", "thresholds": null, "interval": "5m", "dateCreated": "2024-07-16T15:36:46.048343Z", "dashboardId": "1", "datasetSource": "user", "queries": [ { "id": "1", "name": "", "fields": [ "avg(transaction.duration)", "transaction" ], "aggregates": [ "avg(transaction.duration)" ], "transformations": {}, "columns": [ "transaction" ], "fieldAliases": [ "", "" ], "conditions": "", "orderby": "-avg(transaction.duration)", "widgetId": "1", "onDemand": [ { "enabled": false, "extractionState": "disabled:not-applicable", "dashboardWidgetQueryId": 1 } ], "isHidden": false, "selectedAggregate": null, "linkedDashboards": [] } ], "limit": null, "widgetType": "transaction-like", "layout": { "w": 2, "y": 0, "h": 2, "minH": 2, "x": 0 }, "exploreUrls": null, "changedReason": null, "axisRange": null, "legendType": "default" } ], "projects": [ 1 ], "filters": {}, "environment": [ "alpha" ], "period": "7d", "permissions": { "isEditableByEveryone": true, "teamsWithEditAccess": [] }, "isFavorited": false, "prebuiltId": null, "queryPriority": "normal" }, "summary": "Dashboard PUT response" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteOrganizationDashboard", "description": "Delete an organization's custom dashboard.", "summary": "Delete an Organization's Custom Dashboard", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "dashboard_id", "schema": { "type": "integer" }, "description": "The ID of the dashboard you'd like to retrieve.", "required": true } ], "tags": [ "Dashboards" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/dashboards/{dashboard_id}/revisions/": { "get": { "operationId": "listOrganizationDashboardRevisions", "description": "Return the revision history of an organization's custom dashboard, newest first.\n\nEach edit or restore of the dashboard records a revision holding the dashboard as it\nwas just before the change. Only the 10 most recent revisions are kept. Pass a\nrevision's `id` to the restore endpoint to roll the dashboard back to it.", "summary": "List a Custom Dashboard's Revisions", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "dashboard_id", "schema": { "type": "integer" }, "description": "The ID of the dashboard you'd like to retrieve.", "required": true }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Dashboards" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the revision" }, "title": { "type": "string", "description": "Title of the dashboard in this revision" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the revision was recorded (ISO 8601)" }, "createdBy": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the user" }, "name": { "type": "string", "description": "Display name of the user" }, "email": { "type": "string", "description": "Primary email address of the user" }, "avatarType": { "type": "string", "nullable": true, "description": "Avatar type, such as letter_avatar, upload or gravatar" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "required": [ "avatarType", "avatarUrl", "email", "id", "name" ], "nullable": true, "description": "User whose change recorded the revision, or null if there is no such user or it was deleted" }, "source": { "type": "string", "description": "Change that recorded the revision, which holds the dashboard as it was just before that change: edit (a dashboard edit), edit-with-agent (an edit the client marked as made by an AI agent) or pre-restore (a restore of another revision)" } }, "required": [ "createdBy", "dateCreated", "id", "source", "title" ] } }, "examples": { "ListDashboardRevisions": { "value": [ { "id": "2", "title": "Dashboard", "dateCreated": "2024-07-17T09:12:44.104915Z", "createdBy": { "id": "1", "name": "Admin", "email": "admin@sentry.io", "avatarType": "letter_avatar", "avatarUrl": null }, "source": "pre-restore" }, { "id": "1", "title": "Dashboard", "dateCreated": "2024-07-16T15:36:46.048343Z", "createdBy": { "id": "1", "name": "Admin", "email": "admin@sentry.io", "avatarType": "letter_avatar", "avatarUrl": null }, "source": "edit" } ], "summary": "List dashboard revisions" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/dashboards/{dashboard_id}/revisions/{revision_id}/restore/": { "post": { "operationId": "restoreOrganizationDashboardRevision", "description": "Restore an organization's custom dashboard to the state saved in one of its revisions,\nreplacing its title, widgets and saved settings such as filters, and return the restored\ndashboard.\n\nThe dashboard's current state is first recorded as a new revision with the source\n`pre-restore`, so a restore can itself be undone. Restoring again records another\nrevision, so retrying a restore is not idempotent. The requesting user needs edit\naccess to the dashboard. Returns 400 if the revision can no longer be restored, for\nexample because its snapshot format is unsupported or it fails validation, and 409 if\nanother dashboard already uses the revision's title.", "summary": "Restore a Custom Dashboard Revision", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "dashboard_id", "schema": { "type": "integer" }, "description": "The ID of the dashboard you'd like to retrieve.", "required": true }, { "in": "path", "name": "revision_id", "schema": { "type": "integer" }, "description": "The ID of the dashboard revision, from the dashboard's revision list.", "required": true } ], "tags": [ "Dashboards" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Saved environment filter for the dashboard" }, "period": { "type": "string", "description": "Saved relative time range, such as 24h" }, "utc": { "type": "string", "description": "Whether the saved time range is shown in UTC" }, "expired": { "type": "boolean", "description": "Whether the saved start time was outside data retention and was moved forward" }, "start": { "type": "string", "format": "date-time", "description": "Saved start of the time range (ISO 8601)" }, "end": { "type": "string", "format": "date-time", "description": "Saved end of the time range (ISO 8601)" }, "id": { "type": "string", "description": "ID of the dashboard" }, "title": { "type": "string", "description": "Title of the dashboard" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the dashboard was created (ISO 8601)" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the dashboard" }, "widgets": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the widget" }, "title": { "type": "string", "description": "Title of the widget" }, "description": { "type": "string", "nullable": true, "description": "Description of the widget" }, "displayType": { "type": "string", "nullable": true, "description": "How the widget is displayed, such as line, area, bar, table or big_number" }, "thresholds": { "type": "object", "properties": { "preferredPolarity": { "type": "string", "description": "Whether higher (+) or lower (-) values are better. Empty when unset" }, "timeWindow": { "type": "string", "description": "Time window the thresholds apply to, as a stats period such as 5m, 1h or 1d" }, "max_values": { "type": "object", "additionalProperties": { "type": "integer" }, "description": "Threshold maximums, keyed max1 and max2" }, "unit": { "type": "string", "description": "Unit of the threshold values" } }, "required": [ "max_values", "unit" ], "nullable": true, "description": "Thresholds that color the widget's values" }, "interval": { "type": "string", "description": "Time interval for the widget's series, such as 5m" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the widget was created (ISO 8601)" }, "dashboardId": { "type": "string", "description": "ID of the dashboard the widget belongs to" }, "queries": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the widget query" }, "name": { "type": "string", "description": "Name of the query, used as the series name" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "Fields the query selects" }, "aggregates": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions the query computes" }, "transformations": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "description": "Transformations applied to aggregates, keyed by the aggregate's index" }, "columns": { "type": "array", "items": { "type": "string" }, "description": "Columns the query groups by" }, "fieldAliases": { "type": "array", "items": { "type": "string" }, "description": "Aliases shown in place of field names in table headers" }, "conditions": { "type": "string", "description": "Search query that filters the data" }, "orderby": { "type": "string", "description": "Field the results are sorted by" }, "widgetId": { "type": "string", "description": "ID of the widget the query belongs to" }, "onDemand": { "type": "array", "items": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "Whether on-demand metric extraction is enabled for the query" }, "extractionState": { "type": "string", "description": "On-demand extraction state, such as enabled:enrolled or disabled:high-cardinality" }, "dashboardWidgetQueryId": { "type": "integer", "description": "ID of the widget query" } }, "required": [ "dashboardWidgetQueryId", "enabled", "extractionState" ] }, "description": "On-demand metric extraction settings for the query" }, "isHidden": { "type": "boolean", "description": "Whether the query is hidden from the UI" }, "selectedAggregate": { "type": "integer", "nullable": true, "description": "Index of the aggregate shown by Big Number widgets" }, "linkedDashboards": { "type": "array", "items": { "type": "object", "properties": { "field": { "type": "string", "description": "Field that links to the dashboard" }, "dashboardId": { "type": "integer", "description": "ID of the linked dashboard" } }, "required": [ "dashboardId", "field" ] }, "description": "Dashboards linked from fields in the query's results" } }, "required": [ "aggregates", "columns", "conditions", "fieldAliases", "fields", "id", "isHidden", "linkedDashboards", "name", "onDemand", "orderby", "selectedAggregate", "transformations", "widgetId" ] }, "description": "Queries that provide the widget's data" }, "limit": { "type": "integer", "nullable": true, "description": "Maximum number of series or rows the widget shows" }, "widgetType": { "type": "string", "nullable": true, "description": "Dataset the widget queries, such as error-events, spans, logs or issue" }, "layout": { "type": "object", "additionalProperties": { "type": "integer" }, "nullable": true, "description": "Position and size of the widget on the dashboard grid" }, "axisRange": { "type": "string", "nullable": true, "description": "Y-axis range: auto or dataMin" }, "legendType": { "enum": [ "default", "breakdown", null ], "type": "string", "nullable": true, "description": "Legend style: default or breakdown" }, "datasetSource": { "type": "string", "nullable": true, "description": "Whether the widget's dataset was chosen by the user or inferred" }, "exploreUrls": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Explore URLs for each query, for widgets that query transactions" }, "changedReason": { "type": "array", "items": { "type": "object", "properties": { "orderby": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Sort orders that were dropped when the widget was migrated from transactions to spans" }, "equations": { "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, "nullable": true, "description": "Equations that were dropped when the widget was migrated from transactions to spans" }, "selected_columns": { "type": "array", "items": { "type": "string" }, "description": "Columns that were dropped when the widget was migrated from transactions to spans" } }, "required": [ "equations", "orderby", "selected_columns" ] }, "nullable": true, "description": "Parts of each query that were dropped when the widget was migrated from transactions to spans" } }, "required": [ "axisRange", "changedReason", "dashboardId", "datasetSource", "dateCreated", "description", "displayType", "id", "interval", "layout", "legendType", "limit", "queries", "thresholds", "title", "widgetType" ] }, "description": "Widgets on the dashboard" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "Saved project filter for the dashboard. [-1] means all projects" }, "filters": { "type": "object", "properties": { "release": { "type": "array", "items": { "type": "string" }, "description": "Saved release filter" }, "releaseId": { "type": "array", "items": { "type": "string" }, "description": "Saved release ID filter" }, "globalFilter": { "type": "array", "items": { "type": "object", "properties": { "dataset": { "type": "string", "description": "Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs" }, "tag": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the tag or attribute the filter applies to" }, "name": { "type": "string", "description": "Display name of the tag or attribute" }, "kind": { "type": "string", "description": "Kind of the field, such as tag, measurement or field" } }, "required": [ "key", "name" ], "description": "Tag or attribute being filtered" }, "value": { "type": "string", "description": "Filter condition in search syntax, such as browser.name:[Chrome]" }, "isTemporary": { "type": "boolean", "description": "Whether the filter comes from a link and isn't saved by the user" } }, "required": [ "dataset", "tag", "value" ] }, "description": "Saved global filters applied to every widget" } }, "description": "Saved release and global filters for the dashboard" }, "permissions": { "type": "object", "properties": { "isEditableByEveryone": { "type": "boolean", "description": "Whether everyone in the organization can edit the dashboard" }, "teamsWithEditAccess": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the teams that can edit the dashboard" } }, "required": [ "isEditableByEveryone", "teamsWithEditAccess" ], "nullable": true, "description": "Edit permissions for the dashboard" }, "isFavorited": { "type": "boolean", "description": "Whether the requesting user favorited the dashboard" }, "prebuiltId": { "type": "integer", "nullable": true, "description": "ID of the prebuilt dashboard this dashboard comes from" }, "queryPriority": { "type": "string", "description": "Query priority for the dashboard: normal or faster" } }, "required": [ "createdBy", "dateCreated", "filters", "id", "isFavorited", "permissions", "prebuiltId", "projects", "queryPriority", "title", "widgets" ] }, "examples": { "RestoreADashboardRevision": { "value": { "id": "1", "title": "Dashboard", "dateCreated": "2024-06-20T14:38:03.498574Z", "createdBy": { "id": "1", "name": "Admin", "username": "admin", "email": "admin@sentry.io", "avatarUrl": "www.example.com", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-10-25T17:07:33.190596Z", "lastLogin": "2024-07-16T15:28:39.261659Z", "has2fa": true, "lastActive": "2024-07-16T20:45:49.364197Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "1", "email": "admin@sentry.io", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": "www.example.com" } }, "widgets": [ { "id": "658714", "title": "Custom Widget", "description": null, "displayType": "table", "thresholds": null, "interval": "5m", "dateCreated": "2024-07-16T15:36:46.048343Z", "dashboardId": "1", "datasetSource": "user", "queries": [ { "id": "1", "name": "", "fields": [ "avg(transaction.duration)", "transaction" ], "aggregates": [ "avg(transaction.duration)" ], "transformations": {}, "columns": [ "transaction" ], "fieldAliases": [ "", "" ], "conditions": "", "orderby": "-avg(transaction.duration)", "widgetId": "1", "onDemand": [ { "enabled": false, "extractionState": "disabled:not-applicable", "dashboardWidgetQueryId": 1 } ], "isHidden": false, "selectedAggregate": null, "linkedDashboards": [] } ], "limit": null, "widgetType": "transaction-like", "layout": { "w": 2, "y": 0, "h": 2, "minH": 2, "x": 0 }, "exploreUrls": null, "changedReason": null, "axisRange": null, "legendType": "default" } ], "projects": [ 1 ], "filters": {}, "environment": [ "alpha" ], "period": "7d", "permissions": { "isEditableByEveryone": true, "teamsWithEditAccess": [] }, "isFavorited": false, "prebuiltId": null, "queryPriority": "normal" }, "summary": "Restore a dashboard revision" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "description": "Conflict" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/detectors/": { "get": { "operationId": "listOrganizationDetectors", "description": "List an Organization's Monitors", "summary": "Fetch an Organization's Monitors", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "An optional search query for filtering monitors.\n\nAvailable fields are:\n- `name`\n- `type`: e.g. `error`, `metric_issue`, `issue_stream`\n- `assignee`: email, username, #team, me, none\n " }, { "in": "query", "name": "sortBy", "schema": { "type": "string" }, "description": "The property to sort results by. If not specified, the results are sorted by id.\n\nAvailable fields are:\n- `name`\n- `id`\n- `type`\n- `connectedWorkflows`\n- `latestGroup`\n- `openIssues`\n\nPrefix with `-` to sort in descending order.\n " }, { "in": "query", "name": "id", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "The ID of the monitor you'd like to query." }, { "in": "query", "name": "type", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Filter by monitor type(s). Can be specified multiple times." }, { "in": "query", "name": "enabled", "schema": { "type": "boolean" }, "description": "Filter by whether monitors are enabled." }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Monitors" ], "security": [ { "auth_token": [ "alerts:read", "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor" }, "createdBy": { "type": "string", "nullable": true, "description": "ID of the user who created the monitor" }, "latestGroup": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" } }, "required": [ "culprit", "firstSeen", "id", "issueCategory", "issueType", "lastSeen", "level", "metadata", "numComments", "platform", "project", "shortId", "status", "substatus", "title", "type" ], "nullable": true, "description": "Latest issue the monitor created" }, "description": { "type": "string", "nullable": true, "description": "Description of the monitor" }, "id": { "type": "string", "description": "Monitor ID" }, "projectId": { "type": "string", "nullable": true, "description": "ID of the project the monitor belongs to" }, "name": { "type": "string", "description": "Monitor name" }, "type": { "type": "string", "description": "Type of the monitor, such as metric_issue or error" }, "workflowIds": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "IDs of the alerts connected to the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the monitor was last updated (ISO 8601)" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "enum": [ "snuba_query_subscription", "cron_monitor", "uptime_subscription" ], "type": "string", "description": "Type of the data source" }, "sourceId": { "type": "string", "description": "ID of the query subscription, cron monitor or uptime subscription" }, "queryObj": { "anyOf": [ { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ] }, { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] }, { "type": "object", "properties": { "url": { "type": "string", "description": "URL the check requests" }, "method": { "type": "string", "description": "HTTP method of the check request, such as GET" }, "body": { "type": "string", "nullable": true, "description": "Body of the check request. Null when it has none" }, "headers": { "type": "array", "items": { "type": "array", "items": { "type": "string" }, "minLength": 2, "maxLength": 2 }, "description": "Headers of the check request, each a name and value pair" }, "intervalSeconds": { "type": "integer", "description": "How often the check runs, in seconds" }, "timeoutMs": { "type": "integer", "description": "How long the check waits for a response, in milliseconds" }, "traceSampling": { "type": "boolean", "description": "Whether the check request samples a trace" }, "responseCaptureEnabled": { "type": "boolean", "description": "Whether failed checks capture the response body and headers" }, "assertion": { "description": "Assertion the response must pass. Null when the check has none", "type": "object", "properties": { "root": { "description": "All possible assertion operations", "anyOf": [ { "description": "The boolean AND operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "and" ], "description": "Operation, always and" }, "children": { "type": "array", "items": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." }, "description": "Operations that must all pass" } } }, { "description": "The boolean OR operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "or" ], "description": "Operation, always or" }, "children": { "type": "array", "items": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." }, "description": "Operations of which at least one must pass" } } }, { "description": "The negation operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "not" ], "description": "Operation, always not" }, "operand": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." } } }, { "description": "The HTTP status code comparison operation", "type": "object", "properties": { "value": { "type": "integer", "description": "HTTP status code to compare the response status code against" }, "operator": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] } } }, { "description": "The JSONPath query operation", "type": "object", "properties": { "op": { "enum": [ "json_path" ], "description": "Operation, always json_path" }, "value": { "type": "string", "description": "JSONPath query to run on the response body" }, "operator": { "nullable": true, "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ], "type": "string" }, "operand": { "description": "An operand for comparison against json path values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "jsonpath_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the query result against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } }, { "type": "object", "nullable": true, "enum": [ null ] } ] } } }, { "description": "The HTTP header (key and value) comparison operation", "type": "object", "properties": { "key_op": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] }, "key_operand": { "description": "A operand for comparison against HTTP header keys and values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the header key or value against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } } ] }, "value_op": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] }, "value_operand": { "description": "A operand for comparison against HTTP header keys and values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the header key or value against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } } ] } } } ] } }, "nullable": true } }, "required": [ "assertion", "body", "headers", "intervalSeconds", "method", "responseCaptureEnabled", "timeoutMs", "traceSampling", "url" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The query subscription, cron monitor or uptime subscription, which depends on type. Null when it no longer exists" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "nullable": true, "description": "Data sources the monitor evaluates, such as a query subscription" }, "conditionGroup": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } }, "nullable": true, "description": "Conditions that decide the monitor's status" }, "config": { "anyOf": [ { "type": "object", "maxProperties": 0, "description": "Empty for monitor types without configuration" }, { "type": "object", "additionalProperties": false, "properties": { "sentry:fingerprintingRules": { "type": "string", "description": "Fingerprinting rules of the project" }, "sentry:resolveAge": { "type": "integer", "description": "Hours of inactivity after which the project's issues resolve. 0 to never" } } }, { "type": "object", "additionalProperties": false, "properties": { "organizationId": { "type": "integer", "description": "ID of the organization" } } }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "additionalProperties": false, "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ], "description": "For percent detection, how far back the compared window is, in seconds" }, "detectionType": { "type": "string", "enum": [ "static", "percent", "dynamic" ], "description": "How the monitor detects issues: static thresholds, percent change or dynamic anomalies" } } }, { "description": "Configuration for preprod static analysis detector", "type": "object", "required": [ "thresholdType", "measurement" ], "additionalProperties": false, "properties": { "thresholdType": { "type": "string", "enum": [ "absolute_diff", "absolute", "relative_diff" ], "description": "The type of threshold to apply" }, "measurement": { "type": "string", "enum": [ "install_size", "download_size" ], "description": "The measurement to track" }, "query": { "type": "string", "description": "Search query to filter which artifacts are monitored" } } }, { "description": "A representation of an uptime alert", "type": "object", "required": [ "mode", "environment", "recoveryThreshold", "downtimeThreshold" ], "additionalProperties": false, "properties": { "mode": { "type": "integer", "enum": [ 1, 2, 3 ], "description": "How the monitor was created: 1 manually, 2 auto-detected and onboarding, 3 auto-detected and active" }, "environment": { "type": "string", "nullable": true, "description": "Environment of the monitor. Null for none" }, "recoveryThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive successful checks required to mark monitor as recovered" }, "downtimeThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive failed checks required to mark monitor as down" } } } ], "description": "Configuration of the monitor, which depends on its type" }, "enabled": { "type": "boolean", "description": "Whether the monitor is enabled" } }, "required": [ "conditionGroup", "config", "dataSources", "dateCreated", "dateUpdated", "enabled", "id", "name", "projectId", "type", "workflowIds" ] } }, "examples": { "ListAllMonitorsInAnOrganization": { "value": [ { "id": "123", "projectId": "1", "name": "Error Monitor", "description": null, "type": "error", "workflowIds": [ "12345" ], "owner": null, "createdBy": null, "dateCreated": "2025-03-12T11:15:50.764865Z", "dateUpdated": "2025-06-17T14:04:02.485354Z", "dataSources": null, "conditionGroup": null, "config": {}, "enabled": true, "latestGroup": { "id": "123456789", "title": "This is an example Python exception", "culprit": "/api/0/test/example/", "shortId": "SENTRY-ABC12", "level": "info", "status": "unresolved", "substatus": "escalating", "platform": "python", "project": { "id": "1", "name": "Example", "slug": "sentry", "platform": "python" }, "type": "default", "issueType": "error", "issueCategory": "error", "metadata": { "title": "This is an example Python exception", "sdk": { "name": "sentry.python.django", "name_normalized": "sentry.python" }, "severity": 0, "severity_reason": "log_level_info", "initial_priority": 25 }, "numComments": 0, "firstSeen": "2026-01-08T21:00:59.737468Z", "lastSeen": "2026-01-08T21:23:45.723716Z" } }, { "id": "234567891", "projectId": "1", "name": "[us] Example", "description": null, "type": "uptime_domain_failure", "workflowIds": [], "owner": { "type": "team", "id": "1234", "name": "abc" }, "createdBy": null, "dateCreated": "2025-04-21T21:56:32.445528Z", "dateUpdated": "2025-10-23T00:07:24.809466Z", "dataSources": [ { "id": "271218", "organizationId": "1", "type": "uptime_subscription", "sourceId": "267409", "queryObj": { "url": "https://example.com", "method": "POST", "body": "{\n \"level\": \"info\",\n \"message\": \"Test-Event\",\n \"platform\": \"javascript\"\n}", "headers": [ [ "content-type", "application/json" ], [ "user-agent", "Sentry Test" ] ], "intervalSeconds": 60, "timeoutMs": 5000, "traceSampling": false, "responseCaptureEnabled": true, "assertion": null } } ], "conditionGroup": { "id": "56789", "organizationId": "1", "logicType": "any", "conditions": [ { "id": "123456", "type": "eq", "comparison": "failure", "conditionResult": 75 }, { "id": "234567", "type": "eq", "comparison": "success", "conditionResult": 0 } ], "actions": [] }, "config": { "mode": 1, "environment": "us", "downtimeThreshold": 3, "recoveryThreshold": 1 }, "enabled": true, "latestGroup": null }, { "id": "1234567", "projectId": "123", "name": "Test Alert", "description": null, "type": "metric_issue", "workflowIds": [ "1234567" ], "owner": { "type": "user", "id": "12345", "name": "jane@example.com", "email": "jane@example.com" }, "createdBy": "12345", "dateCreated": "2025-04-28T22:46:12.469771Z", "dateUpdated": "2025-07-29T20:57:06.680844Z", "dataSources": [ { "id": "56789", "organizationId": "1", "type": "snuba_query_subscription", "sourceId": "45678", "queryObj": { "id": "34567", "status": 0, "subscription": "12/3456789", "snubaQuery": { "id": "56789", "dataset": "events_analytics_platform", "query": "", "aggregate": "avg(span.duration)", "timeWindow": 14400, "environment": null, "eventTypes": [ "trace_item_span" ], "extrapolationMode": "unknown" } } } ], "conditionGroup": { "id": "12345", "organizationId": "1", "logicType": "any", "conditions": [ { "id": "456789", "type": "gt", "comparison": 1600, "conditionResult": 75 }, { "id": "345678", "type": "lte", "comparison": 1600, "conditionResult": 0 } ], "actions": [] }, "config": { "detectionType": "static" }, "enabled": true, "latestGroup": null } ], "summary": "List all monitors in an organization" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateOrganizationDetectors", "description": "Bulk enable or disable an Organization's Monitors", "summary": "Mutate an Organization's Monitors", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "An optional search query for filtering monitors.\n\nAvailable fields are:\n- `name`\n- `type`: e.g. `error`, `metric_issue`, `issue_stream`\n- `assignee`: email, username, #team, me, none\n " }, { "in": "query", "name": "id", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "The ID of the monitor you'd like to query." } ], "tags": [ "Monitors" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "Whether to enable or disable the monitors" } }, "required": [ "enabled" ] } } }, "required": true }, "security": [ { "auth_token": [ "alerts:write", "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor" }, "createdBy": { "type": "string", "nullable": true, "description": "ID of the user who created the monitor" }, "latestGroup": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" } }, "required": [ "culprit", "firstSeen", "id", "issueCategory", "issueType", "lastSeen", "level", "metadata", "numComments", "platform", "project", "shortId", "status", "substatus", "title", "type" ], "nullable": true, "description": "Latest issue the monitor created" }, "description": { "type": "string", "nullable": true, "description": "Description of the monitor" }, "id": { "type": "string", "description": "Monitor ID" }, "projectId": { "type": "string", "nullable": true, "description": "ID of the project the monitor belongs to" }, "name": { "type": "string", "description": "Monitor name" }, "type": { "type": "string", "description": "Type of the monitor, such as metric_issue or error" }, "workflowIds": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "IDs of the alerts connected to the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the monitor was last updated (ISO 8601)" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "enum": [ "snuba_query_subscription", "cron_monitor", "uptime_subscription" ], "type": "string", "description": "Type of the data source" }, "sourceId": { "type": "string", "description": "ID of the query subscription, cron monitor or uptime subscription" }, "queryObj": { "anyOf": [ { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ] }, { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] }, { "type": "object", "properties": { "url": { "type": "string", "description": "URL the check requests" }, "method": { "type": "string", "description": "HTTP method of the check request, such as GET" }, "body": { "type": "string", "nullable": true, "description": "Body of the check request. Null when it has none" }, "headers": { "type": "array", "items": { "type": "array", "items": { "type": "string" }, "minLength": 2, "maxLength": 2 }, "description": "Headers of the check request, each a name and value pair" }, "intervalSeconds": { "type": "integer", "description": "How often the check runs, in seconds" }, "timeoutMs": { "type": "integer", "description": "How long the check waits for a response, in milliseconds" }, "traceSampling": { "type": "boolean", "description": "Whether the check request samples a trace" }, "responseCaptureEnabled": { "type": "boolean", "description": "Whether failed checks capture the response body and headers" }, "assertion": { "description": "Assertion the response must pass. Null when the check has none", "type": "object", "properties": { "root": { "description": "All possible assertion operations", "anyOf": [ { "description": "The boolean AND operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "and" ], "description": "Operation, always and" }, "children": { "type": "array", "items": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." }, "description": "Operations that must all pass" } } }, { "description": "The boolean OR operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "or" ], "description": "Operation, always or" }, "children": { "type": "array", "items": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." }, "description": "Operations of which at least one must pass" } } }, { "description": "The negation operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "not" ], "description": "Operation, always not" }, "operand": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." } } }, { "description": "The HTTP status code comparison operation", "type": "object", "properties": { "value": { "type": "integer", "description": "HTTP status code to compare the response status code against" }, "operator": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] } } }, { "description": "The JSONPath query operation", "type": "object", "properties": { "op": { "enum": [ "json_path" ], "description": "Operation, always json_path" }, "value": { "type": "string", "description": "JSONPath query to run on the response body" }, "operator": { "nullable": true, "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ], "type": "string" }, "operand": { "description": "An operand for comparison against json path values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "jsonpath_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the query result against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } }, { "type": "object", "nullable": true, "enum": [ null ] } ] } } }, { "description": "The HTTP header (key and value) comparison operation", "type": "object", "properties": { "key_op": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] }, "key_operand": { "description": "A operand for comparison against HTTP header keys and values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the header key or value against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } } ] }, "value_op": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] }, "value_operand": { "description": "A operand for comparison against HTTP header keys and values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the header key or value against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } } ] } } } ] } }, "nullable": true } }, "required": [ "assertion", "body", "headers", "intervalSeconds", "method", "responseCaptureEnabled", "timeoutMs", "traceSampling", "url" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The query subscription, cron monitor or uptime subscription, which depends on type. Null when it no longer exists" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "nullable": true, "description": "Data sources the monitor evaluates, such as a query subscription" }, "conditionGroup": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } }, "nullable": true, "description": "Conditions that decide the monitor's status" }, "config": { "anyOf": [ { "type": "object", "maxProperties": 0, "description": "Empty for monitor types without configuration" }, { "type": "object", "additionalProperties": false, "properties": { "sentry:fingerprintingRules": { "type": "string", "description": "Fingerprinting rules of the project" }, "sentry:resolveAge": { "type": "integer", "description": "Hours of inactivity after which the project's issues resolve. 0 to never" } } }, { "type": "object", "additionalProperties": false, "properties": { "organizationId": { "type": "integer", "description": "ID of the organization" } } }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "additionalProperties": false, "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ], "description": "For percent detection, how far back the compared window is, in seconds" }, "detectionType": { "type": "string", "enum": [ "static", "percent", "dynamic" ], "description": "How the monitor detects issues: static thresholds, percent change or dynamic anomalies" } } }, { "description": "Configuration for preprod static analysis detector", "type": "object", "required": [ "thresholdType", "measurement" ], "additionalProperties": false, "properties": { "thresholdType": { "type": "string", "enum": [ "absolute_diff", "absolute", "relative_diff" ], "description": "The type of threshold to apply" }, "measurement": { "type": "string", "enum": [ "install_size", "download_size" ], "description": "The measurement to track" }, "query": { "type": "string", "description": "Search query to filter which artifacts are monitored" } } }, { "description": "A representation of an uptime alert", "type": "object", "required": [ "mode", "environment", "recoveryThreshold", "downtimeThreshold" ], "additionalProperties": false, "properties": { "mode": { "type": "integer", "enum": [ 1, 2, 3 ], "description": "How the monitor was created: 1 manually, 2 auto-detected and onboarding, 3 auto-detected and active" }, "environment": { "type": "string", "nullable": true, "description": "Environment of the monitor. Null for none" }, "recoveryThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive successful checks required to mark monitor as recovered" }, "downtimeThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive failed checks required to mark monitor as down" } } } ], "description": "Configuration of the monitor, which depends on its type" }, "enabled": { "type": "boolean", "description": "Whether the monitor is enabled" } }, "required": [ "conditionGroup", "config", "dataSources", "dateCreated", "dateUpdated", "enabled", "id", "name", "projectId", "type", "workflowIds" ] } }, "examples": { "ListAllMonitorsInAnOrganization": { "value": [ { "id": "123", "projectId": "1", "name": "Error Monitor", "description": null, "type": "error", "workflowIds": [ "12345" ], "owner": null, "createdBy": null, "dateCreated": "2025-03-12T11:15:50.764865Z", "dateUpdated": "2025-06-17T14:04:02.485354Z", "dataSources": null, "conditionGroup": null, "config": {}, "enabled": true, "latestGroup": { "id": "123456789", "title": "This is an example Python exception", "culprit": "/api/0/test/example/", "shortId": "SENTRY-ABC12", "level": "info", "status": "unresolved", "substatus": "escalating", "platform": "python", "project": { "id": "1", "name": "Example", "slug": "sentry", "platform": "python" }, "type": "default", "issueType": "error", "issueCategory": "error", "metadata": { "title": "This is an example Python exception", "sdk": { "name": "sentry.python.django", "name_normalized": "sentry.python" }, "severity": 0, "severity_reason": "log_level_info", "initial_priority": 25 }, "numComments": 0, "firstSeen": "2026-01-08T21:00:59.737468Z", "lastSeen": "2026-01-08T21:23:45.723716Z" } }, { "id": "234567891", "projectId": "1", "name": "[us] Example", "description": null, "type": "uptime_domain_failure", "workflowIds": [], "owner": { "type": "team", "id": "1234", "name": "abc" }, "createdBy": null, "dateCreated": "2025-04-21T21:56:32.445528Z", "dateUpdated": "2025-10-23T00:07:24.809466Z", "dataSources": [ { "id": "271218", "organizationId": "1", "type": "uptime_subscription", "sourceId": "267409", "queryObj": { "url": "https://example.com", "method": "POST", "body": "{\n \"level\": \"info\",\n \"message\": \"Test-Event\",\n \"platform\": \"javascript\"\n}", "headers": [ [ "content-type", "application/json" ], [ "user-agent", "Sentry Test" ] ], "intervalSeconds": 60, "timeoutMs": 5000, "traceSampling": false, "responseCaptureEnabled": true, "assertion": null } } ], "conditionGroup": { "id": "56789", "organizationId": "1", "logicType": "any", "conditions": [ { "id": "123456", "type": "eq", "comparison": "failure", "conditionResult": 75 }, { "id": "234567", "type": "eq", "comparison": "success", "conditionResult": 0 } ], "actions": [] }, "config": { "mode": 1, "environment": "us", "downtimeThreshold": 3, "recoveryThreshold": 1 }, "enabled": true, "latestGroup": null }, { "id": "1234567", "projectId": "123", "name": "Test Alert", "description": null, "type": "metric_issue", "workflowIds": [ "1234567" ], "owner": { "type": "user", "id": "12345", "name": "jane@example.com", "email": "jane@example.com" }, "createdBy": "12345", "dateCreated": "2025-04-28T22:46:12.469771Z", "dateUpdated": "2025-07-29T20:57:06.680844Z", "dataSources": [ { "id": "56789", "organizationId": "1", "type": "snuba_query_subscription", "sourceId": "45678", "queryObj": { "id": "34567", "status": 0, "subscription": "12/3456789", "snubaQuery": { "id": "56789", "dataset": "events_analytics_platform", "query": "", "aggregate": "avg(span.duration)", "timeWindow": 14400, "environment": null, "eventTypes": [ "trace_item_span" ], "extrapolationMode": "unknown" } } } ], "conditionGroup": { "id": "12345", "organizationId": "1", "logicType": "any", "conditions": [ { "id": "456789", "type": "gt", "comparison": 1600, "conditionResult": 75 }, { "id": "345678", "type": "lte", "comparison": 1600, "conditionResult": 0 } ], "actions": [] }, "config": { "detectionType": "static" }, "enabled": true, "latestGroup": null } ], "summary": "List all monitors in an organization" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true }, "delete": { "operationId": "deleteOrganizationDetectors", "description": "Bulk delete Monitors for a given organization", "summary": "Bulk Delete Monitors", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "An optional search query for filtering monitors.\n\nAvailable fields are:\n- `name`\n- `type`: e.g. `error`, `metric_issue`, `issue_stream`\n- `assignee`: email, username, #team, me, none\n " }, { "in": "query", "name": "sortBy", "schema": { "type": "string" }, "description": "The property to sort results by. If not specified, the results are sorted by id.\n\nAvailable fields are:\n- `name`\n- `id`\n- `type`\n- `connectedWorkflows`\n- `latestGroup`\n- `openIssues`\n\nPrefix with `-` to sort in descending order.\n " }, { "in": "query", "name": "id", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "The ID of the monitor you'd like to query." } ], "tags": [ "Monitors" ], "security": [ { "auth_token": [ "alerts:write", "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "description": "Success" }, "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/detectors/{detector_id}/": { "get": { "operationId": "getOrganizationDetector", "description": "Return details on an individual monitor", "summary": "Fetch a Monitor", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "detector_id", "schema": { "type": "integer" }, "description": "The ID of the monitor you'd like to query.", "required": true } ], "tags": [ "Monitors" ], "security": [ { "auth_token": [ "alerts:read", "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor" }, "createdBy": { "type": "string", "nullable": true, "description": "ID of the user who created the monitor" }, "latestGroup": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" } }, "required": [ "culprit", "firstSeen", "id", "issueCategory", "issueType", "lastSeen", "level", "metadata", "numComments", "platform", "project", "shortId", "status", "substatus", "title", "type" ], "nullable": true, "description": "Latest issue the monitor created" }, "description": { "type": "string", "nullable": true, "description": "Description of the monitor" }, "id": { "type": "string", "description": "Monitor ID" }, "projectId": { "type": "string", "nullable": true, "description": "ID of the project the monitor belongs to" }, "name": { "type": "string", "description": "Monitor name" }, "type": { "type": "string", "description": "Type of the monitor, such as metric_issue or error" }, "workflowIds": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "IDs of the alerts connected to the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the monitor was last updated (ISO 8601)" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "enum": [ "snuba_query_subscription", "cron_monitor", "uptime_subscription" ], "type": "string", "description": "Type of the data source" }, "sourceId": { "type": "string", "description": "ID of the query subscription, cron monitor or uptime subscription" }, "queryObj": { "anyOf": [ { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ] }, { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] }, { "type": "object", "properties": { "url": { "type": "string", "description": "URL the check requests" }, "method": { "type": "string", "description": "HTTP method of the check request, such as GET" }, "body": { "type": "string", "nullable": true, "description": "Body of the check request. Null when it has none" }, "headers": { "type": "array", "items": { "type": "array", "items": { "type": "string" }, "minLength": 2, "maxLength": 2 }, "description": "Headers of the check request, each a name and value pair" }, "intervalSeconds": { "type": "integer", "description": "How often the check runs, in seconds" }, "timeoutMs": { "type": "integer", "description": "How long the check waits for a response, in milliseconds" }, "traceSampling": { "type": "boolean", "description": "Whether the check request samples a trace" }, "responseCaptureEnabled": { "type": "boolean", "description": "Whether failed checks capture the response body and headers" }, "assertion": { "description": "Assertion the response must pass. Null when the check has none", "type": "object", "properties": { "root": { "description": "All possible assertion operations", "anyOf": [ { "description": "The boolean AND operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "and" ], "description": "Operation, always and" }, "children": { "type": "array", "items": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." }, "description": "Operations that must all pass" } } }, { "description": "The boolean OR operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "or" ], "description": "Operation, always or" }, "children": { "type": "array", "items": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." }, "description": "Operations of which at least one must pass" } } }, { "description": "The negation operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "not" ], "description": "Operation, always not" }, "operand": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." } } }, { "description": "The HTTP status code comparison operation", "type": "object", "properties": { "value": { "type": "integer", "description": "HTTP status code to compare the response status code against" }, "operator": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] } } }, { "description": "The JSONPath query operation", "type": "object", "properties": { "op": { "enum": [ "json_path" ], "description": "Operation, always json_path" }, "value": { "type": "string", "description": "JSONPath query to run on the response body" }, "operator": { "nullable": true, "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ], "type": "string" }, "operand": { "description": "An operand for comparison against json path values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "jsonpath_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the query result against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } }, { "type": "object", "nullable": true, "enum": [ null ] } ] } } }, { "description": "The HTTP header (key and value) comparison operation", "type": "object", "properties": { "key_op": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] }, "key_operand": { "description": "A operand for comparison against HTTP header keys and values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the header key or value against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } } ] }, "value_op": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] }, "value_operand": { "description": "A operand for comparison against HTTP header keys and values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the header key or value against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } } ] } } } ] } }, "nullable": true } }, "required": [ "assertion", "body", "headers", "intervalSeconds", "method", "responseCaptureEnabled", "timeoutMs", "traceSampling", "url" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The query subscription, cron monitor or uptime subscription, which depends on type. Null when it no longer exists" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "nullable": true, "description": "Data sources the monitor evaluates, such as a query subscription" }, "conditionGroup": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } }, "nullable": true, "description": "Conditions that decide the monitor's status" }, "config": { "anyOf": [ { "type": "object", "maxProperties": 0, "description": "Empty for monitor types without configuration" }, { "type": "object", "additionalProperties": false, "properties": { "sentry:fingerprintingRules": { "type": "string", "description": "Fingerprinting rules of the project" }, "sentry:resolveAge": { "type": "integer", "description": "Hours of inactivity after which the project's issues resolve. 0 to never" } } }, { "type": "object", "additionalProperties": false, "properties": { "organizationId": { "type": "integer", "description": "ID of the organization" } } }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "additionalProperties": false, "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ], "description": "For percent detection, how far back the compared window is, in seconds" }, "detectionType": { "type": "string", "enum": [ "static", "percent", "dynamic" ], "description": "How the monitor detects issues: static thresholds, percent change or dynamic anomalies" } } }, { "description": "Configuration for preprod static analysis detector", "type": "object", "required": [ "thresholdType", "measurement" ], "additionalProperties": false, "properties": { "thresholdType": { "type": "string", "enum": [ "absolute_diff", "absolute", "relative_diff" ], "description": "The type of threshold to apply" }, "measurement": { "type": "string", "enum": [ "install_size", "download_size" ], "description": "The measurement to track" }, "query": { "type": "string", "description": "Search query to filter which artifacts are monitored" } } }, { "description": "A representation of an uptime alert", "type": "object", "required": [ "mode", "environment", "recoveryThreshold", "downtimeThreshold" ], "additionalProperties": false, "properties": { "mode": { "type": "integer", "enum": [ 1, 2, 3 ], "description": "How the monitor was created: 1 manually, 2 auto-detected and onboarding, 3 auto-detected and active" }, "environment": { "type": "string", "nullable": true, "description": "Environment of the monitor. Null for none" }, "recoveryThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive successful checks required to mark monitor as recovered" }, "downtimeThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive failed checks required to mark monitor as down" } } } ], "description": "Configuration of the monitor, which depends on its type" }, "enabled": { "type": "boolean", "description": "Whether the monitor is enabled" } }, "required": [ "conditionGroup", "config", "dataSources", "dateCreated", "dateUpdated", "enabled", "id", "name", "projectId", "type", "workflowIds" ] }, "examples": { "FetchAMonitor": { "value": { "id": "123456", "projectId": "1", "name": "High Number of Errors", "description": null, "type": "metric_issue", "workflowIds": [ "45678" ], "owner": { "type": "team", "id": "1234567", "name": "example-team" }, "createdBy": "789123", "dateCreated": "2025-03-25T17:50:45.587657Z", "dateUpdated": "2025-07-22T17:10:45.069457Z", "dataSources": [ { "id": "34567", "organizationId": "1", "type": "snuba_query_subscription", "sourceId": "56789", "queryObj": { "id": "23456", "status": 0, "subscription": "12/345acb678def912ghi", "snubaQuery": { "id": "12345", "dataset": "events", "query": "", "aggregate": "count()", "timeWindow": 900, "environment": null, "eventTypes": [ "error" ], "extrapolationMode": "unknown" } } } ], "conditionGroup": { "id": "345678", "organizationId": "1", "logicType": "any", "conditions": [ { "id": "234567", "type": "anomaly_detection", "comparison": { "seasonality": "auto", "sensitivity": "low", "thresholdType": 0 }, "conditionResult": 75 } ], "actions": [] }, "config": { "detectionType": "dynamic" }, "enabled": true, "latestGroup": { "id": "123456789", "title": "High Number of Errors", "culprit": "", "shortId": "EXAMPLE-1A2B", "level": "error", "status": "resolved", "substatus": null, "platform": "python", "project": { "id": "1", "name": "Backend", "slug": "sentry", "platform": "python" }, "type": "generic", "issueType": "metric_issue", "issueCategory": "metric", "metadata": { "title": "High Number of Errors", "value": "Detected an error", "initial_priority": 75 }, "numComments": 0, "firstSeen": "2025-07-21T14:46:07.845207Z", "lastSeen": "2026-01-12T16:16:26.355334Z" } }, "summary": "Fetch a Monitor" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateOrganizationDetector", "description": "Update an existing monitor", "summary": "Update a Monitor by ID", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "detector_id", "schema": { "type": "integer" }, "description": "The ID of the monitor you'd like to query.", "required": true } ], "tags": [ "Monitors" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "description": "The type of monitor - `metric_issue`." }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "oneOf": [ { "type": "object", "title": "Errors", "description": "Counts error events or the users they affect.", "properties": { "query_type": { "type": "integer", "enum": [ 0 ] }, "dataset": { "type": "string", "enum": [ "events" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "enum": [ "count()", "count_unique(user)", "count_unique(dist)", "count_unique(release)", "count_unique(tags[sentry:user])", "count_unique(tags[sentry:dist])", "count_unique(tags[sentry:release])" ] }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "error", "default" ] }, "minItems": 1, "maxItems": 2 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Spans", "description": "Aggregates span attributes, such as `p95(span.duration)`. To query transaction spans, add `is_transaction:true` to `query`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|p100|max|min|sum|epm|failure_count|failure_rate|eps|apdex|user_misery|performance_score|opportunity_score)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_span" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Logs", "description": "Aggregates log attributes, such as `count(message)`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_log" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Application Metrics", "description": "Aggregates an application metric. The function arguments name the metric, its type, and its unit, such as `per_second(value,metric_name,counter,-)`. An `equation|` prefix combines several aggregates.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:(?:avg|avg_if|count|count_if|count_unique|count_unique_if|max|max_if|min|min_if|opportunity_score|p50|p50_if|p75|p75_if|p90|p90_if|p95|p95_if|p99|p99_if|per_minute|per_minute_if|per_second|per_second_if|performance_score|sum|sum_if)\\(.*\\)|equation\\|.+)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_metric" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Crash Rate", "description": "Measures the percentage of crashed sessions or users, such as `percentage(sessions_crashed, sessions) AS _crash_rate_alert_aggregate`.", "properties": { "query_type": { "type": "integer", "enum": [ 2 ] }, "dataset": { "type": "string", "enum": [ "metrics" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^percentage\\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\\)" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string" }, "description": "Ignored for this dataset. Send an empty list." }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] } ] }, "description": "\n The data sources for the metric monitor to use based on what you want to measure.\n\n The schema of each data source lists the `aggregate` values that its `dataset` and\n `eventTypes` accept.\n\n `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.\n Legacy metric alert rules expressed this value in minutes, so multiply a legacy value\n by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes\n `\"timeWindow\": 300`.\n\n **Number of Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count()\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n **Users Experiencing Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count_unique(tags[sentry:user])\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n\n **Throughput Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"count(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Duration Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"p95(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Failure Rate Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"failure_rate()\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Largest Contentful Paint Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`.\n\n ```json\n [\n {\n \"aggregate\":\"p95(measurements.lcp)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"is_transaction:true\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Custom Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are:\n `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `failure_rate()`\n `apdex(x)`, where `x` is the value of the Apdex score.\n `count()`\n\n ```json\n [\n {\n \"aggregate\": \"p75(measurements.ttfb)\",\n \"dataset\": \"events_analytics_platform\",\n \"environment\": \"prod\",\n \"queryType\": 1,\n \"eventTypes\": [\"trace_item_span\"],\n \"query\": \"is_transaction:true\",\n \"timeWindow\": 3600,\n \"extrapolationMode\": \"unknown\"\n }\n ]\n ```\n" }, "config": { "type": "object", "additionalProperties": {}, "description": "\n The issue detection type configuration.\n\n\n - `detectionType`\n - `static`: Threshold based monitor\n - `percent`: Change based monitor\n - `dynamic`: Dynamic monitor\n - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period, in seconds, at which to compare against historical data.\n For example, a value of 3600 compares the metric tracked against data 1 hour ago.\n - `300`: 5 minutes\n - `900`: 15 minutes\n - `3600`: 1 hour\n - `86400`: 1 day\n - `604800`: 1 week\n - `2592000`: 1 month\n\n **Threshold**\n ```json\n {\n \"detectionType\": \"static\"\n }\n ```\n **Change**\n ```json\n {\n \"detectionType\": \"percent\",\n \"comparisonDelta\": 3600\n }\n ```\n **Dynamic**\n ```json\n {\n \"detectionType\": \"dynamic\"\n }\n ```\n " }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "anyOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "error" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "oneOf": [ { "type": "object", "title": "Errors", "description": "Counts error events or the users they affect.", "properties": { "query_type": { "type": "integer", "enum": [ 0 ] }, "dataset": { "type": "string", "enum": [ "events" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "enum": [ "count()", "count_unique(user)", "count_unique(dist)", "count_unique(release)", "count_unique(tags[sentry:user])", "count_unique(tags[sentry:dist])", "count_unique(tags[sentry:release])" ] }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "error", "default" ] }, "minItems": 1, "maxItems": 2 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Spans", "description": "Aggregates span attributes, such as `p95(span.duration)`. To query transaction spans, add `is_transaction:true` to `query`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|p100|max|min|sum|epm|failure_count|failure_rate|eps|apdex|user_misery|performance_score|opportunity_score)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_span" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Logs", "description": "Aggregates log attributes, such as `count(message)`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_log" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Application Metrics", "description": "Aggregates an application metric. The function arguments name the metric, its type, and its unit, such as `per_second(value,metric_name,counter,-)`. An `equation|` prefix combines several aggregates.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:(?:avg|avg_if|count|count_if|count_unique|count_unique_if|max|max_if|min|min_if|opportunity_score|p50|p50_if|p75|p75_if|p90|p90_if|p95|p95_if|p99|p99_if|per_minute|per_minute_if|per_second|per_second_if|performance_score|sum|sum_if)\\(.*\\)|equation\\|.+)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_metric" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Crash Rate", "description": "Measures the percentage of crashed sessions or users, such as `percentage(sessions_crashed, sessions) AS _crash_rate_alert_aggregate`.", "properties": { "query_type": { "type": "integer", "enum": [ 2 ] }, "dataset": { "type": "string", "enum": [ "metrics" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^percentage\\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\\)" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string" }, "description": "Ignored for this dataset. Send an empty list." }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] } ] }, "description": "\n The data sources for the metric monitor to use based on what you want to measure.\n\n The schema of each data source lists the `aggregate` values that its `dataset` and\n `eventTypes` accept.\n\n `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.\n Legacy metric alert rules expressed this value in minutes, so multiply a legacy value\n by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes\n `\"timeWindow\": 300`.\n\n **Number of Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count()\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n **Users Experiencing Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count_unique(tags[sentry:user])\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n\n **Throughput Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"count(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Duration Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"p95(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Failure Rate Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"failure_rate()\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Largest Contentful Paint Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`.\n\n ```json\n [\n {\n \"aggregate\":\"p95(measurements.lcp)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"is_transaction:true\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Custom Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are:\n `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `failure_rate()`\n `apdex(x)`, where `x` is the value of the Apdex score.\n `count()`\n\n ```json\n [\n {\n \"aggregate\": \"p75(measurements.ttfb)\",\n \"dataset\": \"events_analytics_platform\",\n \"environment\": \"prod\",\n \"queryType\": 1,\n \"eventTypes\": [\"trace_item_span\"],\n \"query\": \"is_transaction:true\",\n \"timeWindow\": 3600,\n \"extrapolationMode\": \"unknown\"\n }\n ]\n ```\n" }, "config": { "type": "object", "additionalProperties": false }, "conditionGroup": { "type": "object", "additionalProperties": {}, "nullable": true }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." }, "fingerprintingRules": { "type": "string", "nullable": true }, "resolveAge": { "type": "integer", "nullable": true, "description": "Automatically resolve an issue if it hasn't been seen for this many hours. Set to `0` to disable auto-resolve." } }, "title": "Error Monitor" }, { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "metric_issue" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "query_type": { "type": "integer" }, "dataset": { "type": "string" }, "query": { "type": "string" }, "aggregate": { "type": "string" }, "time_window": { "type": "integer" }, "environment": { "type": "string", "nullable": true, "maxLength": 64 }, "event_types": { "type": "array", "items": { "type": "string" } }, "group_by": { "type": "array", "items": { "type": "string", "maxLength": 200 } }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "aggregate", "dataset", "environment", "event_types", "query", "time_window" ] } }, "config": { "oneOf": [ { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ] }, "detectionType": { "type": "string", "enum": [ "static" ] } }, "additionalProperties": false, "title": "Static Detection Config" }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ] }, "detectionType": { "type": "string", "enum": [ "percent" ] } }, "additionalProperties": false, "title": "Percent Detection Config" }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ] }, "detectionType": { "type": "string", "enum": [ "dynamic" ] } }, "additionalProperties": false, "title": "Dynamic Detection Config" } ], "discriminator": { "propertyName": "detectionType" } }, "conditionGroup": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": { "oneOf": [ { "title": "Threshold Condition", "type": "object", "properties": { "id": { "type": "integer" }, "conditionResult": { "type": "integer", "enum": [ 0, 50, 75 ] }, "type": { "type": "string", "enum": [ "gt", "lt", "gte", "lte" ] }, "comparison": { "type": "number" } }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Anomaly Detection Condition", "type": "object", "properties": { "id": { "type": "integer" }, "conditionResult": { "type": "integer", "enum": [ 0, 50, 75 ] }, "type": { "type": "string", "enum": [ "anomaly_detection" ] }, "comparison": { "type": "object", "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ] }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ] }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ] } }, "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false } }, "required": [ "type", "comparison", "conditionResult" ] } ], "discriminator": { "propertyName": "type" } } } }, "required": [ "conditions", "logicType" ] }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "title": "Metric Issue Monitor" }, { "type": "object", "description": "Validator for monitor incident detection configuration.\n\nThis is a lightweight validator that delegates Monitor creation/update to the\ndata_source field (MonitorDataSourceValidator).", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "monitor_check_in_failure" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "type": "object", "description": "Data source validator for cron monitors.\n\nThis handles creating/updating the Monitor when a detector is created/updated.", "properties": { "name": { "type": "string", "description": "Name of the monitor. Used for notifications.", "maxLength": 128 }, "slug": { "type": "string", "description": "Uniquely identifies your monitor within your organization.", "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "status": { "type": "string" }, "owner": { "type": "string", "nullable": true }, "is_muted": { "type": "boolean" }, "config": { "type": "object", "additionalProperties": {} } }, "required": [ "config" ] } }, "config": { "type": "object" }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "title": "Monitor Check In Failure Monitor" }, { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "preprod_size_analysis" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "oneOf": [ { "type": "object", "title": "Errors", "description": "Counts error events or the users they affect.", "properties": { "query_type": { "type": "integer", "enum": [ 0 ] }, "dataset": { "type": "string", "enum": [ "events" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "enum": [ "count()", "count_unique(user)", "count_unique(dist)", "count_unique(release)", "count_unique(tags[sentry:user])", "count_unique(tags[sentry:dist])", "count_unique(tags[sentry:release])" ] }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "error", "default" ] }, "minItems": 1, "maxItems": 2 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Spans", "description": "Aggregates span attributes, such as `p95(span.duration)`. To query transaction spans, add `is_transaction:true` to `query`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|p100|max|min|sum|epm|failure_count|failure_rate|eps|apdex|user_misery|performance_score|opportunity_score)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_span" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Logs", "description": "Aggregates log attributes, such as `count(message)`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_log" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Application Metrics", "description": "Aggregates an application metric. The function arguments name the metric, its type, and its unit, such as `per_second(value,metric_name,counter,-)`. An `equation|` prefix combines several aggregates.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:(?:avg|avg_if|count|count_if|count_unique|count_unique_if|max|max_if|min|min_if|opportunity_score|p50|p50_if|p75|p75_if|p90|p90_if|p95|p95_if|p99|p99_if|per_minute|per_minute_if|per_second|per_second_if|performance_score|sum|sum_if)\\(.*\\)|equation\\|.+)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_metric" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Crash Rate", "description": "Measures the percentage of crashed sessions or users, such as `percentage(sessions_crashed, sessions) AS _crash_rate_alert_aggregate`.", "properties": { "query_type": { "type": "integer", "enum": [ 2 ] }, "dataset": { "type": "string", "enum": [ "metrics" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^percentage\\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\\)" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string" }, "description": "Ignored for this dataset. Send an empty list." }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] } ] }, "description": "\n The data sources for the metric monitor to use based on what you want to measure.\n\n The schema of each data source lists the `aggregate` values that its `dataset` and\n `eventTypes` accept.\n\n `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.\n Legacy metric alert rules expressed this value in minutes, so multiply a legacy value\n by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes\n `\"timeWindow\": 300`.\n\n **Number of Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count()\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n **Users Experiencing Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count_unique(tags[sentry:user])\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n\n **Throughput Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"count(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Duration Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"p95(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Failure Rate Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"failure_rate()\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Largest Contentful Paint Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`.\n\n ```json\n [\n {\n \"aggregate\":\"p95(measurements.lcp)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"is_transaction:true\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Custom Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are:\n `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `failure_rate()`\n `apdex(x)`, where `x` is the value of the Apdex score.\n `count()`\n\n ```json\n [\n {\n \"aggregate\": \"p75(measurements.ttfb)\",\n \"dataset\": \"events_analytics_platform\",\n \"environment\": \"prod\",\n \"queryType\": 1,\n \"eventTypes\": [\"trace_item_span\"],\n \"query\": \"is_transaction:true\",\n \"timeWindow\": 3600,\n \"extrapolationMode\": \"unknown\"\n }\n ]\n ```\n" }, "config": { "description": "Configuration for preprod static analysis detector", "type": "object", "properties": { "thresholdType": { "type": "string", "enum": [ "absolute_diff", "absolute", "relative_diff" ], "description": "The type of threshold to apply" }, "measurement": { "type": "string", "enum": [ "install_size", "download_size" ], "description": "The measurement to track" }, "query": { "type": "string", "description": "Search query to filter which artifacts are monitored" } }, "required": [ "thresholdType", "measurement" ], "additionalProperties": false }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "title": "Preprod Size Analysis Monitor" }, { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "uptime_domain_failure" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "url": { "type": "string", "format": "uri", "maxLength": 255 }, "headers": { "type": "object", "additionalProperties": {}, "description": "Additional headers to send with the check request." }, "timeout_ms": { "type": "integer", "maximum": 60000, "minimum": 1000, "description": "The number of milliseconds the request will wait for a response before timing-out." }, "method": { "enum": [ "GET", "POST", "HEAD", "PUT", "DELETE", "PATCH", "OPTIONS" ], "type": "string", "description": "The HTTP method used to make the check request.\n\n* `GET`\n* `POST`\n* `HEAD`\n* `PUT`\n* `DELETE`\n* `PATCH`\n* `OPTIONS`" }, "trace_sampling": { "type": "boolean", "default": false, "description": "When enabled allows check requets to be considered for dowstream performance tracing." }, "response_capture_enabled": { "type": "boolean", "default": true, "description": "When enabled, response body and headers will be captured on check failures." }, "body": { "type": "string", "nullable": true, "description": "The body to send with the check request." }, "interval_seconds": { "enum": [ 60, 300, 600, 1200, 1800, 3600 ], "type": "integer", "description": "Time in seconds between uptime checks.\n\n* `60` - 1 minute\n* `300` - 5 minutes\n* `600` - 10 minutes\n* `1200` - 20 minutes\n* `1800` - 30 minutes\n* `3600` - 1 hour" }, "assertion": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "The assertion to send with the check request." } }, "required": [ "interval_seconds", "timeout_ms", "url" ] } }, "config": { "description": "A representation of an uptime alert", "type": "object", "required": [ "mode", "environment", "recoveryThreshold", "downtimeThreshold" ], "properties": { "mode": { "type": "integer", "enum": [ 1, 2, 3 ] }, "environment": { "type": "string", "nullable": true }, "recoveryThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive successful checks required to mark monitor as recovered" }, "downtimeThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive failed checks required to mark monitor as down" } }, "additionalProperties": false }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "title": "Uptime Domain Failure Monitor" } ] }, "examples": { "UpdateAMonitorToPercent-changeDetection": { "value": { "config": { "detectionType": "percent", "comparisonDelta": 3600 } }, "summary": "Update a monitor to percent-change detection" } } } } }, "security": [ { "auth_token": [ "alerts:write", "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor" }, "createdBy": { "type": "string", "nullable": true, "description": "ID of the user who created the monitor" }, "latestGroup": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" } }, "required": [ "culprit", "firstSeen", "id", "issueCategory", "issueType", "lastSeen", "level", "metadata", "numComments", "platform", "project", "shortId", "status", "substatus", "title", "type" ], "nullable": true, "description": "Latest issue the monitor created" }, "description": { "type": "string", "nullable": true, "description": "Description of the monitor" }, "id": { "type": "string", "description": "Monitor ID" }, "projectId": { "type": "string", "nullable": true, "description": "ID of the project the monitor belongs to" }, "name": { "type": "string", "description": "Monitor name" }, "type": { "type": "string", "description": "Type of the monitor, such as metric_issue or error" }, "workflowIds": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "IDs of the alerts connected to the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the monitor was last updated (ISO 8601)" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "enum": [ "snuba_query_subscription", "cron_monitor", "uptime_subscription" ], "type": "string", "description": "Type of the data source" }, "sourceId": { "type": "string", "description": "ID of the query subscription, cron monitor or uptime subscription" }, "queryObj": { "anyOf": [ { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ] }, { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] }, { "type": "object", "properties": { "url": { "type": "string", "description": "URL the check requests" }, "method": { "type": "string", "description": "HTTP method of the check request, such as GET" }, "body": { "type": "string", "nullable": true, "description": "Body of the check request. Null when it has none" }, "headers": { "type": "array", "items": { "type": "array", "items": { "type": "string" }, "minLength": 2, "maxLength": 2 }, "description": "Headers of the check request, each a name and value pair" }, "intervalSeconds": { "type": "integer", "description": "How often the check runs, in seconds" }, "timeoutMs": { "type": "integer", "description": "How long the check waits for a response, in milliseconds" }, "traceSampling": { "type": "boolean", "description": "Whether the check request samples a trace" }, "responseCaptureEnabled": { "type": "boolean", "description": "Whether failed checks capture the response body and headers" }, "assertion": { "description": "Assertion the response must pass. Null when the check has none", "type": "object", "properties": { "root": { "description": "All possible assertion operations", "anyOf": [ { "description": "The boolean AND operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "and" ], "description": "Operation, always and" }, "children": { "type": "array", "items": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." }, "description": "Operations that must all pass" } } }, { "description": "The boolean OR operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "or" ], "description": "Operation, always or" }, "children": { "type": "array", "items": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." }, "description": "Operations of which at least one must pass" } } }, { "description": "The negation operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "not" ], "description": "Operation, always not" }, "operand": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." } } }, { "description": "The HTTP status code comparison operation", "type": "object", "properties": { "value": { "type": "integer", "description": "HTTP status code to compare the response status code against" }, "operator": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] } } }, { "description": "The JSONPath query operation", "type": "object", "properties": { "op": { "enum": [ "json_path" ], "description": "Operation, always json_path" }, "value": { "type": "string", "description": "JSONPath query to run on the response body" }, "operator": { "nullable": true, "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ], "type": "string" }, "operand": { "description": "An operand for comparison against json path values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "jsonpath_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the query result against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } }, { "type": "object", "nullable": true, "enum": [ null ] } ] } } }, { "description": "The HTTP header (key and value) comparison operation", "type": "object", "properties": { "key_op": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] }, "key_operand": { "description": "A operand for comparison against HTTP header keys and values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the header key or value against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } } ] }, "value_op": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] }, "value_operand": { "description": "A operand for comparison against HTTP header keys and values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the header key or value against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } } ] } } } ] } }, "nullable": true } }, "required": [ "assertion", "body", "headers", "intervalSeconds", "method", "responseCaptureEnabled", "timeoutMs", "traceSampling", "url" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The query subscription, cron monitor or uptime subscription, which depends on type. Null when it no longer exists" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "nullable": true, "description": "Data sources the monitor evaluates, such as a query subscription" }, "conditionGroup": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } }, "nullable": true, "description": "Conditions that decide the monitor's status" }, "config": { "anyOf": [ { "type": "object", "maxProperties": 0, "description": "Empty for monitor types without configuration" }, { "type": "object", "additionalProperties": false, "properties": { "sentry:fingerprintingRules": { "type": "string", "description": "Fingerprinting rules of the project" }, "sentry:resolveAge": { "type": "integer", "description": "Hours of inactivity after which the project's issues resolve. 0 to never" } } }, { "type": "object", "additionalProperties": false, "properties": { "organizationId": { "type": "integer", "description": "ID of the organization" } } }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "additionalProperties": false, "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ], "description": "For percent detection, how far back the compared window is, in seconds" }, "detectionType": { "type": "string", "enum": [ "static", "percent", "dynamic" ], "description": "How the monitor detects issues: static thresholds, percent change or dynamic anomalies" } } }, { "description": "Configuration for preprod static analysis detector", "type": "object", "required": [ "thresholdType", "measurement" ], "additionalProperties": false, "properties": { "thresholdType": { "type": "string", "enum": [ "absolute_diff", "absolute", "relative_diff" ], "description": "The type of threshold to apply" }, "measurement": { "type": "string", "enum": [ "install_size", "download_size" ], "description": "The measurement to track" }, "query": { "type": "string", "description": "Search query to filter which artifacts are monitored" } } }, { "description": "A representation of an uptime alert", "type": "object", "required": [ "mode", "environment", "recoveryThreshold", "downtimeThreshold" ], "additionalProperties": false, "properties": { "mode": { "type": "integer", "enum": [ 1, 2, 3 ], "description": "How the monitor was created: 1 manually, 2 auto-detected and onboarding, 3 auto-detected and active" }, "environment": { "type": "string", "nullable": true, "description": "Environment of the monitor. Null for none" }, "recoveryThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive successful checks required to mark monitor as recovered" }, "downtimeThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive failed checks required to mark monitor as down" } } } ], "description": "Configuration of the monitor, which depends on its type" }, "enabled": { "type": "boolean", "description": "Whether the monitor is enabled" } }, "required": [ "conditionGroup", "config", "dataSources", "dateCreated", "dateUpdated", "enabled", "id", "name", "projectId", "type", "workflowIds" ] }, "examples": { "UpdateAMonitor": { "value": { "id": "12345", "projectId": "1", "name": "Updated monitor", "description": null, "type": "metric_issue", "workflowIds": [], "owner": { "type": "user", "id": "4567", "name": "Jane Doe", "email": "jane@example.io" }, "createdBy": "45678", "dateCreated": "2026-01-09T18:47:41.596427Z", "dateUpdated": "2026-01-12T21:30:07.354861Z", "dataSources": [ { "id": "2345", "organizationId": "1", "type": "snuba_query_subscription", "sourceId": "1234", "queryObj": { "id": "3456", "status": 0, "subscription": "55/abc123def456ghi789", "snubaQuery": { "id": "56789", "dataset": "events_analytics_platform", "query": "", "aggregate": "p95(measurements.lcp)", "timeWindow": 3600, "environment": null, "eventTypes": [ "trace_item_span" ], "extrapolationMode": "unknown" } } } ], "conditionGroup": { "id": "12345678", "organizationId": "1", "logicType": "any", "conditions": [ { "id": "234567", "type": "gt", "comparison": 5, "conditionResult": 75 }, { "id": "234568", "type": "lte", "comparison": 5, "conditionResult": 0 } ], "actions": [] }, "config": { "detectionType": "static" }, "enabled": true, "latestGroup": { "id": "123456789", "title": "Test monitor", "culprit": "", "shortId": "SENTRY-1A2B", "level": "error", "status": "resolved", "substatus": null, "platform": "python", "project": { "id": "1", "name": "Backend", "slug": "sentry", "platform": "python" }, "type": "generic", "issueType": "metric_issue", "issueCategory": "metric", "metadata": { "title": "Test monitor", "value": "Critical: Number of events in the last hour above 5", "initial_priority": 75 }, "numComments": 0, "firstSeen": "2026-01-09T18:48:15.250134Z", "lastSeen": "2026-01-09T18:48:15.250134Z" } }, "summary": "Update a Monitor" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteOrganizationDetector", "description": "Delete a monitor", "summary": "Delete a Monitor", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "detector_id", "schema": { "type": "integer" }, "description": "The ID of the monitor you'd like to query.", "required": true } ], "tags": [ "Monitors" ], "security": [ { "auth_token": [ "alerts:write", "org:admin", "org:read", "org:write" ] } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/discover/saved/": { "get": { "operationId": "listOrganizationDiscoverSavedQueries", "description": "Retrieve a list of saved queries that are associated with the given organization.", "summary": "List an Organization's Discover Saved Queries", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "The name of the Discover query you'd like to filter by." }, { "in": "query", "name": "sortBy", "schema": { "type": "string" }, "description": "The property to sort results by. If not specified, the results are sorted by query name.\n\nAvailable fields are:\n- `name`\n- `dateCreated`\n- `dateUpdated`\n- `mostPopular`\n- `recentlyViewed`\n- `myqueries`\n " } ], "tags": [ "Discover" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments the query filters by" }, "query": { "type": "string", "description": "Search query that filters the results" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "Fields, functions or equations the query requests" }, "widths": { "type": "array", "items": { "type": "string" }, "description": "Rendered column widths, in the same order as the query's fields" }, "conditions": { "type": "array", "items": { "type": "string" }, "description": "Filter conditions, each as a [column, operator, value] triple" }, "aggregations": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions to apply, each as a [function, column, alias] triple" }, "range": { "type": "string", "description": "Saved relative time range, such as 14d" }, "start": { "type": "string", "description": "Saved start time (ISO 8601)" }, "end": { "type": "string", "description": "Saved end time (ISO 8601)" }, "orderby": { "type": "string", "description": "How the query results are ordered" }, "limit": { "type": "string", "description": "Maximum number of rows to return" }, "yAxis": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions plotted on the chart" }, "display": { "type": "string", "description": "Chart type for the saved query, such as default, top5, daily or bar" }, "topEvents": { "type": "integer", "description": "Number of top events' time series to show" }, "interval": { "type": "string", "description": "Resolution of the time series" }, "exploreQuery": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments the query filters by" }, "query": { "type": "array", "items": { "type": "object", "properties": { "fields": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Fields shown in the samples table" }, "orderby": { "type": "string", "nullable": true, "description": "Field the samples are sorted by" }, "groupby": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Fields the aggregates are grouped by" }, "query": { "type": "string", "nullable": true, "description": "Search query that filters the results" }, "visualize": { "type": "array", "items": { "type": "object", "properties": { "chartType": { "type": "integer", "description": "Chart type used to plot the aggregates" }, "transformations": { "type": "array", "items": { "type": "string" }, "description": "Transformations applied to the plotted series" }, "yAxes": { "type": "array", "items": { "type": "string" }, "description": "Aggregates to plot" } }, "required": [ "yAxes" ] }, "nullable": true, "description": "Charts shown for the query" }, "aggregateField": { "type": "array", "items": { "type": "object", "properties": { "chartType": { "type": "integer", "description": "Chart type used to plot the aggregates" }, "yAxes": { "type": "array", "items": { "type": "string" }, "description": "Aggregates to plot" }, "groupBy": { "type": "string", "description": "Field to group the aggregates by" }, "transformations": { "type": "array", "items": { "type": "string" }, "description": "Transformations applied to the plotted series" } } }, "nullable": true, "description": "Aggregates and group-by fields shown in aggregate mode" }, "aggregateOrderby": { "type": "string", "nullable": true, "description": "Field the aggregate results are sorted by" }, "metric": { "type": "object", "properties": { "unit": { "type": "string", "nullable": true, "description": "Unit of the metric. Null when it has none" }, "name": { "type": "string", "description": "Name of the metric" }, "type": { "enum": [ "counter", "gauge", "distribution" ], "type": "string", "description": "Type of the metric" } }, "required": [ "name", "type" ], "nullable": true, "description": "Metric the query reads, for metric queries" }, "caseInsensitive": { "type": "boolean", "description": "Whether the search query ignores letter case" }, "mode": { "enum": [ "samples", "aggregate" ], "type": "string", "description": "Whether the query shows samples or aggregates" } }, "required": [ "mode" ] }, "description": "Queries shown in Explore" }, "statsPeriod": { "type": "string", "description": "Relative time range of the query, such as 14d" }, "start": { "type": "string", "description": "Start of the absolute time range (ISO 8601)" }, "end": { "type": "string", "description": "End of the absolute time range (ISO 8601)" }, "interval": { "type": "string", "description": "Resolution of the time series" }, "id": { "type": "string", "description": "ID of the Explore query" }, "name": { "type": "string", "description": "Name of the Explore query" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the query covers" }, "dataset": { "enum": [ "spans", "logs", "segment_spans", "metrics", "replays", "ai_conversations" ], "type": "string", "description": "Dataset the query reads" }, "expired": { "type": "boolean", "description": "Whether the query's time range is outside the retention period" }, "isPrebuilt": { "type": "boolean", "description": "Whether Sentry provides the query" }, "changedReason": { "type": "object", "properties": { "orderby": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Sort orders dropped when the query was migrated. Null when none were" }, "equations": { "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, "nullable": true, "description": "Equations dropped when the query was migrated. Null when none were" }, "columns": { "type": "array", "items": { "type": "string" }, "description": "Columns dropped when the query was migrated" } }, "required": [ "columns", "equations", "orderby" ], "nullable": true, "description": "Parts of the Discover query dropped by the migration. Null when none were" } }, "required": [ "changedReason", "dataset", "expired", "id", "isPrebuilt", "name", "projects" ], "nullable": true, "description": "Explore query this saved query was migrated to. Null when there's none" }, "lastVisited": { "type": "string", "format": "date-time", "nullable": true, "description": "When the requesting user last viewed the query (ISO 8601)" }, "starred": { "type": "boolean", "description": "Whether the requesting user starred the query" }, "position": { "type": "integer", "nullable": true, "description": "Position of the query in the requesting user's starred list. Null when it isn't starred" }, "id": { "type": "string", "description": "ID of the saved query" }, "name": { "type": "string", "description": "Name of the saved query" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the query filters by. [-1] means all projects" }, "version": { "type": "integer", "description": "Schema version of the saved query: 1 for the legacy shape, 2 for the current one" }, "queryDataset": { "type": "string", "description": "Dataset the query runs on, such as error-events or transaction-like" }, "datasetSource": { "type": "string", "description": "How the dataset was chosen: unknown, inferred, user or forced" }, "expired": { "type": "boolean", "description": "Whether the saved time range is outside data retention" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the saved query was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the saved query was last updated (ISO 8601)" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the saved query" } }, "required": [ "createdBy", "datasetSource", "dateCreated", "dateUpdated", "expired", "id", "name", "projects", "queryDataset", "version" ] } }, "examples": { "GetDiscoverSavedQueries": { "value": [ { "id": "1", "name": "Transactions by Volume", "projects": [], "version": 2, "queryDataset": "transaction-like", "datasetSource": "unknown", "expired": false, "dateCreated": "2024-07-25T19:35:38.422859Z", "dateUpdated": "2024-07-25T19:35:38.422874Z", "lastVisited": "2024-07-25T19:35:38.422874Z", "environment": [], "query": "", "fields": [ "id", "transaction", "timestamp" ], "widths": [], "range": "24h", "orderby": "-timestamp", "yAxis": [ "count()" ], "createdBy": { "id": "1", "name": "Admin", "username": "admin", "email": "admin@sentry.io", "avatarUrl": "www.example.com", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-10-25T17:07:33.190596Z", "lastLogin": "2024-07-16T15:28:39.261659Z", "has2fa": true, "lastActive": "2024-07-16T20:45:49.364197Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "1", "email": "admin@sentry.io", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": "www.example.com" } } }, { "id": "2", "name": "All Events", "projects": [], "version": 2, "queryDataset": "transaction-like", "datasetSource": "unknown", "expired": false, "dateCreated": "2024-07-25T19:35:38.422859Z", "dateUpdated": "2024-07-25T19:35:38.422874Z", "lastVisited": "2024-07-25T19:35:38.422874Z", "environment": [], "query": "transaction:/api/foo", "fields": [ "transaction", "project", "count()", "avg(transaction.duration)", "p75()", "p95()" ], "widths": [], "range": "24h", "orderby": "-count", "yAxis": [ "count()" ], "createdBy": { "id": "1", "name": "Admin", "username": "admin", "email": "admin@sentry.io", "avatarUrl": "www.example.com", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-10-25T17:07:33.190596Z", "lastLogin": "2024-07-16T15:28:39.261659Z", "has2fa": true, "lastActive": "2024-07-16T20:45:49.364197Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "1", "email": "admin@sentry.io", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": "www.example.com" } } } ], "summary": "Get Discover Saved Queries" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createOrganizationDiscoverSavedQuery", "description": "Create a new saved query for the given organization.", "summary": "Create a New Saved Query", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Discover" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "description": "The user-defined saved query name.", "maxLength": 255 }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "The saved projects filter for this query." }, "queryDataset": { "enum": [ "discover", "error-events", "transaction-like" ], "type": "string", "default": "error-events", "description": "The dataset you would like to query. Note: `discover` is a **deprecated** value. The allowed values are: `error-events`, `transaction-like`\n\n* `discover`\n* `error-events`\n* `transaction-like`" }, "start": { "type": "string", "format": "date-time", "nullable": true, "description": "The saved start time for this saved query." }, "end": { "type": "string", "format": "date-time", "nullable": true, "description": "The saved end time for this saved query." }, "range": { "type": "string", "nullable": true, "description": "The saved time range period for this saved query." }, "fields": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "The fields, functions, or equations that can be requested for the query. At most 20 fields can be selected per request. Each field can be one of the following types:\n- A built-in key field. See possible fields in the [properties table](/product/sentry-basics/search/searchable-properties/#properties-table), under any field that is an event property.\n - example: `field=transaction`\n- A tag. Tags should use the `tag[]` formatting to avoid ambiguity with any fields\n - example: `field=tag[isEnterprise]`\n- A function which will be in the format of `function_name(parameters,...)`. See possible functions in the [query builder documentation](/product/discover-queries/query-builder/#stacking-functions).\n - when a function is included, Discover will group by any tags or fields\n - example: `field=count_if(transaction.duration,greater,300)`\n- An equation when prefixed with `equation|`. Read more about [equations here](/product/discover-queries/query-builder/query-equations/).\n - example: `field=equation|count_if(transaction.duration,greater,300) / count() * 100`\n" }, "orderby": { "type": "string", "nullable": true, "description": "How to order the query results. Must be something in the `field` list, excluding equations." }, "rollup": { "type": "integer", "nullable": true, "description": "Time-bucket granularity in seconds for the saved query." }, "aggregations": { "type": "array", "items": { "type": "array", "items": {} }, "nullable": true, "description": "Aggregate functions to apply, each as a `[function, column, alias]` triple." }, "groupby": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Columns to group results by." }, "conditions": { "type": "array", "items": { "type": "array", "items": {} }, "nullable": true, "description": "Filter conditions, each as a `[column, operator, value]` triple." }, "limit": { "type": "integer", "maximum": 1000, "minimum": 0, "nullable": true, "description": "Maximum number of rows to return, from `0` to `1000`." }, "version": { "type": "integer", "maximum": 2, "minimum": 1, "nullable": true, "description": "Saved query schema version. `1` for the legacy shape, `2` for the current one." }, "environment": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "The name of environments to filter by." }, "query": { "type": "string", "nullable": true, "description": "Filters results by using [query syntax](/product/sentry-basics/search/)." }, "widths": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Rendered column widths, in the same order as the query's fields." }, "yAxis": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Aggregate functions to be plotted on the chart." }, "display": { "type": "string", "nullable": true, "description": "Visualization type for saved query chart. Allowed values are:\n- default\n- previous\n- top5\n- daily\n- dailytop5\n- bar\n" }, "topEvents": { "type": "integer", "maximum": 10, "minimum": 1, "nullable": true, "description": "Number of top events' timeseries to be visualized." }, "interval": { "type": "string", "nullable": true, "description": "Resolution of the time series." } }, "required": [ "name" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments the query filters by" }, "query": { "type": "string", "description": "Search query that filters the results" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "Fields, functions or equations the query requests" }, "widths": { "type": "array", "items": { "type": "string" }, "description": "Rendered column widths, in the same order as the query's fields" }, "conditions": { "type": "array", "items": { "type": "string" }, "description": "Filter conditions, each as a [column, operator, value] triple" }, "aggregations": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions to apply, each as a [function, column, alias] triple" }, "range": { "type": "string", "description": "Saved relative time range, such as 14d" }, "start": { "type": "string", "description": "Saved start time (ISO 8601)" }, "end": { "type": "string", "description": "Saved end time (ISO 8601)" }, "orderby": { "type": "string", "description": "How the query results are ordered" }, "limit": { "type": "string", "description": "Maximum number of rows to return" }, "yAxis": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions plotted on the chart" }, "display": { "type": "string", "description": "Chart type for the saved query, such as default, top5, daily or bar" }, "topEvents": { "type": "integer", "description": "Number of top events' time series to show" }, "interval": { "type": "string", "description": "Resolution of the time series" }, "exploreQuery": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments the query filters by" }, "query": { "type": "array", "items": { "type": "object", "properties": { "fields": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Fields shown in the samples table" }, "orderby": { "type": "string", "nullable": true, "description": "Field the samples are sorted by" }, "groupby": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Fields the aggregates are grouped by" }, "query": { "type": "string", "nullable": true, "description": "Search query that filters the results" }, "visualize": { "type": "array", "items": { "type": "object", "properties": { "chartType": { "type": "integer", "description": "Chart type used to plot the aggregates" }, "transformations": { "type": "array", "items": { "type": "string" }, "description": "Transformations applied to the plotted series" }, "yAxes": { "type": "array", "items": { "type": "string" }, "description": "Aggregates to plot" } }, "required": [ "yAxes" ] }, "nullable": true, "description": "Charts shown for the query" }, "aggregateField": { "type": "array", "items": { "type": "object", "properties": { "chartType": { "type": "integer", "description": "Chart type used to plot the aggregates" }, "yAxes": { "type": "array", "items": { "type": "string" }, "description": "Aggregates to plot" }, "groupBy": { "type": "string", "description": "Field to group the aggregates by" }, "transformations": { "type": "array", "items": { "type": "string" }, "description": "Transformations applied to the plotted series" } } }, "nullable": true, "description": "Aggregates and group-by fields shown in aggregate mode" }, "aggregateOrderby": { "type": "string", "nullable": true, "description": "Field the aggregate results are sorted by" }, "metric": { "type": "object", "properties": { "unit": { "type": "string", "nullable": true, "description": "Unit of the metric. Null when it has none" }, "name": { "type": "string", "description": "Name of the metric" }, "type": { "enum": [ "counter", "gauge", "distribution" ], "type": "string", "description": "Type of the metric" } }, "required": [ "name", "type" ], "nullable": true, "description": "Metric the query reads, for metric queries" }, "caseInsensitive": { "type": "boolean", "description": "Whether the search query ignores letter case" }, "mode": { "enum": [ "samples", "aggregate" ], "type": "string", "description": "Whether the query shows samples or aggregates" } }, "required": [ "mode" ] }, "description": "Queries shown in Explore" }, "statsPeriod": { "type": "string", "description": "Relative time range of the query, such as 14d" }, "start": { "type": "string", "description": "Start of the absolute time range (ISO 8601)" }, "end": { "type": "string", "description": "End of the absolute time range (ISO 8601)" }, "interval": { "type": "string", "description": "Resolution of the time series" }, "id": { "type": "string", "description": "ID of the Explore query" }, "name": { "type": "string", "description": "Name of the Explore query" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the query covers" }, "dataset": { "enum": [ "spans", "logs", "segment_spans", "metrics", "replays", "ai_conversations" ], "type": "string", "description": "Dataset the query reads" }, "expired": { "type": "boolean", "description": "Whether the query's time range is outside the retention period" }, "isPrebuilt": { "type": "boolean", "description": "Whether Sentry provides the query" }, "changedReason": { "type": "object", "properties": { "orderby": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Sort orders dropped when the query was migrated. Null when none were" }, "equations": { "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, "nullable": true, "description": "Equations dropped when the query was migrated. Null when none were" }, "columns": { "type": "array", "items": { "type": "string" }, "description": "Columns dropped when the query was migrated" } }, "required": [ "columns", "equations", "orderby" ], "nullable": true, "description": "Parts of the Discover query dropped by the migration. Null when none were" } }, "required": [ "changedReason", "dataset", "expired", "id", "isPrebuilt", "name", "projects" ], "nullable": true, "description": "Explore query this saved query was migrated to. Null when there's none" }, "lastVisited": { "type": "string", "format": "date-time", "nullable": true, "description": "When the requesting user last viewed the query (ISO 8601)" }, "starred": { "type": "boolean", "description": "Whether the requesting user starred the query" }, "position": { "type": "integer", "nullable": true, "description": "Position of the query in the requesting user's starred list. Null when it isn't starred" }, "id": { "type": "string", "description": "ID of the saved query" }, "name": { "type": "string", "description": "Name of the saved query" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the query filters by. [-1] means all projects" }, "version": { "type": "integer", "description": "Schema version of the saved query: 1 for the legacy shape, 2 for the current one" }, "queryDataset": { "type": "string", "description": "Dataset the query runs on, such as error-events or transaction-like" }, "datasetSource": { "type": "string", "description": "How the dataset was chosen: unknown, inferred, user or forced" }, "expired": { "type": "boolean", "description": "Whether the saved time range is outside data retention" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the saved query was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the saved query was last updated (ISO 8601)" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the saved query" } }, "required": [ "createdBy", "datasetSource", "dateCreated", "dateUpdated", "expired", "id", "name", "projects", "queryDataset", "version" ] }, "examples": { "CreateDiscoverSavedQuery": { "value": { "id": "1", "name": "Transactions by Volume", "projects": [], "version": 2, "queryDataset": "transaction-like", "datasetSource": "unknown", "expired": false, "dateCreated": "2024-07-25T19:35:38.422859Z", "dateUpdated": "2024-07-25T19:35:38.422874Z", "lastVisited": "2024-07-25T19:35:38.422874Z", "environment": [], "query": "transaction:/api/foo", "fields": [ "transaction", "project", "count()", "avg(transaction.duration)", "p75()", "p95()" ], "widths": [], "range": "24h", "orderby": "-count", "yAxis": [ "count()" ], "createdBy": { "id": "1", "name": "Admin", "username": "admin", "email": "admin@sentry.io", "avatarUrl": "www.example.com", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-10-25T17:07:33.190596Z", "lastLogin": "2024-07-16T15:28:39.261659Z", "has2fa": true, "lastActive": "2024-07-16T20:45:49.364197Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "1", "email": "admin@sentry.io", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": "www.example.com" } } }, "summary": "Create Discover Saved Query" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/discover/saved/{query_id}/": { "get": { "operationId": "getOrganizationDiscoverSavedQuery", "description": "Retrieve a saved query.", "summary": "Retrieve an Organization's Discover Saved Query", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "query_id", "schema": { "type": "integer" }, "description": "The ID of the Discover query you'd like to retrieve.", "required": true } ], "tags": [ "Discover" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments the query filters by" }, "query": { "type": "string", "description": "Search query that filters the results" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "Fields, functions or equations the query requests" }, "widths": { "type": "array", "items": { "type": "string" }, "description": "Rendered column widths, in the same order as the query's fields" }, "conditions": { "type": "array", "items": { "type": "string" }, "description": "Filter conditions, each as a [column, operator, value] triple" }, "aggregations": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions to apply, each as a [function, column, alias] triple" }, "range": { "type": "string", "description": "Saved relative time range, such as 14d" }, "start": { "type": "string", "description": "Saved start time (ISO 8601)" }, "end": { "type": "string", "description": "Saved end time (ISO 8601)" }, "orderby": { "type": "string", "description": "How the query results are ordered" }, "limit": { "type": "string", "description": "Maximum number of rows to return" }, "yAxis": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions plotted on the chart" }, "display": { "type": "string", "description": "Chart type for the saved query, such as default, top5, daily or bar" }, "topEvents": { "type": "integer", "description": "Number of top events' time series to show" }, "interval": { "type": "string", "description": "Resolution of the time series" }, "exploreQuery": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments the query filters by" }, "query": { "type": "array", "items": { "type": "object", "properties": { "fields": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Fields shown in the samples table" }, "orderby": { "type": "string", "nullable": true, "description": "Field the samples are sorted by" }, "groupby": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Fields the aggregates are grouped by" }, "query": { "type": "string", "nullable": true, "description": "Search query that filters the results" }, "visualize": { "type": "array", "items": { "type": "object", "properties": { "chartType": { "type": "integer", "description": "Chart type used to plot the aggregates" }, "transformations": { "type": "array", "items": { "type": "string" }, "description": "Transformations applied to the plotted series" }, "yAxes": { "type": "array", "items": { "type": "string" }, "description": "Aggregates to plot" } }, "required": [ "yAxes" ] }, "nullable": true, "description": "Charts shown for the query" }, "aggregateField": { "type": "array", "items": { "type": "object", "properties": { "chartType": { "type": "integer", "description": "Chart type used to plot the aggregates" }, "yAxes": { "type": "array", "items": { "type": "string" }, "description": "Aggregates to plot" }, "groupBy": { "type": "string", "description": "Field to group the aggregates by" }, "transformations": { "type": "array", "items": { "type": "string" }, "description": "Transformations applied to the plotted series" } } }, "nullable": true, "description": "Aggregates and group-by fields shown in aggregate mode" }, "aggregateOrderby": { "type": "string", "nullable": true, "description": "Field the aggregate results are sorted by" }, "metric": { "type": "object", "properties": { "unit": { "type": "string", "nullable": true, "description": "Unit of the metric. Null when it has none" }, "name": { "type": "string", "description": "Name of the metric" }, "type": { "enum": [ "counter", "gauge", "distribution" ], "type": "string", "description": "Type of the metric" } }, "required": [ "name", "type" ], "nullable": true, "description": "Metric the query reads, for metric queries" }, "caseInsensitive": { "type": "boolean", "description": "Whether the search query ignores letter case" }, "mode": { "enum": [ "samples", "aggregate" ], "type": "string", "description": "Whether the query shows samples or aggregates" } }, "required": [ "mode" ] }, "description": "Queries shown in Explore" }, "statsPeriod": { "type": "string", "description": "Relative time range of the query, such as 14d" }, "start": { "type": "string", "description": "Start of the absolute time range (ISO 8601)" }, "end": { "type": "string", "description": "End of the absolute time range (ISO 8601)" }, "interval": { "type": "string", "description": "Resolution of the time series" }, "id": { "type": "string", "description": "ID of the Explore query" }, "name": { "type": "string", "description": "Name of the Explore query" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the query covers" }, "dataset": { "enum": [ "spans", "logs", "segment_spans", "metrics", "replays", "ai_conversations" ], "type": "string", "description": "Dataset the query reads" }, "expired": { "type": "boolean", "description": "Whether the query's time range is outside the retention period" }, "isPrebuilt": { "type": "boolean", "description": "Whether Sentry provides the query" }, "changedReason": { "type": "object", "properties": { "orderby": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Sort orders dropped when the query was migrated. Null when none were" }, "equations": { "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, "nullable": true, "description": "Equations dropped when the query was migrated. Null when none were" }, "columns": { "type": "array", "items": { "type": "string" }, "description": "Columns dropped when the query was migrated" } }, "required": [ "columns", "equations", "orderby" ], "nullable": true, "description": "Parts of the Discover query dropped by the migration. Null when none were" } }, "required": [ "changedReason", "dataset", "expired", "id", "isPrebuilt", "name", "projects" ], "nullable": true, "description": "Explore query this saved query was migrated to. Null when there's none" }, "lastVisited": { "type": "string", "format": "date-time", "nullable": true, "description": "When the requesting user last viewed the query (ISO 8601)" }, "starred": { "type": "boolean", "description": "Whether the requesting user starred the query" }, "position": { "type": "integer", "nullable": true, "description": "Position of the query in the requesting user's starred list. Null when it isn't starred" }, "id": { "type": "string", "description": "ID of the saved query" }, "name": { "type": "string", "description": "Name of the saved query" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the query filters by. [-1] means all projects" }, "version": { "type": "integer", "description": "Schema version of the saved query: 1 for the legacy shape, 2 for the current one" }, "queryDataset": { "type": "string", "description": "Dataset the query runs on, such as error-events or transaction-like" }, "datasetSource": { "type": "string", "description": "How the dataset was chosen: unknown, inferred, user or forced" }, "expired": { "type": "boolean", "description": "Whether the saved time range is outside data retention" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the saved query was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the saved query was last updated (ISO 8601)" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the saved query" } }, "required": [ "createdBy", "datasetSource", "dateCreated", "dateUpdated", "expired", "id", "name", "projects", "queryDataset", "version" ] }, "examples": { "DiscoverSavedQueryGETResponse": { "value": { "id": "1", "name": "Transactions by Volume", "projects": [], "version": 2, "queryDataset": "transaction-like", "datasetSource": "unknown", "expired": false, "dateCreated": "2024-07-25T19:35:38.422859Z", "dateUpdated": "2024-07-25T19:35:38.422874Z", "lastVisited": "2024-07-25T19:35:38.422874Z", "environment": [], "query": "transaction:/api/foo", "fields": [ "transaction", "project", "count()", "avg(transaction.duration)", "p75()", "p95()" ], "widths": [], "range": "24h", "orderby": "-count", "yAxis": [ "count()" ], "createdBy": { "id": "1", "name": "Admin", "username": "admin", "email": "admin@sentry.io", "avatarUrl": "www.example.com", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-10-25T17:07:33.190596Z", "lastLogin": "2024-07-16T15:28:39.261659Z", "has2fa": true, "lastActive": "2024-07-16T20:45:49.364197Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "1", "email": "admin@sentry.io", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": "www.example.com" } } }, "summary": "Discover Saved Query GET response" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateOrganizationDiscoverSavedQuery", "description": "Modify a saved query.", "summary": "Edit an Organization's Discover Saved Query", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "query_id", "schema": { "type": "integer" }, "description": "The ID of the Discover query you'd like to retrieve.", "required": true } ], "tags": [ "Discover" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "description": "The user-defined saved query name.", "maxLength": 255 }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "The saved projects filter for this query." }, "queryDataset": { "enum": [ "discover", "error-events", "transaction-like" ], "type": "string", "default": "error-events", "description": "The dataset you would like to query. Note: `discover` is a **deprecated** value. The allowed values are: `error-events`, `transaction-like`\n\n* `discover`\n* `error-events`\n* `transaction-like`" }, "start": { "type": "string", "format": "date-time", "nullable": true, "description": "The saved start time for this saved query." }, "end": { "type": "string", "format": "date-time", "nullable": true, "description": "The saved end time for this saved query." }, "range": { "type": "string", "nullable": true, "description": "The saved time range period for this saved query." }, "fields": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "The fields, functions, or equations that can be requested for the query. At most 20 fields can be selected per request. Each field can be one of the following types:\n- A built-in key field. See possible fields in the [properties table](/product/sentry-basics/search/searchable-properties/#properties-table), under any field that is an event property.\n - example: `field=transaction`\n- A tag. Tags should use the `tag[]` formatting to avoid ambiguity with any fields\n - example: `field=tag[isEnterprise]`\n- A function which will be in the format of `function_name(parameters,...)`. See possible functions in the [query builder documentation](/product/discover-queries/query-builder/#stacking-functions).\n - when a function is included, Discover will group by any tags or fields\n - example: `field=count_if(transaction.duration,greater,300)`\n- An equation when prefixed with `equation|`. Read more about [equations here](/product/discover-queries/query-builder/query-equations/).\n - example: `field=equation|count_if(transaction.duration,greater,300) / count() * 100`\n" }, "orderby": { "type": "string", "nullable": true, "description": "How to order the query results. Must be something in the `field` list, excluding equations." }, "rollup": { "type": "integer", "nullable": true, "description": "Time-bucket granularity in seconds for the saved query." }, "aggregations": { "type": "array", "items": { "type": "array", "items": {} }, "nullable": true, "description": "Aggregate functions to apply, each as a `[function, column, alias]` triple." }, "groupby": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Columns to group results by." }, "conditions": { "type": "array", "items": { "type": "array", "items": {} }, "nullable": true, "description": "Filter conditions, each as a `[column, operator, value]` triple." }, "limit": { "type": "integer", "maximum": 1000, "minimum": 0, "nullable": true, "description": "Maximum number of rows to return, from `0` to `1000`." }, "version": { "type": "integer", "maximum": 2, "minimum": 1, "nullable": true, "description": "Saved query schema version. `1` for the legacy shape, `2` for the current one." }, "environment": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "The name of environments to filter by." }, "query": { "type": "string", "nullable": true, "description": "Filters results by using [query syntax](/product/sentry-basics/search/)." }, "widths": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Rendered column widths, in the same order as the query's fields." }, "yAxis": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Aggregate functions to be plotted on the chart." }, "display": { "type": "string", "nullable": true, "description": "Visualization type for saved query chart. Allowed values are:\n- default\n- previous\n- top5\n- daily\n- dailytop5\n- bar\n" }, "topEvents": { "type": "integer", "maximum": 10, "minimum": 1, "nullable": true, "description": "Number of top events' timeseries to be visualized." }, "interval": { "type": "string", "nullable": true, "description": "Resolution of the time series." } }, "required": [ "name" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments the query filters by" }, "query": { "type": "string", "description": "Search query that filters the results" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "Fields, functions or equations the query requests" }, "widths": { "type": "array", "items": { "type": "string" }, "description": "Rendered column widths, in the same order as the query's fields" }, "conditions": { "type": "array", "items": { "type": "string" }, "description": "Filter conditions, each as a [column, operator, value] triple" }, "aggregations": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions to apply, each as a [function, column, alias] triple" }, "range": { "type": "string", "description": "Saved relative time range, such as 14d" }, "start": { "type": "string", "description": "Saved start time (ISO 8601)" }, "end": { "type": "string", "description": "Saved end time (ISO 8601)" }, "orderby": { "type": "string", "description": "How the query results are ordered" }, "limit": { "type": "string", "description": "Maximum number of rows to return" }, "yAxis": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions plotted on the chart" }, "display": { "type": "string", "description": "Chart type for the saved query, such as default, top5, daily or bar" }, "topEvents": { "type": "integer", "description": "Number of top events' time series to show" }, "interval": { "type": "string", "description": "Resolution of the time series" }, "exploreQuery": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments the query filters by" }, "query": { "type": "array", "items": { "type": "object", "properties": { "fields": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Fields shown in the samples table" }, "orderby": { "type": "string", "nullable": true, "description": "Field the samples are sorted by" }, "groupby": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Fields the aggregates are grouped by" }, "query": { "type": "string", "nullable": true, "description": "Search query that filters the results" }, "visualize": { "type": "array", "items": { "type": "object", "properties": { "chartType": { "type": "integer", "description": "Chart type used to plot the aggregates" }, "transformations": { "type": "array", "items": { "type": "string" }, "description": "Transformations applied to the plotted series" }, "yAxes": { "type": "array", "items": { "type": "string" }, "description": "Aggregates to plot" } }, "required": [ "yAxes" ] }, "nullable": true, "description": "Charts shown for the query" }, "aggregateField": { "type": "array", "items": { "type": "object", "properties": { "chartType": { "type": "integer", "description": "Chart type used to plot the aggregates" }, "yAxes": { "type": "array", "items": { "type": "string" }, "description": "Aggregates to plot" }, "groupBy": { "type": "string", "description": "Field to group the aggregates by" }, "transformations": { "type": "array", "items": { "type": "string" }, "description": "Transformations applied to the plotted series" } } }, "nullable": true, "description": "Aggregates and group-by fields shown in aggregate mode" }, "aggregateOrderby": { "type": "string", "nullable": true, "description": "Field the aggregate results are sorted by" }, "metric": { "type": "object", "properties": { "unit": { "type": "string", "nullable": true, "description": "Unit of the metric. Null when it has none" }, "name": { "type": "string", "description": "Name of the metric" }, "type": { "enum": [ "counter", "gauge", "distribution" ], "type": "string", "description": "Type of the metric" } }, "required": [ "name", "type" ], "nullable": true, "description": "Metric the query reads, for metric queries" }, "caseInsensitive": { "type": "boolean", "description": "Whether the search query ignores letter case" }, "mode": { "enum": [ "samples", "aggregate" ], "type": "string", "description": "Whether the query shows samples or aggregates" } }, "required": [ "mode" ] }, "description": "Queries shown in Explore" }, "statsPeriod": { "type": "string", "description": "Relative time range of the query, such as 14d" }, "start": { "type": "string", "description": "Start of the absolute time range (ISO 8601)" }, "end": { "type": "string", "description": "End of the absolute time range (ISO 8601)" }, "interval": { "type": "string", "description": "Resolution of the time series" }, "id": { "type": "string", "description": "ID of the Explore query" }, "name": { "type": "string", "description": "Name of the Explore query" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the query covers" }, "dataset": { "enum": [ "spans", "logs", "segment_spans", "metrics", "replays", "ai_conversations" ], "type": "string", "description": "Dataset the query reads" }, "expired": { "type": "boolean", "description": "Whether the query's time range is outside the retention period" }, "isPrebuilt": { "type": "boolean", "description": "Whether Sentry provides the query" }, "changedReason": { "type": "object", "properties": { "orderby": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Sort orders dropped when the query was migrated. Null when none were" }, "equations": { "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, "nullable": true, "description": "Equations dropped when the query was migrated. Null when none were" }, "columns": { "type": "array", "items": { "type": "string" }, "description": "Columns dropped when the query was migrated" } }, "required": [ "columns", "equations", "orderby" ], "nullable": true, "description": "Parts of the Discover query dropped by the migration. Null when none were" } }, "required": [ "changedReason", "dataset", "expired", "id", "isPrebuilt", "name", "projects" ], "nullable": true, "description": "Explore query this saved query was migrated to. Null when there's none" }, "lastVisited": { "type": "string", "format": "date-time", "nullable": true, "description": "When the requesting user last viewed the query (ISO 8601)" }, "starred": { "type": "boolean", "description": "Whether the requesting user starred the query" }, "position": { "type": "integer", "nullable": true, "description": "Position of the query in the requesting user's starred list. Null when it isn't starred" }, "id": { "type": "string", "description": "ID of the saved query" }, "name": { "type": "string", "description": "Name of the saved query" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the query filters by. [-1] means all projects" }, "version": { "type": "integer", "description": "Schema version of the saved query: 1 for the legacy shape, 2 for the current one" }, "queryDataset": { "type": "string", "description": "Dataset the query runs on, such as error-events or transaction-like" }, "datasetSource": { "type": "string", "description": "How the dataset was chosen: unknown, inferred, user or forced" }, "expired": { "type": "boolean", "description": "Whether the saved time range is outside data retention" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the saved query was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the saved query was last updated (ISO 8601)" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the saved query" } }, "required": [ "createdBy", "datasetSource", "dateCreated", "dateUpdated", "expired", "id", "name", "projects", "queryDataset", "version" ] }, "examples": { "DiscoverSavedQueryGETResponse": { "value": { "id": "1", "name": "Transactions by Volume", "projects": [], "version": 2, "queryDataset": "transaction-like", "datasetSource": "unknown", "expired": false, "dateCreated": "2024-07-25T19:35:38.422859Z", "dateUpdated": "2024-07-25T19:35:38.422874Z", "lastVisited": "2024-07-25T19:35:38.422874Z", "environment": [], "query": "transaction:/api/foo", "fields": [ "transaction", "project", "count()", "avg(transaction.duration)", "p75()", "p95()" ], "widths": [], "range": "24h", "orderby": "-count", "yAxis": [ "count()" ], "createdBy": { "id": "1", "name": "Admin", "username": "admin", "email": "admin@sentry.io", "avatarUrl": "www.example.com", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-10-25T17:07:33.190596Z", "lastLogin": "2024-07-16T15:28:39.261659Z", "has2fa": true, "lastActive": "2024-07-16T20:45:49.364197Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "1", "email": "admin@sentry.io", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": "www.example.com" } } }, "summary": "Discover Saved Query GET response" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true }, "delete": { "operationId": "deleteOrganizationDiscoverSavedQuery", "description": "Delete a saved query.", "summary": "Delete an Organization's Discover Saved Query", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "query_id", "schema": { "type": "integer" }, "description": "The ID of the Discover query you'd like to retrieve.", "required": true } ], "tags": [ "Discover" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/dsn-lookup/": { "get": { "operationId": "resolveOrganizationDsn", "description": "Return the project and client key that a DSN belongs to. Only the DSN's public key\nis used: the host and project ID in the DSN are ignored.\n\nReturns 400 when `dsn` is missing. Returns 404 when the DSN has no public key, or\nwhen it doesn't match an active client key of an active project in this\norganization that you can access.", "summary": "Resolve a DSN to Its Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "dsn", "schema": { "type": "string" }, "description": "The DSN to look up, such as `https://@o1.ingest.sentry.io/2`.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "organizationSlug": { "type": "string", "description": "Slug of the organization" }, "projectSlug": { "type": "string", "description": "Slug of the project the DSN belongs to" }, "projectId": { "type": "string", "description": "ID of the project the DSN belongs to" }, "projectName": { "type": "string", "description": "Name of the project the DSN belongs to" }, "projectPlatform": { "type": "string", "nullable": true, "description": "Platform of the project, if set" }, "keyLabel": { "type": "string", "nullable": true, "description": "Label of the client key" }, "keyId": { "type": "string", "description": "ID of the client key" } }, "required": [ "keyId", "keyLabel", "organizationSlug", "projectId", "projectName", "projectPlatform", "projectSlug" ] }, "examples": { "ResolveADSNToItsProject": { "value": { "organizationSlug": "the-interstellar-jurisdiction", "projectSlug": "pump-station", "projectId": "2", "projectName": "Pump Station", "projectPlatform": "python", "keyLabel": "Default", "keyId": "60120449" }, "summary": "Resolve a DSN to its project" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "429": { "description": "Too Many Requests" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/environments/": { "get": { "operationId": "listOrganizationEnvironments", "description": "Lists an organization's environments.", "summary": "List an Organization's Environments", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "visibility", "schema": { "enum": [ "all", "hidden", "visible" ], "type": "string", "default": "visible", "minLength": 1 }, "description": "The visibility of the environments to filter by. Defaults to `visible`.\n\n* `all`\n* `hidden`\n* `visible`" } ], "tags": [ "Environments" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the environment" }, "name": { "type": "string", "description": "Name of the environment" } }, "required": [ "id", "name" ] } }, "examples": { "ListAnOrganization'sEnvironments": { "value": [ { "id": "1", "name": "Production" }, { "id": "2", "name": "Staging" } ], "summary": "List an Organization's Environments" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/eventids/{event_id}/": { "get": { "operationId": "resolveOrganizationEventId", "description": "Resolve an event ID to its project slug, issue ID, and event details. Only projects the\ncaller can access are searched.", "summary": "Resolve an Event ID", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "event_id", "schema": { "type": "string" }, "description": "The event ID to look up.", "required": true } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "organizationSlug": { "type": "string", "description": "Slug of the organization" }, "projectSlug": { "type": "string", "description": "Slug of the event's project" }, "groupId": { "type": "string", "description": "ID of the event's issue" }, "eventId": { "type": "string", "description": "ID of the event" }, "event": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "nullable": true, "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateReceived": { "type": "string", "format": "date-time", "nullable": true, "description": "When Sentry received the event (ISO 8601)" }, "size": { "type": "integer", "nullable": true, "description": "Size of the event payload in bytes" }, "entries": { "type": "array", "items": {}, "description": "Event interfaces, such as exception, breadcrumbs and request, each with a type and data" }, "dist": { "type": "string", "nullable": true, "description": "Distribution of the release the event was sent with" }, "packages": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Modules loaded when the event occurred, keyed by module name with their versions" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type, such as error, default or transaction" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "occurrence": { "anyOf": [ { "type": "object", "description": "A metric issue occurrence. `evidenceData` describes the detector and query that fired.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "enum": [ 8001 ], "type": "integer", "description": "Group type ID of metric issues, always 8001" }, "evidenceData": { "type": "object", "properties": { "detectorId": { "type": "integer", "description": "ID of the detector that created the occurrence" }, "alertId": { "type": "integer", "nullable": true, "description": "ID of the metric alert rule the detector replaces. Null when there's none" }, "value": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Metric value the anomaly detection model scored" }, "sourceId": { "type": "string", "description": "ID of the data source that produced the value" }, "subscriptionId": { "type": "string", "description": "ID of the query subscription that produced the value" }, "timestamp": { "type": "string", "description": "When the value was measured" } }, "required": [ "sourceId", "subscriptionId", "timestamp", "value" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Metric value that triggered the detector, or the anomaly detection result for dynamic detectors" }, "dataPacketSourceId": { "type": "string", "description": "ID of the query subscription that sent the data" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the detector condition" }, "type": { "type": "string", "description": "Type of the condition, such as gt, lt or anomaly_detection" }, "comparison": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "sensitivity": { "enum": [ "low", "medium", "high" ], "type": "string", "description": "How sensitive the anomaly detection is" }, "seasonality": { "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "type": "string", "description": "Seasonality the anomaly detection model uses" }, "thresholdType": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "Direction of anomalies to detect: 0 above, 1 below, 2 above and below" } }, "required": [ "seasonality", "sensitivity", "thresholdType" ] } ], "description": "Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition" }, "conditionResult": { "type": "integer", "description": "Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions of the detector" }, "config": { "type": "object", "properties": { "detectionType": { "enum": [ "static", "percent", "dynamic" ], "type": "string", "description": "How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection" }, "comparisonDelta": { "type": "integer", "nullable": true, "description": "Time window in seconds that a percent change detector compares with" } }, "required": [ "detectionType" ], "description": "Configuration of the detector" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "type": "string", "description": "Type of the data source, such as snuba_query_subscription" }, "sourceId": { "type": "string", "description": "ID of the source object, such as the query subscription" }, "queryObj": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ], "description": "Query subscription the data source reads" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "description": "Data sources of the detector" } }, "required": [ "alertId", "conditions", "config", "dataPacketSourceId", "dataSources", "detectorId", "value" ], "description": "Detector and query that created the occurrence" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "description": "An issue occurrence of any type. `evidenceData` keys are camelCase.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "type": "integer", "description": "Group type ID of the occurrence" }, "evidenceData": { "type": "object", "additionalProperties": {}, "description": "Data of the occurrence. Its keys depend on the group type" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise" }, "_meta": { "type": "object", "additionalProperties": {}, "description": "Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" }, "name": { "type": "string", "nullable": true, "description": "Name of the user" }, "geo": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Location of the user, with keys such as country_code, city and region" }, "data": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Extra data the SDK sent about the user" } }, "nullable": true, "description": "User context of the event" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query that matches this tag's user, such as user.email:\"user@example.com\". Only set for user tags" }, "key": { "type": "string", "description": "Tag key" }, "value": { "type": "string", "description": "Tag value" } }, "required": [ "key", "value" ] }, "description": "Tags attached to the event" }, "contexts": { "type": "object", "nullable": true, "additionalProperties": { "anyOf": [ { "description": "Application information.\n\n App context describes the application. As opposed to the runtime, this is the actual\n application that was running and carries metadata about the current session.", "type": "object", "additionalProperties": true, "properties": { "app_build": { "description": "Internal build ID as it appears on the platform.", "type": "string", "nullable": true }, "app_identifier": { "description": "Version-independent application identifier, often a dotted bundle ID.", "type": "string", "nullable": true }, "app_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Amount of memory used by the application in bytes." }, "app_name": { "description": "Application name as it appears on the platform.", "type": "string", "nullable": true }, "app_start_time": { "description": "Start time of the app.\n\n Formatted UTC timestamp when the user started the application.", "type": "string", "nullable": true }, "app_version": { "description": "Application version as it appears on the platform.", "type": "string", "nullable": true }, "build_type": { "description": "String identifying the kind of build. For example, `testflight`.", "type": "string", "nullable": true }, "device_app_hash": { "description": "Application-specific device identifier.", "type": "string", "nullable": true }, "in_foreground": { "description": "A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user.", "type": "boolean", "nullable": true }, "view_names": { "description": "The names of the currently visible views.", "type": "array", "items": { "type": "string", "nullable": true }, "nullable": true }, "type": { "type": "string", "enum": [ "app" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Web browser information.", "type": "object", "additionalProperties": true, "properties": { "name": { "description": "Display name of the browser application.", "type": "string", "nullable": true }, "version": { "description": "Version string of the browser.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "browser" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "default" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true }, { "description": "Device information.\n\n Device context describes the device that caused the event. This is most appropriate for mobile\n applications.", "type": "object", "additionalProperties": true, "properties": { "arch": { "description": "Native cpu architecture of the device.", "type": "string", "nullable": true }, "battery_level": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Current battery level in %.\n\n If the device has a battery, this can be a floating point value defining the battery level\n (in the range 0-100)." }, "battery_status": { "description": "Status of the device's battery.\n\n For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`.", "type": "string", "nullable": true }, "boot_time": { "description": "Indicator when the device was booted.", "type": "string", "nullable": true }, "brand": { "description": "Brand of the device.", "type": "string", "nullable": true }, "charging": { "description": "Whether the device was charging or not.", "type": "boolean", "nullable": true }, "cpu_description": { "description": "CPU description.\n\n For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz.", "type": "string", "nullable": true }, "device_type": { "description": "Kind of device the application is running on.\n\n For example, `Unknown`, `Handheld`, `Console`, `Desktop`.", "type": "string", "nullable": true }, "device_unique_identifier": { "description": "Unique device identifier.", "type": "string", "nullable": true }, "external_free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Free size of the attached external storage in bytes (eg: android SDK card)." }, "external_storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total size of the attached external storage in bytes (eg: android SDK card)." }, "family": { "description": "Family of the device model.\n\n This is usually the common part of model names across generations. For instance, `iPhone`\n would be a reasonable family, so would be `Samsung Galaxy`.", "type": "string", "nullable": true }, "free_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is still available in bytes." }, "free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much storage is free in bytes." }, "locale": { "description": "ISO 639-1 code of the locale the device is set to.", "type": "string", "nullable": true }, "low_memory": { "description": "Whether the device was low on memory.", "type": "boolean", "nullable": true }, "manufacturer": { "description": "Manufacturer of the device.", "type": "string", "nullable": true }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total memory available in bytes." }, "model": { "description": "Device model.\n\n This, for example, can be `Samsung Galaxy S3`.", "type": "string", "nullable": true }, "model_id": { "description": "Device model (internal identifier).\n\n An internal hardware revision to identify the device exactly.", "type": "string", "nullable": true }, "name": { "description": "Name of the device.", "type": "string", "nullable": true }, "online": { "description": "Whether the device was online or not.", "type": "boolean", "nullable": true }, "orientation": { "description": "Current screen orientation.\n\n This can be a string `portrait` or `landscape` to define the orientation of a device.", "type": "string", "nullable": true }, "processor_count": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Number of \"logical processors\".\n\n For example, 8." }, "processor_frequency": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Processor frequency in MHz.\n\n Note that the actual CPU frequency might vary depending on current load and\n power conditions, especially on low-powered devices like phones and laptops." }, "screen_density": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Device screen density." }, "screen_dpi": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Screen density as dots-per-inch." }, "screen_height_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Height of the screen in pixels." }, "screen_resolution": { "description": "Device screen resolution.\n\n (e.g.: 800x600, 3040x1444)", "type": "string", "nullable": true }, "screen_width_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Width of the screen in pixels." }, "simulator": { "description": "Simulator/prod indicator.", "type": "boolean", "nullable": true }, "storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total storage size of the device in bytes." }, "supports_accelerometer": { "description": "Whether the accelerometer is available on the device.", "type": "boolean", "nullable": true }, "supports_audio": { "description": "Whether audio is available on the device.", "type": "boolean", "nullable": true }, "supports_gyroscope": { "description": "Whether the gyroscope is available on the device.", "type": "boolean", "nullable": true }, "supports_location_service": { "description": "Whether location support is available on the device.", "type": "boolean", "nullable": true }, "supports_vibration": { "description": "Whether vibration is available on the device.", "type": "boolean", "nullable": true }, "timezone": { "description": "Timezone of the device.", "type": "string", "nullable": true }, "usable_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is usable for the app in bytes." }, "uuid": { "description": "UUID of the device.", "type": "string", "format": "uuid", "nullable": true }, "type": { "type": "string", "enum": [ "device" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "GPU information.\n\n Example:\n\n ```json\n \"gpu\": {\n \"name\": \"AMD Radeon Pro 560\",\n \"vendor_name\": \"Apple\",\n \"memory_size\": 4096,\n \"api_type\": \"Metal\",\n \"multi_threaded_rendering\": true,\n \"version\": \"Metal\",\n \"npot_support\": \"Full\"\n }\n ```", "type": "object", "additionalProperties": true, "properties": { "api_type": { "description": "The device low-level API type.\n\n Examples: `\"Apple Metal\"` or `\"Direct3D11\"`", "type": "string", "nullable": true }, "graphics_shader_level": { "description": "Approximate \"shader capability\" level of the graphics device.\n\n For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown)", "type": "string", "nullable": true }, "id": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "The PCI identifier of the graphics device." }, "max_texture_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Largest size of a texture that is supported by the graphics hardware.\n\n For Example: 16384" }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The total GPU memory available in Megabytes." }, "multi_threaded_rendering": { "description": "Whether the GPU has multi-threaded rendering or not.", "type": "boolean", "nullable": true }, "name": { "description": "The name of the graphics device.", "type": "string", "nullable": true }, "npot_support": { "description": "The Non-Power-Of-Two support.", "type": "string", "nullable": true }, "supports_compute_shaders": { "description": "Whether compute shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_draw_call_instancing": { "description": "Whether GPU draw call instancing is supported.", "type": "boolean", "nullable": true }, "supports_geometry_shaders": { "description": "Whether geometry shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_ray_tracing": { "description": "Whether ray tracing is available on the device.", "type": "boolean", "nullable": true }, "vendor_id": { "description": "The PCI vendor identifier of the graphics device.", "type": "string", "nullable": true }, "vendor_name": { "description": "The vendor name as reported by the graphics device.", "type": "string", "nullable": true }, "version": { "description": "The Version of the graphics device.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "gpu" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Monitor information.", "type": "object", "additionalProperties": true, "properties": { "type": { "type": "string", "enum": [ "monitor" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Operating system information.\n\n OS context describes the operating system on which the event was created. In web contexts, this\n is the operating system of the browser (generally pulled from the User-Agent string).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Internal build number of the operating system.", "type": "string", "nullable": true }, "kernel_version": { "description": "Current kernel version.\n\n This is typically the entire output of the `uname` syscall.", "type": "string", "nullable": true }, "name": { "description": "Name of the operating system.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed operating system info.\n\n An unprocessed description string obtained by the operating system. For some well-known\n runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are\n not explicitly given.", "type": "string", "nullable": true }, "rooted": { "description": "Indicator if the OS is rooted (mobile mostly).", "type": "boolean", "nullable": true }, "version": { "description": "Version of the operating system.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "os" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "OpenTelemetry Context\n\n If an event has this context, it was generated from an OpenTelemetry signal (trace, metric, log).", "type": "object", "additionalProperties": true, "properties": { "attributes": { "description": "Attributes of the OpenTelemetry span that maps to a Sentry event.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "resource": { "description": "Information about an OpenTelemetry resource.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "type": { "type": "string", "enum": [ "otel" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Runtime information.\n\n Runtime context describes a runtime in more detail. Typically, this context is present in\n `contexts` multiple times if multiple runtimes are involved (for instance, if you have a\n JavaScript application running on top of JVM).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Application build string, if it is separate from the version.", "type": "string", "nullable": true }, "name": { "description": "Runtime name.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed runtime info.\n\n An unprocessed description string obtained by the runtime. For some well-known runtimes,\n Sentry will attempt to parse `name` and `version` from this string, if they are not\n explicitly given.", "type": "string", "nullable": true }, "version": { "description": "Runtime version string.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "runtime" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Trace context", "type": "object", "additionalProperties": true, "properties": { "client_sample_rate": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The client-side sample rate as reported in the envelope's `trace.sample_rate` header.\n\n The server takes this field from envelope headers and writes it back into the event. Clients\n should not ever send this value." }, "exclusive_time": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The amount of time in milliseconds spent in this transaction span,\n excluding its immediate child spans." }, "op": { "description": "Span type (see `OperationType` docs).", "type": "string", "nullable": true }, "origin": { "description": "The origin of the trace indicates what created the trace (see [OriginType] docs).", "type": "string", "nullable": true }, "parent_span_id": { "description": "The ID of the span enclosing this span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "sampled": { "description": "Track whether the trace connected to this event has been sampled entirely.\n\n This flag only applies to events with [`Error`] type that have an associated dynamic sampling context.", "type": "boolean", "nullable": true }, "span_id": { "description": "The ID of the span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "status": { "description": "Whether the trace failed or succeeded. Currently only used to indicate status of individual\n transactions.", "nullable": true, "type": "string", "enum": [ "ok", "cancelled", "unknown", "invalid_argument", "deadline_exceeded", "not_found", "already_exists", "permission_denied", "resource_exhausted", "failed_precondition", "aborted", "out_of_range", "unimplemented", "internal_error", "unavailable", "data_loss", "unauthenticated", null ] }, "trace_id": { "description": "The trace ID.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "type": { "type": "string", "enum": [ "trace" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "unity" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true } ] }, "description": "Contexts of the event, such as device, os, browser and runtime, keyed by alias" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the SDK that sent the event, such as sentry.python" }, "version": { "type": "string", "nullable": true, "description": "Version of the SDK" } }, "required": [ "name", "version" ], "nullable": true, "description": "SDK that sent the event" }, "context": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Additional data sent with the event in its extra field" }, "errors": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Type of the processing error, such as invalid_data or js_no_source" }, "message": { "type": "string", "description": "Human-readable message of the error" }, "data": { "type": "object", "description": "Details of the error, such as the name of the invalid field. Other keys depend on the error type", "properties": { "name": { "type": "string", "nullable": true, "description": "Affected key or path in the event" }, "message": { "type": "string", "description": "Details of the error from the processor that hit it" }, "url": { "type": "string", "description": "URL that couldn't be fetched, such as a source file" }, "image_path": { "type": "string", "description": "Path of the debug image the error is about" }, "image_name": { "type": "string", "description": "Name of the debug image the error is about" }, "image_uuid": { "type": "string", "description": "Debug ID of the image the error is about" }, "image_arch": { "type": "string", "description": "CPU architecture of the image the error is about" }, "symbolicator_type": { "type": "string", "description": "Error type Symbolicator reported, such as missing_source" }, "source": { "type": "string", "description": "Source file or URL the error is about" }, "sourcemap": { "type": "string", "description": "Source map the error is about" }, "row": { "type": "integer", "description": "Line of the location that couldn't be mapped" }, "column": { "type": "integer", "description": "Column of the location that couldn't be mapped" }, "sdk_time": { "type": "string", "description": "Time the SDK reported, for clock drift errors" }, "server_time": { "type": "string", "description": "Time the server received the event, for clock drift errors" } } } }, "required": [ "data", "message", "type" ] }, "description": "Errors Sentry found while processing the event" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "fingerprints": { "type": "array", "items": { "type": "string" }, "description": "Grouping hashes calculated for the event" }, "groupingConfig": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the grouping config, such as newstyle:2026-01-20" }, "enhancements": { "type": "string", "description": "Stack trace rules of the project, as an encoded string" } }, "required": [ "enhancements", "id" ], "description": "Grouping configuration used to group the event" }, "startTimestamp": { "type": "number", "format": "double", "description": "When the transaction started, as a Unix timestamp in seconds" }, "endTimestamp": { "type": "number", "format": "double", "description": "When the transaction ended, as a Unix timestamp in seconds" }, "measurements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] }, "nullable": true, "description": "Measurements recorded for the transaction, such as web vitals, keyed by name" }, "breakdowns": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] } }, "nullable": true, "description": "Span operation breakdowns for the transaction, keyed by breakdown name" } }, "required": [ "_meta", "context", "contexts", "dateReceived", "dist", "entries", "errors", "eventID", "groupID", "id", "location", "message", "metadata", "occurrence", "packages", "platform", "projectID", "sdk", "size", "tags", "title", "type", "user" ], "description": "The event" } }, "required": [ "event", "eventId", "groupId", "organizationSlug", "projectSlug" ] }, "examples": { "EventExample": { "value": { "event": { "_meta": { "context": null, "contexts": null, "entries": {}, "message": null, "packages": null, "sdk": null, "tags": {}, "user": null }, "context": { "length": 10837790, "results": [ 1, 2, 3, 4, 5 ], "session": { "foo": "bar" }, "unauthorized": false, "url": "http://example.org/foo/bar/" }, "contexts": {}, "dateCreated": "2018-11-06T21:19:55Z", "dateReceived": "2018-11-06T21:19:55Z", "dist": null, "entries": [ { "type": "request", "data": { "fragment": null, "cookies": [], "inferredContentType": null, "env": null, "headers": [ [ "User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36" ] ], "url": "http://example.com/foo", "query": [], "data": null, "method": null } } ], "errors": [], "eventID": "9fac2ceed9344f2bbfdd1fdacb0ed9b1", "fingerprints": [ "c4a4d06bc314205bb3b6bdb612dde7f1" ], "groupID": "1", "id": "9fac2ceed9344f2bbfdd1fdacb0ed9b1", "location": "example.py:42", "message": "", "title": "This is an example Python exception", "metadata": { "title": "This is an example Python exception" }, "occurrence": { "id": "1", "projectId": 1, "eventId": "9fac2ceed9344f2bbfdd1fdacb0ed9b1", "fingerprint": [ "c4a4d06bc314205bb3b6bdb612dde7f1" ], "issueTitle": "This is an example Python exception", "subtitle": "example.py:42", "resourceId": "example.py:42", "evidenceData": {}, "evidenceDisplay": [], "type": 1, "detectionTime": 1541539195, "level": "error", "culprit": "example.py:42", "assignee": null, "priority": 50 }, "packages": { "my.package": "1.0.0" }, "platform": "python", "projectID": "1", "sdk": { "name": "sentry.python", "version": "2.0.0" }, "size": 7055, "tags": [ { "key": "browser", "value": "Chrome 28.0" }, { "key": "device", "value": "Other" }, { "key": "level", "value": "error" }, { "key": "os", "value": "Windows 8" }, { "key": "release", "value": "17642328ead24b51867165985996d04b29310337" }, { "key": "url", "value": "http://example.com/foo" }, { "key": "user", "value": "id:1" } ], "type": "default", "user": { "data": {}, "email": "sentry@example.com", "id": "1", "ip_address": "127.0.0.1", "name": "Sentry", "username": "sentry" } }, "eventId": "1", "groupId": "1", "organizationSlug": "the-interstellar-jurisdiction", "projectSlug": "pump-station" }, "summary": "Event example" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/events/": { "get": { "operationId": "listOrganizationEvents", "description": "Retrieves explore data for a given organization.\n\n**Note**: This endpoint is intended to get a table of results, and is not for doing a full export of data sent to\nSentry.\n\nThe `field` query parameter determines what fields will be selected in the `data` and `meta` keys of the endpoint response.\n- The `data` key contains a list of results row by row that match the `query` made\n- The `meta` key contains information about the response, including the unit or type of the fields requested\n- EAP table results may include `meta.routingHint`. Pass this opaque value unchanged as\n `routing_hint` when fetching item details for a row in this response. It identifies how\n the table query was routed and is omitted when no hint is available.", "summary": "Query Explore Events in Table Format", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "field", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The fields, functions, or equations to request for the query. At most 20 fields can be selected per request. Each field can be one of the following types:\n- A built-in key field. See possible fields in the [properties table](/concepts/search/searchable-properties/), under any field that matches the dataset passed to the dataset parameter\n - example: `field=transaction`\n- A tag. Tags should use the `tag[{name}, {type}]` formatting to avoid ambiguity with any fields,\n - example: `field=tag[isEnterprise, string]`\n - example: `field=tag[numberOfBytes, number]`\n- A function which will be in the format of `function_name(parameters,...)`. See possible functions in the [query builder documentation](/product/discover-queries/query-builder/#stacking-functions).\n - when a function is included, Discover will group by any tags or fields\n - example: `field=count_if(transaction.duration,greater,300)`\n- An equation when prefixed with `equation|`. Read more about [equations here](/product/discover-queries/query-builder/query-equations/).\n - example: `field=equation|count_if(transaction.duration,greater,300) / count() * 100`\n", "required": true }, { "in": "query", "name": "dataset", "schema": { "type": "string", "enum": [ "errors", "logs", "profile_functions", "spans", "tracemetrics", "uptime_results" ] }, "description": "Which dataset to query. The chosen dataset determines which fields are queryable.\n- `errors` - Error events.\n- `logs` - Structured log events.\n- `profile_functions` - Function-level Profiling data.\n- `spans` - Distributed tracing span events.\n- `tracemetrics` - Application Metrics.\n- `uptime_results` - Uptime monitoring check results.\n", "required": true }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "referrer", "schema": { "type": "string" }, "description": "Internal referrer identifier used for query tracing. Most clients can omit this." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Filters results by using [query syntax](/concepts/search/).\n\nExample: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)`\n\nWith the `logs` dataset, a string attribute can also be matched against a regular expression written as `key://pattern//`, and excluded with `!key://pattern//`.\nPatterns use [RE2 syntax](https://github.com/google/re2/wiki/Syntax), match anywhere in the value unless anchored with `^` or `$`, are case sensitive unless they start with `(?i)`, and are limited to 64 characters. A query can contain up to 16 regular expressions.\nTo search for a literal value that starts with `//`, quote it: `key:\"//value\"`.\nSee [regular expressions](/concepts/search/#regular-expressions-logs-only) for more details.\n\nExample: `query=message://^Timeout after \\d+ms//`\n" }, { "in": "query", "name": "sort", "schema": { "type": "string" }, "description": "What to order the results of the query by. Must be something in the `field` list, excluding equations." }, { "in": "query", "name": "allowAggregateConditions", "schema": { "type": "boolean" }, "description": "If false, aggregate conditions in the query string are disallowed. Defaults to true." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Explore" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "additionalProperties": {} }, "description": "Rows returned by the query, keyed by the requested fields" }, "meta": { "type": "object", "description": "Meta envelope emitted by `handle_results_with_meta` and the\nempty-projects short-circuit. Every key is optional because the path\nthat emits it depends on flags (`standard_meta`, debug, dataset) — the\nno-projects path only carries `tips`, the standard path carries\neverything below.", "properties": { "fields": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Type of each returned field, keyed by field name" }, "units": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Unit of each returned field, keyed by field name, or null if the field has no unit" }, "tips": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Suggestions for improving the query, under the `query` and `columns` keys" }, "datasetReason": { "type": "string", "description": "Why the query ran on a different dataset than requested, or unchanged" }, "isMetricsData": { "type": "boolean", "description": "Whether the results came from metrics data" }, "isMetricsExtractedData": { "type": "boolean", "description": "Whether the results came from metrics extracted on demand" }, "dataset": { "type": "string", "description": "Dataset that was queried" }, "discoverSplitDecision": { "enum": [ "error-events", "transaction-like" ], "type": "string", "description": "Dataset the results were taken from when a Discover dashboard widget query was split between errors and transactions" }, "dataScanned": { "type": "string", "description": "Whether the query scanned the `full` data set or only a `partial` sample" }, "bytesScanned": { "type": "integer", "description": "Number of bytes the query scanned" }, "routingHint": { "type": "string", "description": "Opaque routing hint of an EAP table query. Pass it unchanged as routing_hint when fetching item details for a row" }, "debug_info": { "description": "Debug information about the query. Only present when `debug` is passed" }, "ingestion": { "type": "object", "description": "Ingestion status for the data behind a response.", "properties": { "status": { "type": "string", "description": "Ingestion status of the data: healthy, stalled, idle or unknown" }, "delaySeconds": { "type": "number", "format": "double", "description": "Measured ingestion delay in seconds" }, "completeThrough": { "type": "number", "format": "double", "description": "Time through which the data is complete, as a Unix timestamp in milliseconds" } }, "required": [ "status" ] } } } }, "required": [ "data", "meta" ] }, "examples": { "QueryEvents": { "value": { "data": [ { "count_if(transaction.duration,greater,300)": 5, "count()": 10, "equation|count_if(transaction.duration,greater,300) / count() * 100": 50, "transaction": "foo" }, { "count_if(transaction.duration,greater,300)": 3, "count()": 20, "equation|count_if(transaction.duration,greater,300) / count() * 100": 15, "transaction": "bar" }, { "count_if(transaction.duration,greater,300)": 8, "count()": 40, "equation|count_if(transaction.duration,greater,300) / count() * 100": 20, "transaction": "baz" } ], "meta": { "fields": { "count_if(transaction.duration,greater,300)": "integer", "count()": "integer", "equation|count_if(transaction.duration,greater,300) / count() * 100": "number", "transaction": "string" } } }, "summary": "Query Events" } } } }, "description": "" }, "400": { "description": "Invalid Query" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/events-dropped/": { "get": { "operationId": "listOrganizationEventsDropped", "description": "**Experimental:** This API is under active development and may change.\n\nReturn the events Sentry received but dropped (rate limited, filtered,\ninvalid, abuse, client discarded, cardinality limited) bucketed over the\nrequested interval, alongside the accepted volume per bucket so a caller\ncan compute the dropped share.\n\nSelect the dropped-data type with ``dataset`` and the bucket size with\n``interval``. Optionally scope the dropped side to one classification with\n``outcome`` (top-level) and/or ``reason`` (sub-classification within an\noutcome); the accepted volume is always returned in full.", "summary": "Query Dropped and Accepted Events/Stats by Outcome and Reason", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "dataset", "schema": { "type": "string", "enum": [ "errors", "logs", "profile_functions", "spans", "tracemetrics", "uptime_results" ] }, "description": "Which dataset to query. The chosen dataset determines which fields are queryable.\n- `errors` - Error events.\n- `logs` - Structured log events.\n- `profile_functions` - Function-level Profiling data.\n- `spans` - Distributed tracing span events.\n- `tracemetrics` - Application Metrics.\n- `uptime_results` - Uptime monitoring check results.\n", "required": true }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "interval", "schema": { "anyOf": [ { "type": "integer" }, { "type": "string", "pattern": "^\\d+[smhdw]?$" } ] }, "description": "The size of the bucket for the timeseries to have, must be a value smaller than the window being\nqueried. Either a number of seconds, or a number with a unit suffix of `s`, `m`, `h`, `d`, or `w`, such as `5m` or\n`1h`. If the interval is invalid a default interval will be selected instead" }, { "in": "query", "name": "outcome", "schema": { "enum": [ "filtered", "rate_limited", "invalid", "abuse", "client_discard", "cardinality_limited" ], "type": "string", "minLength": 1 }, "description": "Narrow the dropped events (only) to a single top-level drop classification (e.g. `rate_limited`, `filtered`).\n\n* `filtered`\n* `rate_limited`\n* `invalid`\n* `abuse`\n* `client_discard`\n* `cardinality_limited`" }, { "in": "query", "name": "reason", "schema": { "type": "string", "minLength": 1 }, "description": "Narrow the dropped events to a single reason, the sub-classification within an outcome (e.g. `spike_protection` within `rate_limited`). Should be combined with `outcome`." } ], "tags": [ "Explore" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "meta": { "type": "object", "properties": { "dataset": { "type": "string", "description": "Dataset that was queried" }, "start": { "type": "number", "format": "double", "description": "Start of the queried time range, in milliseconds since the Unix epoch" }, "end": { "type": "number", "format": "double", "description": "End of the queried time range, in milliseconds since the Unix epoch" }, "interval": { "type": "number", "format": "double", "description": "Width of each bucket, in milliseconds" }, "suppressedDrops": { "type": "array", "items": { "type": "object", "description": "Drop volume withheld from the dropped annotations as a known misreport.", "properties": { "cause": { "type": "string", "description": "Why the drop volume was withheld, such as `js_sdk_below_11`" }, "category": { "type": "string", "description": "Data category of the withheld events" }, "outcome": { "type": "string", "description": "Outcome of the withheld events" }, "reason": { "type": "string", "description": "Reason for the outcome of the withheld events" }, "count": { "type": "integer", "description": "Number of withheld events" } }, "required": [ "category", "cause", "count", "outcome", "reason" ] }, "description": "Dropped volume withheld from `droppedEvents` because it is a known SDK misreport" } }, "required": [ "dataset", "end", "interval", "start", "suppressedDrops" ], "description": "Metadata about the query" }, "droppedEvents": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Annotation type. Always `system`" }, "category": { "type": "string", "description": "Data category of the events, such as `log_item`" }, "outcome": { "type": "string", "description": "Outcome of the events, such as `rate_limited` or `filtered`, or `accepted` for accepted events" }, "reason": { "type": "string", "description": "Reason for the outcome within its outcome class, or `accepted` for accepted events" }, "start": { "type": "number", "format": "double", "description": "Start of the bucket, in milliseconds since the Unix epoch" }, "end": { "type": "number", "format": "double", "description": "End of the bucket, in milliseconds since the Unix epoch" }, "count": { "type": "number", "format": "double", "description": "Number of events in the bucket" }, "tags": { "type": "array", "items": { "type": "string" }, "description": "Whether the drop is `intentional` (user-configured) or `unintentional`. Empty for accepted events" } }, "required": [ "category", "count", "end", "outcome", "reason", "start", "tags", "type" ] }, "description": "Dropped event volume, one entry per bucket, outcome and reason" }, "acceptedEvents": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Annotation type. Always `system`" }, "category": { "type": "string", "description": "Data category of the events, such as `log_item`" }, "outcome": { "type": "string", "description": "Outcome of the events, such as `rate_limited` or `filtered`, or `accepted` for accepted events" }, "reason": { "type": "string", "description": "Reason for the outcome within its outcome class, or `accepted` for accepted events" }, "start": { "type": "number", "format": "double", "description": "Start of the bucket, in milliseconds since the Unix epoch" }, "end": { "type": "number", "format": "double", "description": "End of the bucket, in milliseconds since the Unix epoch" }, "count": { "type": "number", "format": "double", "description": "Number of events in the bucket" }, "tags": { "type": "array", "items": { "type": "string" }, "description": "Whether the drop is `intentional` (user-configured) or `unintentional`. Empty for accepted events" } }, "required": [ "category", "count", "end", "outcome", "reason", "start", "tags", "type" ] }, "description": "Accepted event volume, one entry per bucket" } }, "required": [ "acceptedEvents", "droppedEvents", "meta" ] } } }, "description": "" }, "400": { "description": "Invalid Query" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/events-timeseries/": { "get": { "operationId": "listOrganizationEventsTimeseries", "description": "Retrieves explore data for a given organization as a timeseries.\n\nThis endpoint can return timeseries for either 1 or many axis, and results grouped to the top events depending\non the parameters passed\n\n**Note**: For queries extending past `30d`, spanning billions of rows, or running on projects with low\nsample rates, the aggregation `yAxis=count_unique()` and filters on high-cardinality\nfields (such as `query=user.id:bc`) will not return accurate results. Use these queries for rough\nestimation only.", "summary": "Query Explore Events in Timeseries Format", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "dataset", "schema": { "type": "string", "enum": [ "errors", "logs", "profile_functions", "spans", "tracemetrics", "uptime_results" ] }, "description": "Which dataset to query. The chosen dataset determines which fields are queryable.\n- `errors` - Error events.\n- `logs` - Structured log events.\n- `profile_functions` - Function-level Profiling data.\n- `spans` - Distributed tracing span events.\n- `tracemetrics` - Application Metrics.\n- `uptime_results` - Uptime monitoring check results.\n", "required": true }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "topEvents", "schema": { "type": "integer" }, "description": "The number of top event results to return, must be between 1 and 10.\nWhen TopEvents is passed, both sort and groupBy are required parameters" }, { "in": "query", "name": "comparisonDelta", "schema": { "type": "integer" }, "description": "The delta in seconds to return additional offset timeseries by" }, { "in": "query", "name": "interval", "schema": { "anyOf": [ { "type": "integer" }, { "type": "string", "pattern": "^\\d+[smhdw]?$" } ] }, "description": "The size of the bucket for the timeseries to have, must be a value smaller than the window being\nqueried. Either a number of seconds, or a number with a unit suffix of `s`, `m`, `h`, `d`, or `w`, such as `5m` or\n`1h`. If the interval is invalid a default interval will be selected instead" }, { "in": "query", "name": "sort", "schema": { "type": "string" }, "description": "What to order the results of the query by. Must be something in the `field` list, excluding equations." }, { "in": "query", "name": "groupBy", "schema": { "type": "array", "items": { "type": "string" } }, "description": "List of fields to group by, *Required* for topEvents queries as this and sort determine what the\ntop events are" }, { "in": "query", "name": "yAxis", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The aggregate fields to create timeseries for, defaults to `count()` when\n not included. Pass the parameter more than once to get a timeseries for each aggregate, for\n example `?yAxis=count()&yAxis=p95(span.duration)`.\n- `count()` - Total count of events over the period.\n- `avg(field)` - Average value of the field over the period.\n- `pXX(field)` - Percentile value of the field over the period. One of: `p50`, `p75`, `p90`, `p95`, `p99`, `p100`.\n- `sum(field)` - Sum of all values for the field over the period.\n- `min(field)` - Lowest value observed for the field over the period.\n- `max(field)` - Highest value observed for the field over the period.\n- `count_unique(field)` - Count of unique values observed for the field over the period. See *Note:* regarding accuracy on sampled data.\n- `epm` - Average number of events received per minute.\n- `eps` - Average number of events received per second.\n- `failure_rate()` - Percentage of events whose `status` indicates failure.\n- `failure_count()` - Total count of events with an error `status` over period.\n- `performance_score(field)` - Web Vitals performance score for the selected measurement.\n- `opportunity_score(field)` - Web Vitals opportunity score for the selected measurement.\n" }, { "in": "query", "name": "transformations[0]", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Ordered transformations for a zero-based `yAxis` position. Replace `0` with the target axis index.\nRepeat the indexed key for each operation, for example\n`transformations[0]=fill(locf)&transformations[0]=smooth(sma,3)`.\nEach axis accepts at most one fill and one smooth operation, in execution order.\nFill modes are `locf`, `zero`, and `linear`. Smoothing modes are `sma`, `ema`, and `asap`.\nOmit the indexed key to leave that axis unchanged. Requires the interpolation and smoothing feature.", "explode": true, "style": "form" }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Filters results by using [query syntax](/concepts/search/).\n\nExample: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)`\n\nWith the `logs` dataset, a string attribute can also be matched against a regular expression written as `key://pattern//`, and excluded with `!key://pattern//`.\nPatterns use [RE2 syntax](https://github.com/google/re2/wiki/Syntax), match anywhere in the value unless anchored with `^` or `$`, are case sensitive unless they start with `(?i)`, and are limited to 64 characters. A query can contain up to 16 regular expressions.\nTo search for a literal value that starts with `//`, quote it: `key:\"//value\"`.\nSee [regular expressions](/concepts/search/#regular-expressions-logs-only) for more details.\n\nExample: `query=message://^Timeout after \\d+ms//`\n" }, { "in": "query", "name": "disableAggregateExtrapolation", "schema": { "type": "string", "enum": [ "0", "1" ] }, "description": "Whether to disable the use of extrapolation and return the sampled values, due to sampling the\nnumber returned may be less than the actual values sent to Sentry" }, { "in": "query", "name": "preventMetricAggregates", "schema": { "type": "string", "enum": [ "0", "1" ] }, "description": "Whether to throw an error when aggregates are passed in the query or groupBy" }, { "in": "query", "name": "excludeOther", "schema": { "type": "string", "enum": [ "0", "1" ] }, "description": "Only applicable with TopEvents, whether to include the 'other' timeseries which represents all the\nevents that aren't in the top groups." } ], "tags": [ "Explore" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "meta": { "type": "object", "properties": { "dataset": { "type": "string", "description": "Dataset that was queried" }, "start": { "type": "number", "format": "double", "description": "Start of the queried time range, in milliseconds since the Unix epoch" }, "end": { "type": "number", "format": "double", "description": "End of the queried time range, in milliseconds since the Unix epoch" }, "ingestion": { "type": "object", "description": "Ingestion status for the data behind a response.", "properties": { "status": { "type": "string", "description": "Ingestion status of the data: healthy, stalled, idle or unknown" }, "delaySeconds": { "type": "number", "format": "double", "description": "Measured ingestion delay in seconds" }, "completeThrough": { "type": "number", "format": "double", "description": "Time through which the data is complete, as a Unix timestamp in milliseconds" } }, "required": [ "status" ] } }, "required": [ "dataset", "end", "start" ], "description": "Metadata about the query" }, "timeSeries": { "type": "array", "items": { "type": "object", "properties": { "values": { "type": "array", "items": { "type": "object", "properties": { "timestamp": { "type": "number", "format": "double", "description": "Start of the bucket, in milliseconds since the Unix epoch" }, "value": { "type": "number", "format": "double", "nullable": true, "description": "Value of the aggregate for this bucket, or null if there is no data" }, "incomplete": { "type": "boolean", "description": "Whether this bucket may hold incomplete data" }, "comparisonValue": { "type": "number", "format": "double", "nullable": true, "description": "Value of the aggregate for the same bucket in the comparison period" }, "filled": { "type": "boolean", "description": "Whether this value was filled in by a fill transformation" }, "smoothed": { "type": "boolean", "description": "Whether this value was produced by a smoothing transformation" }, "comparisonFilled": { "type": "boolean", "description": "Whether the comparison value was filled in by a fill transformation" }, "comparisonSmoothed": { "type": "boolean", "description": "Whether the comparison value was produced by a smoothing transformation" }, "sampleCount": { "type": "number", "format": "double", "description": "Number of sampled rows that make up this bucket" }, "sampleRate": { "type": "number", "format": "double", "nullable": true, "description": "Sampling rate of the data in this bucket, or null if the bucket has no data" }, "confidence": { "enum": [ "low", "high", null ], "type": "string", "nullable": true, "description": "Confidence in the extrapolated value: `low` or `high`" }, "incompleteReason": { "type": "string", "description": "Why the bucket is incomplete: `NOT_ELAPSED`, `INGESTION_PENDING` or `OUTSIDE_RETENTION`" } }, "required": [ "incomplete", "timestamp", "value" ] }, "description": "Buckets in the series, in time order" }, "yAxis": { "type": "string", "description": "Aggregate this series plots, such as `count()`" }, "groupBy": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "description": "Name of the field this series is grouped by" }, "value": { "anyOf": [ { "type": "string" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Value of the grouped field for this series" } }, "required": [ "key", "value" ] }, "description": "Fields and values that identify this series when results are grouped" }, "meta": { "type": "object", "properties": { "order": { "type": "integer", "description": "Position of this series among the top events series" }, "isOther": { "type": "boolean", "description": "Whether this series aggregates all events outside the top events" }, "valueUnit": { "type": "string", "nullable": true, "description": "Unit of the values, such as `millisecond` or `byte`, or null if they have no unit" }, "dataScanned": { "enum": [ "partial", "full" ], "type": "string", "description": "Whether the query scanned the `full` data set or only a `partial` sample" }, "valueType": { "type": "string", "description": "Type of the values, such as `integer`, `duration` or `size`" }, "interval": { "type": "number", "format": "double", "description": "Width of each bucket, in milliseconds" } }, "required": [ "interval", "valueType", "valueUnit" ], "description": "Metadata about the series" } }, "required": [ "meta", "values", "yAxis" ] }, "description": "Series returned by the query, one per y-axis and group" } }, "required": [ "timeSeries" ] }, "examples": { "QueryTopEventsAsATimeseries": { "value": { "timeSeries": [ { "values": [ { "timestamp": 1741366800000, "value": 5, "incomplete": false }, { "timestamp": 1741370400000, "value": 3, "incomplete": true, "incompleteReason": "INGESTION_PENDING" }, { "timestamp": 1741374000000, "value": 4, "incomplete": true, "incompleteReason": "NOT_ELAPSED" } ], "yAxis": "count()", "groupBy": [ { "key": "transaction", "value": "foo" }, { "key": "project", "value": "bar" }, { "key": "tag[foo]", "value": "baz" } ], "meta": { "valueUnit": null, "valueType": "integer", "interval": 3600 } }, { "values": [ { "timestamp": 1741366800000, "value": 5, "incomplete": false }, { "timestamp": 1741370400000, "value": 2, "incomplete": true, "incompleteReason": "INGESTION_PENDING" }, { "timestamp": 1741374000000, "value": 1, "incomplete": true, "incompleteReason": "NOT_ELAPSED" } ], "yAxis": "count()", "groupBy": [ { "key": "transaction", "value": "foo" }, { "key": "project", "value": "ball" }, { "key": "tag[foo]", "value": "baz" } ], "meta": { "valueUnit": null, "valueType": "integer", "interval": 3600 } } ], "meta": { "dataset": "spans", "start": 1741366800000, "end": 1741374060000, "ingestion": { "status": "healthy", "delaySeconds": 130.5, "completeThrough": 1741373929500 } } }, "summary": "Query Top Events as a Timeseries" } } } }, "description": "" }, "400": { "description": "Invalid Query" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/external-users/": { "post": { "operationId": "createOrganizationExternalUser", "description": "Link a user from an external provider to a Sentry user.", "summary": "Create an External User", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Integrations" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "user_id": { "type": "integer", "description": "The user ID in Sentry." }, "external_name": { "type": "string", "description": "The associated name for the provider." }, "provider": { "enum": [ "github", "github_enterprise", "jira_server", "slack", "slack_staging", "perforce", "gitlab", "cursor_origin", "msteams", "custom_scm" ], "type": "string", "description": "The provider of the external actor.\n\n* `github`\n* `github_enterprise`\n* `jira_server`\n* `slack`\n* `slack_staging`\n* `perforce`\n* `gitlab`\n* `cursor_origin`\n* `msteams`\n* `custom_scm`" }, "integration_id": { "type": "integer", "description": "The Integration ID." }, "id": { "type": "integer", "readOnly": true, "description": "The external actor ID." }, "external_id": { "type": "string", "nullable": true, "description": "The associated user ID for provider." } }, "required": [ "external_name", "id", "integration_id", "provider", "user_id" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:admin", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "examples": { "CreateAnExternalUser": { "value": { "externalName": "@Billybob", "provider": "github", "userId": "1", "integrationId": "1", "id": "1" }, "summary": "Create an external user" } } } }, "description": "" }, "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "examples": { "CreateAnExternalUser": { "value": { "externalName": "@Billybob", "provider": "github", "userId": "1", "integrationId": "1", "id": "1" }, "summary": "Create an external user" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/external-users/{external_user_id}/": { "put": { "operationId": "updateOrganizationExternalUser", "description": "Update a user in an external provider that is currently linked to a Sentry user.", "summary": "Update an External User", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "external_user_id", "schema": { "type": "integer" }, "description": "The ID of the external user object. This is returned when creating an external user.", "required": true } ], "tags": [ "Integrations" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "user_id": { "type": "integer", "description": "The user ID in Sentry." }, "external_name": { "type": "string", "description": "The associated name for the provider." }, "provider": { "enum": [ "github", "github_enterprise", "jira_server", "slack", "slack_staging", "perforce", "gitlab", "cursor_origin", "msteams", "custom_scm" ], "type": "string", "description": "The provider of the external actor.\n\n* `github`\n* `github_enterprise`\n* `jira_server`\n* `slack`\n* `slack_staging`\n* `perforce`\n* `gitlab`\n* `cursor_origin`\n* `msteams`\n* `custom_scm`" }, "integration_id": { "type": "integer", "description": "The Integration ID." }, "id": { "type": "integer", "readOnly": true, "description": "The external actor ID." }, "external_id": { "type": "string", "nullable": true, "description": "The associated user ID for provider." } }, "required": [ "external_name", "id", "integration_id", "provider", "user_id" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:admin", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "examples": { "CreateAnExternalUser": { "value": { "externalName": "@Billybob", "provider": "github", "userId": "1", "integrationId": "1", "id": "1" }, "summary": "Create an external user" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true }, "delete": { "operationId": "deleteOrganizationExternalUser", "description": "Delete the link between a user from an external provider and a Sentry user.", "summary": "Delete an External User", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "external_user_id", "schema": { "type": "integer" }, "description": "The ID of the external user object. This is returned when creating an external user.", "required": true } ], "tags": [ "Integrations" ], "security": [ { "auth_token": [ "org:admin", "org:write" ] } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/flags/logs/": { "get": { "operationId": "listOrganizationFlagLogs", "description": "Return a paginated list of feature flag changes (creations, updates and deletions)\nrecorded for an organization within the requested time range.", "summary": "List an Organization's Flag Logs", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "statsPeriodStart", "schema": { "type": "string" }, "description": "How long ago the query period starts, in the same format as `statsPeriod`. Must be sent with `statsPeriodEnd`, and is ignored when `statsPeriod` is sent." }, { "in": "query", "name": "statsPeriodEnd", "schema": { "type": "string" }, "description": "How long ago the query period ends, in the same format as `statsPeriod`. Must be sent with `statsPeriodStart`, and is ignored when `statsPeriod` is sent." }, { "in": "query", "name": "flag", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of a feature flag to filter by. Repeat the parameter to match multiple flags." }, { "in": "query", "name": "provider", "schema": { "type": "array", "items": { "type": "string", "enum": [ "flagpole", "generic", "launchdarkly", "statsig", "unknown", "unleash" ] } }, "description": "The flag provider to filter by. Use `unknown` to match logs without a provider. Repeat the parameter to match multiple providers." }, { "in": "query", "name": "sort", "schema": { "type": "string" }, "description": "The field to sort results by.\n\nAvailable fields are:\n- `action`\n- `createdAt`\n- `createdBy`\n- `createdByType`\n- `flag`\n- `provider`\n\nPrefix with `-` to sort in descending order.\n" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Flags" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the audit log entry" }, "action": { "enum": [ "created", "deleted", "updated" ], "type": "string", "description": "What happened to the flag: created, deleted or updated" }, "createdAt": { "type": "string", "description": "When the change happened (ISO 8601)" }, "createdBy": { "type": "string", "nullable": true, "description": "Who made the change, such as an email address" }, "createdByType": { "enum": [ "email", "id", "name", null ], "type": "string", "nullable": true, "description": "Kind of value in createdBy: email, id or name" }, "flag": { "type": "string", "description": "Name of the flag" }, "provider": { "enum": [ "generic", "flagpole", "launchdarkly", "unleash", "statsig", null ], "type": "string", "nullable": true, "description": "Feature flag provider that sent the change: generic, flagpole, launchdarkly, unleash or statsig" }, "tags": { "type": "object", "additionalProperties": {}, "description": "Tags of the change, such as the environment" } }, "required": [ "action", "createdAt", "createdBy", "createdByType", "flag", "id", "provider", "tags" ] }, "description": "Audit log entries" } }, "required": [ "data" ] }, "examples": { "ListAnOrganization'sFlagLogs": { "value": { "data": [ { "id": 1, "action": "updated", "createdAt": "2024-01-01T05:12:33.000000+00:00", "createdBy": "jane.doe@example.com", "createdByType": "email", "flag": "new-checkout-flow", "provider": "launchdarkly", "tags": { "environment": "production" } } ] }, "summary": "List an organization's flag logs" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/flags/logs/{flag_log_id}/": { "get": { "operationId": "retrieveOrganizationFlagLog", "description": "Return a single feature flag change recorded for an organization.", "summary": "Retrieve an Organization's Flag Log", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "flag_log_id", "schema": { "type": "integer" }, "description": "The ID of the flag log entry you'd like to retrieve.", "required": true } ], "tags": [ "Flags" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the audit log entry" }, "action": { "enum": [ "created", "deleted", "updated" ], "type": "string", "description": "What happened to the flag: created, deleted or updated" }, "createdAt": { "type": "string", "description": "When the change happened (ISO 8601)" }, "createdBy": { "type": "string", "nullable": true, "description": "Who made the change, such as an email address" }, "createdByType": { "enum": [ "email", "id", "name", null ], "type": "string", "nullable": true, "description": "Kind of value in createdBy: email, id or name" }, "flag": { "type": "string", "description": "Name of the flag" }, "provider": { "enum": [ "generic", "flagpole", "launchdarkly", "unleash", "statsig", null ], "type": "string", "nullable": true, "description": "Feature flag provider that sent the change: generic, flagpole, launchdarkly, unleash or statsig" }, "tags": { "type": "object", "additionalProperties": {}, "description": "Tags of the change, such as the environment" } }, "required": [ "action", "createdAt", "createdBy", "createdByType", "flag", "id", "provider", "tags" ], "description": "The audit log entry" } }, "required": [ "data" ] }, "examples": { "RetrieveAFlagLog": { "value": { "data": { "id": 1, "action": "updated", "createdAt": "2024-01-01T05:12:33.000000+00:00", "createdBy": "jane.doe@example.com", "createdByType": "email", "flag": "new-checkout-flow", "provider": "launchdarkly", "tags": { "environment": "production" } } }, "summary": "Retrieve a flag log" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/forwarding/": { "get": { "operationId": "listOrganizationForwarding", "description": "Returns a list of data forwarders for an organization.", "summary": "Retrieve Data Forwarders for an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Integrations" ], "security": [ { "auth_token": [ "org:read" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data forwarder" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "isEnabled": { "type": "boolean", "description": "Whether the data forwarder is on" }, "enrollNewProjects": { "type": "boolean", "description": "Whether new projects are enrolled in the forwarder automatically" }, "enrolledProjects": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "platform", "slug" ] }, "description": "Projects enrolled in the forwarder" }, "provider": { "type": "string", "description": "Service the data is forwarded to: segment, sqs or splunk" }, "config": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Provider settings of the forwarder. Null without org:write access" }, "projectConfigs": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project's data forwarding configuration" }, "isEnabled": { "type": "boolean", "description": "Whether data forwarding is on for the project" }, "dataForwarderId": { "type": "string", "description": "ID of the data forwarder" }, "project": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "platform", "slug" ], "description": "Project the configuration applies to" }, "overrides": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Settings that override the forwarder's config for the project. Empty without project:write or org:write access" }, "effectiveConfig": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Forwarder config merged with the project's overrides. Empty without org:write access" }, "dateAdded": { "type": "string", "format": "date-time", "description": "When the project configuration was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the project configuration was last updated (ISO 8601)" } }, "required": [ "dataForwarderId", "dateAdded", "dateUpdated", "effectiveConfig", "id", "isEnabled", "overrides", "project" ] }, "description": "Configuration of each enrolled project" }, "dateAdded": { "type": "string", "format": "date-time", "description": "When the data forwarder was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the data forwarder was last updated (ISO 8601)" } }, "required": [ "config", "dateAdded", "dateUpdated", "enrollNewProjects", "enrolledProjects", "id", "isEnabled", "organizationId", "projectConfigs", "provider" ] } }, "examples": { "ListAllDataForwardersForAnOrganization": { "value": [ { "id": "1", "organizationId": "1", "isEnabled": true, "enrollNewProjects": true, "enrolledProjects": [], "provider": "sqs", "config": { "region": "us-east-1", "queue_url": "https://sqs.us-east-1.amazonaws.com/01234567890/sentry-errors.fifo", "s3_bucket": "sentry-errors-bucket", "access_key": "AKIAIOSFODNN7EXAMPLE", "secret_key": "wJalrXUtnFEMI1K7MDENGSbPxRfiCYEXAMPLEKEY", "message_group_id": "sentry-errors" }, "projectConfigs": [], "dateAdded": "2025-11-01T00:00:00.000000Z", "dateUpdated": "2025-11-01T00:00:00.000000Z" }, { "id": "2", "organizationId": "1", "isEnabled": true, "enrollNewProjects": false, "enrolledProjects": [ { "id": "1", "slug": "proj-1", "platform": "javascript-react" }, { "id": "2", "slug": "proj-2", "platform": "python-flask" } ], "provider": "segment", "config": { "write_key": "itA5bLOPNxccvZ9ON1NYg9EXAMPLEKEY" }, "projectConfigs": [ { "id": "1", "isEnabled": true, "dataForwarderId": "2", "project": { "id": "1", "slug": "proj-1", "platform": "javascript-react" }, "overrides": {}, "effectiveConfig": { "write_key": "itA5bLOPNxccvZ9ON1NYg9EXAMPLEKEY" }, "dateAdded": "2025-11-01T00:00:00.000000Z", "dateUpdated": "2025-11-01T00:00:00.000000Z" }, { "id": "2", "isEnabled": true, "dataForwarderId": "2", "project": { "id": "2", "slug": "proj-2", "platform": "python-flask" }, "overrides": {}, "effectiveConfig": { "write_key": "itA5bLOPNxccvZ9ON1NYg9EXAMPLEKEY" }, "dateAdded": "2025-11-01T00:00:00.000000Z", "dateUpdated": "2025-11-01T00:00:00.000000Z" } ], "dateAdded": "2025-11-01T00:00:00.000000Z", "dateUpdated": "2025-11-01T00:00:00.000000Z" }, { "id": "3", "organizationId": "1", "isEnabled": true, "enrollNewProjects": true, "enrolledProjects": [ { "id": "1", "slug": "proj-1", "platform": "javascript-react" } ], "provider": "splunk", "config": { "index": "main", "token": "ab13cdef-45aa-1bcd-a123-bcEXAMPLEKEY", "source": "sentry", "instance_url": "https://prd-a-abcde.splunkcloud.com:8088" }, "projectConfigs": [ { "id": "3", "isEnabled": true, "dataForwarderId": "3", "project": { "id": "1", "slug": "proj-1", "platform": "javascript-react" }, "overrides": { "source": "sentry-custom" }, "effectiveConfig": { "index": "main", "token": "ab13cdef-45aa-1bcd-a123-bcEXAMPLEKEY", "source": "sentry-custom", "instance_url": "https://prd-a-abcde.splunkcloud.com:8088" }, "dateAdded": "2025-11-01T00:00:00.000000Z", "dateUpdated": "2025-11-01T00:00:00.000000Z" } ], "dateAdded": "2025-11-01T00:00:00.000000Z", "dateUpdated": "2025-11-01T00:00:00.000000Z" } ], "summary": "List all data forwarders for an organization" } } } }, "description": "" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createOrganizationForwarding", "description": "Creates a new data forwarder for an organization.\nOnly one data forwarder can be created per provider for a given organization.\n\nProject-specific overrides can only be created after creating the data forwarder.", "summary": "Create a Data Forwarder for an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Integrations" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "organization_id": { "type": "integer", "description": "The ID of the organization related to the data forwarder." }, "provider": { "enum": [ "segment", "sqs", "splunk" ], "type": "string", "description": "The provider of the data forwarder. One of \"segment\", \"sqs\", or \"splunk\".\n\n* `segment` - Segment\n* `sqs` - Amazon SQS\n* `splunk` - Splunk" }, "is_enabled": { "type": "boolean", "default": true, "description": "Whether the data forwarder is enabled." }, "enroll_new_projects": { "type": "boolean", "default": false, "description": "Whether to enroll new projects automatically, after they're created." }, "config": { "type": "object", "additionalProperties": { "type": "string" }, "description": "The configuration for the data forwarder, specific to the provider type. \nFor a 'sqs' provider, the required keys are queue_url, region, access_key, secret_key. If using a FIFO queue, you must also provide a message_group_id, though s3_bucket is optional. \nFor a 'segment' provider, the required keys are write_key. \nFor a 'splunk' provider, the required keys are instance_url, index, source, token." }, "project_ids": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the projects connected to the data forwarder. Missing project IDs will be unenrolled if previously enrolled." } }, "required": [ "organization_id", "provider" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data forwarder" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "isEnabled": { "type": "boolean", "description": "Whether the data forwarder is on" }, "enrollNewProjects": { "type": "boolean", "description": "Whether new projects are enrolled in the forwarder automatically" }, "enrolledProjects": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "platform", "slug" ] }, "description": "Projects enrolled in the forwarder" }, "provider": { "type": "string", "description": "Service the data is forwarded to: segment, sqs or splunk" }, "config": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Provider settings of the forwarder. Null without org:write access" }, "projectConfigs": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project's data forwarding configuration" }, "isEnabled": { "type": "boolean", "description": "Whether data forwarding is on for the project" }, "dataForwarderId": { "type": "string", "description": "ID of the data forwarder" }, "project": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "platform", "slug" ], "description": "Project the configuration applies to" }, "overrides": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Settings that override the forwarder's config for the project. Empty without project:write or org:write access" }, "effectiveConfig": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Forwarder config merged with the project's overrides. Empty without org:write access" }, "dateAdded": { "type": "string", "format": "date-time", "description": "When the project configuration was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the project configuration was last updated (ISO 8601)" } }, "required": [ "dataForwarderId", "dateAdded", "dateUpdated", "effectiveConfig", "id", "isEnabled", "overrides", "project" ] }, "description": "Configuration of each enrolled project" }, "dateAdded": { "type": "string", "format": "date-time", "description": "When the data forwarder was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the data forwarder was last updated (ISO 8601)" } }, "required": [ "config", "dateAdded", "dateUpdated", "enrollNewProjects", "enrolledProjects", "id", "isEnabled", "organizationId", "projectConfigs", "provider" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/forwarding/{data_forwarder_id}/": { "put": { "operationId": "updateOrganizationForwarding", "description": "Updates a data forwarder for an organization or update a project-specific override.\nUpdates to the data forwarder's configuration require `org:write` permissions, and the entire\nconfiguration to be provided, including the `project_ids` field.\n\nTo configure project-specific overrides, specify only the following fields:\n\n - 'project_id': The ID of the project to create/modify the override for.\n - 'overrides': Follows the same format as `config` but all provider fields are optional, since only specified fields are overridden.\n - 'is_enabled': To enable/disable the forwarder for events on the specific project.\n\nOverrides can be performed with `project:write` permissions on the project being modified.", "summary": "Update a Data Forwarder for an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "data_forwarder_id", "schema": { "type": "integer" }, "description": "The ID of the data forwarder you'd like to query.", "required": true } ], "tags": [ "Integrations" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "organization_id": { "type": "integer", "description": "The ID of the organization related to the data forwarder." }, "provider": { "enum": [ "segment", "sqs", "splunk" ], "type": "string", "description": "The provider of the data forwarder. One of \"segment\", \"sqs\", or \"splunk\".\n\n* `segment` - Segment\n* `sqs` - Amazon SQS\n* `splunk` - Splunk" }, "is_enabled": { "type": "boolean", "default": true, "description": "Whether the data forwarder is enabled." }, "enroll_new_projects": { "type": "boolean", "default": false, "description": "Whether to enroll new projects automatically, after they're created." }, "config": { "type": "object", "additionalProperties": { "type": "string" }, "description": "The configuration for the data forwarder, specific to the provider type. \nFor a 'sqs' provider, the required keys are queue_url, region, access_key, secret_key. If using a FIFO queue, you must also provide a message_group_id, though s3_bucket is optional. \nFor a 'segment' provider, the required keys are write_key. \nFor a 'splunk' provider, the required keys are instance_url, index, source, token." }, "project_ids": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the projects connected to the data forwarder. Missing project IDs will be unenrolled if previously enrolled." } }, "required": [ "organization_id", "provider" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data forwarder" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "isEnabled": { "type": "boolean", "description": "Whether the data forwarder is on" }, "enrollNewProjects": { "type": "boolean", "description": "Whether new projects are enrolled in the forwarder automatically" }, "enrolledProjects": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "platform", "slug" ] }, "description": "Projects enrolled in the forwarder" }, "provider": { "type": "string", "description": "Service the data is forwarded to: segment, sqs or splunk" }, "config": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Provider settings of the forwarder. Null without org:write access" }, "projectConfigs": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project's data forwarding configuration" }, "isEnabled": { "type": "boolean", "description": "Whether data forwarding is on for the project" }, "dataForwarderId": { "type": "string", "description": "ID of the data forwarder" }, "project": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "platform", "slug" ], "description": "Project the configuration applies to" }, "overrides": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Settings that override the forwarder's config for the project. Empty without project:write or org:write access" }, "effectiveConfig": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Forwarder config merged with the project's overrides. Empty without org:write access" }, "dateAdded": { "type": "string", "format": "date-time", "description": "When the project configuration was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the project configuration was last updated (ISO 8601)" } }, "required": [ "dataForwarderId", "dateAdded", "dateUpdated", "effectiveConfig", "id", "isEnabled", "overrides", "project" ] }, "description": "Configuration of each enrolled project" }, "dateAdded": { "type": "string", "format": "date-time", "description": "When the data forwarder was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the data forwarder was last updated (ISO 8601)" } }, "required": [ "config", "dateAdded", "dateUpdated", "enrollNewProjects", "enrolledProjects", "id", "isEnabled", "organizationId", "projectConfigs", "provider" ] }, "examples": { "ADataForwarderForAnOrganization": { "value": { "id": "1", "organizationId": "1", "isEnabled": true, "enrollNewProjects": true, "enrolledProjects": [], "provider": "sqs", "config": { "region": "us-east-1", "queue_url": "https://sqs.us-east-1.amazonaws.com/01234567890/sentry-errors.fifo", "s3_bucket": "sentry-errors-bucket", "access_key": "AKIAIOSFODNN7EXAMPLE", "secret_key": "wJalrXUtnFEMI1K7MDENGSbPxRfiCYEXAMPLEKEY", "message_group_id": "sentry-errors" }, "projectConfigs": [], "dateAdded": "2025-11-01T00:00:00.000000Z", "dateUpdated": "2025-11-01T00:00:00.000000Z" }, "summary": "A data forwarder for an organization" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true }, "delete": { "operationId": "deleteOrganizationForwarding", "description": "Deletes a data forwarder for an organization. All project-specific overrides will be deleted as well.", "summary": "Delete a Data Forwarder for an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "data_forwarder_id", "schema": { "type": "integer" }, "description": "The ID of the data forwarder you'd like to query.", "required": true } ], "tags": [ "Integrations" ], "security": [ { "auth_token": [ "org:write" ] } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/group-search-views/": { "get": { "operationId": "listOrganizationIssueViews", "description": "Return the current organization member's issue views, with starred views first. Set\n`createdBy=others` to list organization-visible views created by other members instead.", "summary": "List Issue Views", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "createdBy", "schema": { "enum": [ "me", "others" ], "type": "string", "minLength": 1 }, "description": "Whether to return issue views created by the current user or other members.\n\n* `me`\n* `others`" }, { "in": "query", "name": "sort", "schema": { "type": "array", "items": { "enum": [ "popularity", "-popularity", "visited", "-visited", "name", "-name", "created", "-created" ], "type": "string", "description": "* `popularity`\n* `-popularity`\n* `visited`\n* `-visited`\n* `name`\n* `-name`\n* `created`\n* `-created`" }, "default": [ "-visited" ] }, "description": "The fields used to sort issue views, in order of precedence." }, { "in": "query", "name": "query", "schema": { "type": "string", "minLength": 1 }, "description": "A case-insensitive search against issue view names and queries." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "member:read", "member:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the issue view" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the issue view" }, "name": { "type": "string", "description": "Name of the issue view" }, "query": { "type": "string", "description": "Search query of the issue view" }, "querySort": { "enum": [ "date", "new", "trends", "freq", "user", "inbox", "recommended" ], "type": "string", "description": "How issues in the view are sorted" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects in the view. [-1] means all projects" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments in the view. An empty list means all environments" }, "timeFilters": { "type": "object", "properties": { "start": { "type": "string", "nullable": true, "description": "Start of the time range (ISO 8601)" }, "end": { "type": "string", "nullable": true, "description": "End of the time range (ISO 8601)" }, "period": { "type": "string", "nullable": true, "description": "Relative time period, such as 14d" }, "utc": { "type": "boolean", "nullable": true, "description": "Whether the time range is in UTC" } }, "description": "Time range of the issue view" }, "lastVisited": { "type": "string", "format": "date-time", "nullable": true, "description": "When the requesting user last viewed the issue view (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue view was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the issue view was last updated (ISO 8601)" }, "starred": { "type": "boolean", "description": "Whether the requesting user starred the issue view" }, "stars": { "type": "integer", "description": "Number of users who starred the issue view" } }, "required": [ "createdBy", "dateCreated", "dateUpdated", "environments", "id", "lastVisited", "name", "projects", "query", "querySort", "starred", "stars", "timeFilters" ] } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createOrganizationIssueView", "description": "Create a new custom view for the current organization member.", "summary": "Create an Issue View", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Events" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "description": "The name of the issue view." }, "query": { "type": "string", "description": "The issue search query. Issue search does not support the `AND`/`OR` boolean operators or parenthesized boolean groups. To match any of several values, use the list form instead: `issue:[PROJ-AB1, PROJ-CD2]`, `issue.priority:[high, medium]`." }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "The project IDs included in the view. Use `-1` to include all projects." }, "environments": { "type": "array", "items": { "type": "string" }, "description": "The environment names included in the view. An empty list includes all environments." }, "timeFilters": { "allOf": [ { "type": "object", "properties": { "start": { "type": "string", "nullable": true, "description": "The start of the time range in ISO-8601 format." }, "end": { "type": "string", "nullable": true, "description": "The end of the time range in ISO-8601 format." }, "period": { "type": "string", "nullable": true, "description": "The relative time period, such as `14d`." }, "utc": { "type": "boolean", "nullable": true, "description": "Whether to interpret the time range as UTC." } } } ], "description": "The time range for the view." }, "querySort": { "enum": [ "date", "new", "trends", "freq", "user", "inbox", "recommended" ], "type": "string", "default": "date", "description": "How to sort issues in the view.\n\n* `date` - Last Seen\n* `new` - First Seen\n* `trends` - Trends\n* `freq` - Events\n* `user` - Users\n* `inbox` - Date Added\n* `recommended` - Recommended" }, "starred": { "type": "boolean", "description": "Whether to star the issue view for the current user." } }, "required": [ "environments", "name", "projects", "query", "timeFilters" ] } } }, "required": true }, "security": [ { "auth_token": [ "member:read", "member:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the issue view" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the issue view" }, "name": { "type": "string", "description": "Name of the issue view" }, "query": { "type": "string", "description": "Search query of the issue view" }, "querySort": { "enum": [ "date", "new", "trends", "freq", "user", "inbox", "recommended" ], "type": "string", "description": "How issues in the view are sorted" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects in the view. [-1] means all projects" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments in the view. An empty list means all environments" }, "timeFilters": { "type": "object", "properties": { "start": { "type": "string", "nullable": true, "description": "Start of the time range (ISO 8601)" }, "end": { "type": "string", "nullable": true, "description": "End of the time range (ISO 8601)" }, "period": { "type": "string", "nullable": true, "description": "Relative time period, such as 14d" }, "utc": { "type": "boolean", "nullable": true, "description": "Whether the time range is in UTC" } }, "description": "Time range of the issue view" }, "lastVisited": { "type": "string", "format": "date-time", "nullable": true, "description": "When the requesting user last viewed the issue view (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue view was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the issue view was last updated (ISO 8601)" }, "starred": { "type": "boolean", "description": "Whether the requesting user starred the issue view" }, "stars": { "type": "integer", "description": "Number of users who starred the issue view" } }, "required": [ "createdBy", "dateCreated", "dateUpdated", "environments", "id", "lastVisited", "name", "projects", "query", "querySort", "starred", "stars", "timeFilters" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/integrations/": { "get": { "operationId": "listOrganizationIntegrations", "description": "Lists all the available Integrations for an Organization.", "summary": "List an Organization's Available Integrations", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "providerKey", "schema": { "type": "string" }, "description": "Specific integration provider to filter by such as `slack`. See our [Integrations Documentation](/product/integrations/) for an updated list of providers." }, { "in": "query", "name": "features", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Integration features to filter by. See our [Integrations Documentation](/product/integrations/) for an updated list of features. Current available ones are:\n- `alert-rule`\n- `chat-unfurl`\n- `codeowners`\n- `commits`\n- `data-forwarding`\n- `deployment`\n- `enterprise-alert-rule`\n- `enterprise-incident-management`\n- `incident-management`\n- `issue-basic`\n- `issue-sync`\n- `mobile`\n- `serverless`\n- `session-replay`\n- `stacktrace-link`\n- `ticket-rules`\n " }, { "in": "query", "name": "includeConfig", "schema": { "type": "boolean" }, "description": "Specify `True` to fetch third-party integration configurations. Note that this can add several seconds to the response time." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Integrations" ], "security": [ { "auth_token": [ "org:admin", "org:integrations", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the integration" }, "name": { "type": "string", "description": "Name of the integration, usually the connected account or workspace" }, "icon": { "type": "string", "nullable": true, "description": "URL of the connected account's icon" }, "domainName": { "type": "string", "nullable": true, "description": "Domain of the connected account, such as github.com/example-org" }, "accountType": { "type": "string", "nullable": true, "description": "Type of the connected account, such as Organization or User" }, "scopes": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Permission scopes granted to the integration" }, "outOfDate": { "type": "boolean", "nullable": true, "description": "Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model" }, "missingFeatures": { "type": "array", "items": { "type": "object", "description": "A feature the installation can no longer support, named by the permission\ntier it falls short of, so the update-permissions modal can list them.", "properties": { "key": { "type": "string", "description": "Key of the missing feature" }, "description": { "type": "string", "description": "Description of the missing feature" } }, "required": [ "description", "key" ] }, "nullable": true, "description": "Features the installation can't support because of missing permissions. Null for providers without a permissions model" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "description": "Integration provider details" }, "configOrganization": { "description": "Organization-level configuration fields of the integration" }, "configData": { "description": "Configuration values the organization set for the integration" }, "externalId": { "type": "string", "description": "ID of the connected account in the provider" }, "organizationId": { "type": "integer", "description": "ID of the organization the integration is installed in" }, "organizationIntegrationStatus": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the integration in this organization" }, "gracePeriodEnd": { "type": "string", "format": "date-time", "nullable": true, "description": "When the integration's grace period ends (ISO 8601). Null when there's no grace period" } }, "required": [ "accountType", "configData", "configOrganization", "domainName", "externalId", "gracePeriodEnd", "icon", "id", "missingFeatures", "name", "organizationId", "organizationIntegrationStatus", "outOfDate", "provider", "scopes", "status" ] } }, "examples": { "ListAllAvailableIntegrationsForAlphabetSoupFactory": { "value": [ { "id": "24817", "name": "Alphabet Soup Factory", "icon": "https://avatars.slack-edge.com/alphabet-soup", "domainName": "alphabet-soup.slack.com", "accountType": null, "scopes": [ "app_mentions:read", "channels:read", "chat:write", "chat:write.customize", "chat:write.public", "commands", "groups:read", "im:history", "im:read", "links:read", "links:write", "team:read", "users:read" ], "outOfDate": false, "missingFeatures": [], "status": "active", "provider": { "key": "slack", "slug": "slack", "name": "Slack", "canAdd": true, "canDisable": false, "features": [ "alert-rule", "chat-unfurl" ], "aspects": {} }, "configOrganization": [], "configData": { "installationType": "born_as_bot" }, "externalId": "7252394", "organizationId": 6234528, "organizationIntegrationStatus": "active", "gracePeriodEnd": null } ], "summary": "List All Available Integrations for Alphabet Soup Factory" } } } }, "description": "" }, "400": { "description": "Bad Request" } }, "x-sentry-routing": { "silo": "control", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/integrations/{integration_id}/": { "get": { "operationId": "getOrganizationIntegration", "description": "OrganizationIntegrationBaseEndpoints expect both Integration and\nOrganizationIntegration DB entries to exist for a given organization and\nintegration_id.", "summary": "Retrieve an Integration for an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "integration_id", "schema": { "type": "string" }, "description": "The ID of the integration installed on the organization.", "required": true } ], "tags": [ "Integrations" ], "security": [ { "auth_token": [ "org:admin", "org:integrations", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the integration" }, "name": { "type": "string", "description": "Name of the integration, usually the connected account or workspace" }, "icon": { "type": "string", "nullable": true, "description": "URL of the connected account's icon" }, "domainName": { "type": "string", "nullable": true, "description": "Domain of the connected account, such as github.com/example-org" }, "accountType": { "type": "string", "nullable": true, "description": "Type of the connected account, such as Organization or User" }, "scopes": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Permission scopes granted to the integration" }, "outOfDate": { "type": "boolean", "nullable": true, "description": "Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model" }, "missingFeatures": { "type": "array", "items": { "type": "object", "description": "A feature the installation can no longer support, named by the permission\ntier it falls short of, so the update-permissions modal can list them.", "properties": { "key": { "type": "string", "description": "Key of the missing feature" }, "description": { "type": "string", "description": "Description of the missing feature" } }, "required": [ "description", "key" ] }, "nullable": true, "description": "Features the installation can't support because of missing permissions. Null for providers without a permissions model" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "description": "Integration provider details" }, "configOrganization": { "description": "Organization-level configuration fields of the integration" }, "configData": { "description": "Configuration values the organization set for the integration" }, "externalId": { "type": "string", "description": "ID of the connected account in the provider" }, "organizationId": { "type": "integer", "description": "ID of the organization the integration is installed in" }, "organizationIntegrationStatus": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the integration in this organization" }, "gracePeriodEnd": { "type": "string", "format": "date-time", "nullable": true, "description": "When the integration's grace period ends (ISO 8601). Null when there's no grace period" } }, "required": [ "accountType", "configData", "configOrganization", "domainName", "externalId", "gracePeriodEnd", "icon", "id", "missingFeatures", "name", "organizationId", "organizationIntegrationStatus", "outOfDate", "provider", "scopes", "status" ] }, "examples": { "ListAllAvailableIntegrationsForAlphabetSoupFactory": { "value": { "id": "24817", "name": "Alphabet Soup Factory", "icon": "https://avatars.slack-edge.com/alphabet-soup", "domainName": "alphabet-soup.slack.com", "accountType": null, "scopes": [ "app_mentions:read", "channels:read", "chat:write", "chat:write.customize", "chat:write.public", "commands", "groups:read", "im:history", "im:read", "links:read", "links:write", "team:read", "users:read" ], "outOfDate": false, "missingFeatures": [], "status": "active", "provider": { "key": "slack", "slug": "slack", "name": "Slack", "canAdd": true, "canDisable": false, "features": [ "alert-rule", "chat-unfurl" ], "aspects": {} }, "configOrganization": [], "configData": { "installationType": "born_as_bot" }, "externalId": "7252394", "organizationId": 6234528, "organizationIntegrationStatus": "active", "gracePeriodEnd": null }, "summary": "List All Available Integrations for Alphabet Soup Factory" } } } }, "description": "" } }, "x-sentry-routing": { "silo": "control", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteOrganizationIntegration", "description": "OrganizationIntegrationBaseEndpoints expect both Integration and\nOrganizationIntegration DB entries to exist for a given organization and\nintegration_id.", "summary": "Delete an Integration for an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "integration_id", "schema": { "type": "string" }, "description": "The ID of the integration installed on the organization.", "required": true } ], "tags": [ "Integrations" ], "security": [ { "auth_token": [ "org:admin", "org:integrations" ] } ], "responses": { "204": { "description": "No Content" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "control", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/integrations/{integration_id}/channel-validate/": { "get": { "operationId": "validateOrganizationIntegrationChannel", "description": "**Experimental:** This API is under active development and may change.\n\nValidate whether a channel exists for the given integration.", "summary": "Validate a Messaging Channel for an Integration", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "integration_id", "schema": { "type": "string" }, "description": "The ID of the integration installed on the organization.", "required": true }, { "in": "query", "name": "channel", "schema": { "type": "string", "minLength": 1 }, "required": true } ], "tags": [ "Integration" ], "security": [ { "auth_token": [ "org:admin", "org:integrations", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "detail": { "type": "string", "description": "Why the channel couldn't be validated, such as an unsupported provider" }, "valid": { "type": "boolean", "description": "Whether the channel exists in the integration's workspace" } }, "required": [ "valid" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "control", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/integrations/{integration_id}/channels/": { "get": { "operationId": "listOrganizationIntegrationChannels", "description": "**Experimental:** This API is under active development and may change.\n\nList all messaging channels for an integration.", "summary": "List Messaging Channels for an Integration", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "integration_id", "schema": { "type": "string" }, "description": "The ID of the integration installed on the organization.", "required": true } ], "tags": [ "Integration" ], "security": [ { "auth_token": [ "org:admin", "org:integrations", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "warning": { "type": "string", "description": "Why the channels couldn't be listed, such as an unsupported provider" }, "results": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the channel in the provider" }, "name": { "type": "string", "description": "Name of the channel" }, "display": { "type": "string", "description": "Name to show for the channel, such as #general" }, "type": { "type": "string", "description": "Type of the channel in the provider, such as public, private or text" } }, "required": [ "display", "id", "name", "type" ] }, "description": "Channels of the integration's workspace" } }, "required": [ "results" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "control", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/integrations/{integration_id}/repos/": { "get": { "operationId": "listOrganizationIntegrationRepositories", "description": "**Experimental:** This API is under active development and may change.\n\nGet the list of repositories available in an integration\n````````````````````````````````````````````````````````\n\nGets all repositories that an integration makes available,\nand indicates whether or not you can search repositories\nby name.\n\n:qparam string search: Name fragment to search repositories by.\n:qparam bool installableOnly: If true, return only repositories that can be installed.\n If false or not provided, return all repositories.\n:qparam bool accessibleOnly: If true, only return repositories that the integration\n installation has access to, filtering locally instead of\n using the provider's search API which may return results\n beyond the installation's scope.", "summary": "List Repositories Available to an Integration", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "integration_id", "schema": { "type": "string" }, "description": "The ID of the integration installed on the organization.", "required": true }, { "in": "query", "name": "search", "schema": { "type": "string" }, "description": "Repository name to search for." }, { "in": "query", "name": "installableOnly", "schema": { "type": "boolean" }, "description": "Only return repositories that are not already installed in Sentry." }, { "in": "query", "name": "accessibleOnly", "schema": { "type": "boolean" }, "description": "Only search repositories accessible to the integration installation." } ], "tags": [ "Integration" ], "security": [ { "auth_token": [ "org:admin", "org:integrations", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "repos": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the repository" }, "identifier": { "type": "string", "description": "Identifier of the repository in the provider, such as owner/name" }, "isInstalled": { "type": "boolean", "description": "Whether the repository is already added to Sentry" }, "defaultBranch": { "type": "string", "nullable": true, "description": "Default branch of the repository" }, "externalId": { "type": "string", "description": "ID of the repository in the provider" }, "url": { "type": "string", "nullable": true, "description": "URL of the repository" } }, "required": [ "defaultBranch", "externalId", "identifier", "isInstalled", "name", "url" ] }, "description": "Repositories the integration can access" }, "searchable": { "type": "boolean", "description": "Whether the provider supports searching repositories with the search query parameter" } }, "required": [ "repos" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/issues/": { "get": { "operationId": "listOrganizationIssues", "description": "Return a list of issues for an organization. All parameters are supplied as query string parameters. A default query of `is:unresolved` is applied. To return all results, use an empty query value (i.e. ``?query=`). ", "summary": "List an Organization's Issues", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "statsPeriodStart", "schema": { "type": "string" }, "description": "How long ago the query period starts, in the same format as `statsPeriod`. Must be sent with `statsPeriodEnd`, and is ignored when `statsPeriod` is sent." }, { "in": "query", "name": "statsPeriodEnd", "schema": { "type": "string" }, "description": "How long ago the query period ends, in the same format as `statsPeriod`. Must be sent with `statsPeriodStart`, and is ignored when `statsPeriod` is sent." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "groupStatsPeriod", "schema": { "type": "string", "enum": [ "", "14d", "24h", "auto" ] }, "description": "The timeline on which stats for the groups should be presented." }, { "in": "query", "name": "shortIdLookup", "schema": { "type": "string", "enum": [ "0", "1" ] }, "description": "If this is set to `1` then the query will be parsed for issue short IDs. These may ignore other filters (e.g. projects), which is why it is an opt-in." }, { "in": "query", "name": "query", "schema": { "type": "string", "default": "is:unresolved" }, "description": "An optional search query for filtering issues. A default query will apply if no query is set. For all results use this parameter with an empty string." }, { "in": "query", "name": "sort", "schema": { "type": "string", "enum": [ "date", "freq", "inbox", "new", "recommended", "trends", "user" ], "default": "date" }, "description": "The sort order of the view. Options include 'Last Seen' (`date`), 'First Seen' (`new`), 'Trends' (`trends`), 'Events' (`freq`), 'Users' (`user`), 'Date Added' (`inbox`), and 'Recommended' (`recommended`)." }, { "in": "query", "name": "limit", "schema": { "type": "integer", "default": 100 }, "description": "The maximum number of issues to return. The maximum is 100." }, { "in": "query", "name": "expand", "schema": { "type": "array", "items": { "type": "string", "enum": [ "inbox", "integrationIssues", "latestEventHasAttachments", "owners", "sentryAppIssues", "sessions" ] } }, "description": "Additional data to include in the response." }, { "in": "query", "name": "collapse", "schema": { "type": "array", "items": { "type": "string", "enum": [ "base", "filtered", "lifetime", "stats", "unhandled" ] } }, "description": "Fields to remove from the response to improve query performance." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "event:admin", "event:read", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the issue" }, "shareId": { "type": "string", "nullable": true, "description": "ID used in the issue's public share URL. Null when the issue isn't shared" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "permalink": { "type": "string", "description": "URL of the issue in Sentry" }, "logger": { "type": "string", "nullable": true, "description": "Logger of the issue's events" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "statusDetails": { "type": "object", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored" }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored (ISO 8601)" }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored" }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount" }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount" }, "actor": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who ignored or resolved the issue" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in" }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in" }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed" }, "info": { "type": "object", "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)" }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started" }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum" } }, "required": [ "dateCreated", "syncCount", "totalEvents" ], "nullable": true, "description": "Reprocessing progress details" } }, "description": "Details of the issue's status, such as when an ignore expires or which release resolves it" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "priority": { "enum": [ "low", "medium", "high", null ], "type": "string", "nullable": true, "description": "Priority of the issue: high, medium or low" }, "priorityLockedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the priority was last set manually, which stops automatic priority updates (ISO 8601)" }, "seerFixabilityScore": { "type": "number", "format": "double", "nullable": true, "description": "Seer's score for how likely the issue is to be fixable" }, "seerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When Seer Autofix was last triggered for the issue (ISO 8601)" }, "seerExplorerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601)" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "User or team the issue is assigned to" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "nullable": true, "description": "Why the requesting user is subscribed to the issue" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred" }, "annotations": { "type": "array", "items": { "type": "object", "properties": { "displayName": { "type": "string", "description": "Display name of the linked external issue" }, "url": { "type": "string", "description": "URL of the linked external issue" } }, "required": [ "displayName", "url" ] }, "description": "External issues linked to the issue" }, "isUnhandled": { "type": "boolean", "description": "Whether the issue includes unhandled events" }, "count": { "type": "string", "description": "Total number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "derivedData": { "type": "object", "properties": { "blocker": { "type": "string", "description": "Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr" }, "progress": { "type": "string", "description": "How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied" }, "status": { "type": "string", "description": "Status of the issue from its action log: open or closed" }, "viewCount": { "type": "integer", "description": "Number of times the issue was viewed" }, "hasOpenFixPr": { "type": "boolean", "description": "Whether an open pull request is linked to the issue" }, "isAssigned": { "type": "boolean", "description": "Whether the issue has an assignee" }, "hasRootCause": { "type": "boolean", "description": "Whether a root cause was found for the issue" }, "lastCompletedAutofixStep": { "type": "string", "description": "Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration" }, "lastProgressedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue's progress last advanced (ISO 8601)" }, "impact": { "type": "object", "properties": { "score": { "type": "number", "format": "double", "nullable": true, "description": "Estimated per-occurrence impact on the end user's capability from 0 to 100" }, "level": { "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "type": "string", "nullable": true, "description": "Impact level derived from the assessment score" }, "description": { "type": "string", "description": "Human-readable description of the capability affected by the issue" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string", "description": "Stable identifier for the evidence supporting this claim" }, "claim": { "type": "string", "description": "Concise explanation of what the cited evidence establishes" }, "source": { "type": "string", "description": "The category of evidence cited, such as an event, trace, replay, or log" } }, "required": [ "claim", "reference", "source" ] }, "description": "Evidence-backed claims supporting the impact assessment" }, "sourceEventId": { "type": "string", "description": "ID of the issue event used to generate the impact assessment" } }, "required": [ "citations", "description", "level", "score", "sourceEventId" ], "nullable": true, "description": "The issue's impact assessment, or null when no assessment is available" } }, "required": [ "blocker", "hasOpenFixPr", "hasRootCause", "isAssigned", "lastCompletedAutofixStep", "lastProgressedAt", "progress", "status", "viewCount" ], "description": "Additional data derived for the issue. Only included when requested with expand" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "number", "format": "double" } } }, "description": "Event counts over the requested stats period, keyed by the period, as [timestamp, count] pairs. Omitted when stats is collapsed" }, "lifetime": { "type": "object", "properties": { "count": { "type": "string", "description": "Number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "stats": { "type": "object", "nullable": true, "enum": [ null ], "description": "Always null. Only included when a stats period is requested" } }, "required": [ "count", "firstSeen", "lastSeen", "userCount" ], "description": "Event count, user count, and first and last seen times over the issue's lifetime. Omitted when stats or lifetime is collapsed" }, "filtered": { "type": "object", "properties": { "count": { "type": "string", "description": "Number of the issue's events that match the search query" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue's events that match the search query" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When an event matching the search query was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When an event matching the search query was last seen (ISO 8601)" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "number", "format": "double" } } }, "description": "Counts of matching events over the requested stats period, keyed by the period, as [timestamp, count] pairs" } }, "required": [ "count", "firstSeen", "lastSeen", "userCount" ], "nullable": true, "description": "Event count, user count, and first and last seen times for events that match the search query. Null when there's no query; omitted when stats or filtered is collapsed" }, "sessionCount": { "type": "integer", "nullable": true, "description": "Number of sessions in the issue's project over the query time range. Null when session data is unavailable. Only included with expand=sessions when a stats period is enabled and stats is not collapsed" }, "inbox": { "type": "object", "properties": { "reason": { "type": "integer", "description": "Why the issue is in the inbox: 0 new, 1 unignored, 2 regression, 3 manual, 4 reprocessed, 5 escalating or 6 ongoing" }, "reason_details": { "type": "object", "properties": { "until": { "type": "string", "nullable": true, "description": "When the ignore that ended was set to expire (ISO 8601)" }, "count": { "type": "integer", "nullable": true, "description": "Number of occurrences the ignore that ended was set to wait for" }, "window": { "type": "integer", "nullable": true, "description": "Window in minutes for count" }, "user_count": { "type": "integer", "nullable": true, "description": "Number of affected users the ignore that ended was set to wait for" }, "user_window": { "type": "integer", "nullable": true, "description": "Window in minutes for user_count" } }, "required": [ "count", "until", "user_count", "user_window", "window" ], "nullable": true, "description": "Details of the ignore that ended when the issue came back to the inbox. Null otherwise" }, "date_added": { "type": "string", "format": "date-time", "description": "When the issue was added to the inbox (ISO 8601)" } }, "required": [ "date_added", "reason", "reason_details" ], "description": "Why the issue is in the inbox. Only included when requested with expand" }, "owners": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "How the owner was found: suspectCommit, ownershipRule, codeowners or seerSuggested" }, "owner": { "type": "string", "description": "Owner as an actor identifier, such as user:1 or team:1" }, "date_added": { "type": "string", "format": "date-time", "description": "When the owner was suggested (ISO 8601)" } }, "required": [ "date_added", "owner", "type" ] }, "nullable": true, "description": "Suggested owners of the issue. Only included when requested with expand" }, "integrationIssues": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the external issue link in Sentry" }, "key": { "type": "string", "description": "Key of the issue in the integration, such as APP-123" }, "title": { "type": "string", "nullable": true, "description": "Title of the issue in the integration" }, "description": { "type": "string", "nullable": true, "description": "Description of the issue in the integration" }, "displayName": { "type": "string", "description": "Name of the issue to display" }, "integrationKey": { "type": "string", "description": "Provider of the integration, such as jira" }, "integrationName": { "type": "string", "description": "Name of the integration" } } }, "description": "External issues linked through integrations. Only included when requested with expand" }, "sentryAppIssues": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the external issue link" }, "issueId": { "type": "string", "description": "ID of the Sentry issue" }, "serviceType": { "type": "string", "description": "Slug of the custom integration that created the external issue" }, "displayName": { "type": "string", "description": "Display name of the external issue, such as ABC-123" }, "webUrl": { "type": "string", "description": "URL of the external issue" } }, "required": [ "displayName", "id", "issueId", "serviceType", "webUrl" ] }, "description": "External issues linked through Sentry apps. Only included when requested with expand" }, "latestEventHasAttachments": { "type": "boolean", "description": "Whether the issue's latest event has attachments. Only included when requested with expand" }, "matchingEventId": { "type": "string", "nullable": true, "description": "ID of the event the search query matched. Only included when the query matches an event ID" }, "matchingEventEnvironment": { "type": "string", "nullable": true, "description": "Environment of the event the search query matched. Only included when the query matches an event ID" } }, "required": [ "id" ] } }, "examples": { "ReturnAListOfIssuesForAnOrganization": { "value": [ { "annotations": [], "assignedTo": { "type": "user", "id": "1", "name": "John Doe", "email": "john.doe@example.com" }, "count": "150", "culprit": "raven.scripts.runner in main", "firstSeen": "2018-11-06T21:19:55Z", "filtered": null, "inbox": { "reason": 0, "reason_details": null, "date_added": "2018-11-06T21:19:55Z" }, "hasSeen": false, "id": "1", "isBookmarked": false, "isPublic": false, "isSubscribed": true, "lastSeen": "2018-12-06T21:19:55Z", "level": "error", "logger": null, "metadata": { "title": "This is an example Python exception" }, "numComments": 0, "permalink": "https://sentry.io/the-interstellar-jurisdiction/pump-station/issues/1/", "project": { "id": "2", "name": "Pump Station", "slug": "pump-station", "platform": "python" }, "shareId": "123def456abc", "shortId": "PUMP-STATION-1", "stats": { "24h": [ [ 1541455200, 473 ], [ 1541458800, 914 ], [ 1541462400, 991 ], [ 1541466000, 925 ], [ 1541469600, 881 ], [ 1541473200, 182 ], [ 1541476800, 490 ], [ 1541480400, 820 ], [ 1541484000, 322 ], [ 1541487600, 836 ], [ 1541491200, 565 ], [ 1541494800, 758 ], [ 1541498400, 880 ], [ 1541502000, 677 ], [ 1541505600, 381 ], [ 1541509200, 814 ], [ 1541512800, 329 ], [ 1541516400, 446 ], [ 1541520000, 731 ], [ 1541523600, 111 ], [ 1541527200, 926 ], [ 1541530800, 772 ], [ 1541534400, 400 ], [ 1541538000, 943 ] ] }, "priority": "medium", "priorityLockedAt": null, "owners": [ { "type": "ownershipRule", "owner": "user:1", "date_added": "2018-11-06T21:19:55Z" }, { "type": "suspectCommit", "owner": "team:2", "date_added": "2018-11-06T21:19:55Z" } ], "platform": "python", "lifetime": { "count": "150", "userCount": 0, "firstSeen": "2018-11-06T21:19:55Z", "lastSeen": "2018-12-06T21:19:55Z" }, "seerAutofixLastTriggered": null, "seerExplorerAutofixLastTriggered": null, "seerFixabilityScore": null, "status": "ignored", "substatus": "archived_until_condition_met", "statusDetails": {}, "subscriptionDetails": null, "title": "This is an example Python exception", "type": "default", "userCount": 0, "integrationIssues": [], "sentryAppIssues": [], "isUnhandled": false, "issueCategory": "performance", "issueType": "performance_n_plus_one_db_queries", "sessionCount": 0, "latestEventHasAttachments": false, "matchingEventId": null, "matchingEventEnvironment": null, "derivedData": { "blocker": "none", "progress": "fix_applied", "status": "open", "viewCount": 42, "hasOpenFixPr": false, "isAssigned": true, "hasRootCause": true, "lastCompletedAutofixStep": "pr_created", "lastProgressedAt": "2018-12-06T21:19:55Z" } } ], "summary": "Return a list of issues for an organization" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateOrganizationIssues", "description": "Bulk mutate various attributes on a maxmimum of 1000 issues. \n- For non-status updates, the `id` query parameter is required. \n- For status updates, the `id` query parameter may be omitted to update issues that match the filtering. \nIf any IDs are out of scope, the data won't be mutated but the endpoint will still produce a successful response. For example, if no issues were found matching the criteria, a HTTP 204 is returned.", "summary": "Bulk Mutate an Organization's Issues", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "id", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "The list of issue IDs to mutate. It is optional for status updates, in which an implicit `update all` is assumed." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "query", "schema": { "type": "string", "default": "is:unresolved" }, "description": "An optional search query for filtering issues. A default query will apply if no query is set. For all results use this parameter with an empty string." }, { "in": "query", "name": "sort", "schema": { "type": "string", "enum": [ "date", "freq", "inbox", "new", "recommended", "trends", "user" ], "default": "date" }, "description": "The sort order of the view. Options include 'Last Seen' (`date`), 'First Seen' (`new`), 'Trends' (`trends`), 'Events' (`freq`), 'Users' (`user`), 'Date Added' (`inbox`), and 'Recommended' (`recommended`)." } ], "tags": [ "Events" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "inbox": { "type": "boolean", "description": "If true, marks the issue as reviewed by the requestor." }, "status": { "enum": [ "resolved", "unresolved", "ignored", "resolvedInNextRelease", "muted" ], "type": "string", "description": "The new status for the issues.\n\n* `resolved`\n* `unresolved`\n* `ignored`\n* `resolvedInNextRelease`\n* `muted`" }, "statusDetails": { "allOf": [ { "type": "object", "properties": { "inNextRelease": { "type": "boolean", "description": "If true, marks the issue as resolved in the next release." }, "inRelease": { "type": "string", "description": "The version of the release that the issue should be resolved in.If set to `latest`, the latest release will be used." }, "inCommit": { "allOf": [ { "type": "object", "properties": { "commit": { "type": "string", "description": "The SHA of the resolving commit." }, "repository": { "type": "string", "description": "The name of the repository (as it appears in Sentry)." } }, "required": [ "commit", "repository" ] } ], "description": "The commit data that the issue should use for resolution." }, "ignoreDuration": { "type": "integer", "minimum": 0, "description": "Ignore the issue until for this many minutes." }, "ignoreCount": { "type": "integer", "minimum": 0, "description": "Ignore the issue until it has occurred this many times in `ignoreWindow` minutes." }, "ignoreWindow": { "type": "integer", "maximum": 10080, "minimum": 0, "description": "Ignore the issue until it has occurred `ignoreCount` times in this many minutes. (Max: 1 week)" }, "ignoreUserCount": { "type": "integer", "minimum": 0, "description": "Ignore the issue until it has affected this many users in `ignoreUserWindow` minutes." }, "ignoreUserWindow": { "type": "integer", "maximum": 10080, "minimum": 0, "description": "Ignore the issue until it has affected `ignoreUserCount` users in this many minutes. (Max: 1 week)" } } } ], "description": "Additional details about the resolution. Status detail updates that include release data are only allowed for issues within a single project." }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "The new substatus of the issue.\n\n* `archived_until_escalating`\n* `archived_until_condition_met`\n* `archived_forever`\n* `escalating`\n* `ongoing`\n* `regressed`\n* `new`" }, "hasSeen": { "type": "boolean", "description": "If true, marks the issue as seen by the requestor." }, "isBookmarked": { "type": "boolean", "description": "If true, bookmarks the issue for the requestor." }, "isPublic": { "type": "boolean", "description": "If true, publishes the issue." }, "isSubscribed": { "type": "boolean", "description": "If true, subscribes the requestor to the issue." }, "merge": { "type": "boolean", "description": "If true, merges the issues together." }, "discard": { "type": "boolean", "description": "If true, discards the issues instead of updating them." }, "assignedTo": { "type": "string", "description": "The user or team that should be assigned to the issues. Values take the form of ``, `user:`, ``, ``, or `team:`." }, "priority": { "enum": [ "low", "medium", "high" ], "type": "string", "description": "The priority that should be set for the issues\n\n* `low`\n* `medium`\n* `high`" }, "ignoreDuration": { "type": "integer", "minimum": 0, "description": "Ignore the issue for this many minutes." }, "ignoreCount": { "type": "integer", "minimum": 0, "description": "Ignore the issue until it is seen this many more times." }, "ignoreWindow": { "type": "integer", "maximum": 10080, "minimum": 0, "description": "Window in minutes over which `ignoreCount` is measured. Maximum is 7 days." }, "ignoreUserCount": { "type": "integer", "minimum": 0, "description": "Ignore the issue until it affects this many more users." }, "ignoreUserWindow": { "type": "integer", "maximum": 10080, "minimum": 0, "description": "Window in minutes over which `ignoreUserCount` is measured. Maximum is 7 days." }, "snoozeDuration": { "type": "integer", "minimum": 0, "nullable": true, "description": "Snooze the issue for this many minutes." } } } } } }, "security": [ { "auth_token": [ "event:admin", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "description": "User or team the issues are now assigned to" }, "discard": { "type": "boolean", "description": "Whether the issues were discarded" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has now seen the issues" }, "inbox": { "type": "boolean", "description": "Whether the issues are now in the inbox" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user has now bookmarked the issues" }, "isPublic": { "type": "boolean", "description": "Whether the issues are now shared publicly" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is now subscribed to the issues" }, "merge": { "type": "object", "properties": { "parent": { "type": "string", "description": "ID of the issue the other issues were merged into" }, "children": { "type": "array", "items": { "type": "string" }, "description": "IDs of the issues that were merged into the parent issue" } }, "required": [ "children", "parent" ], "description": "Result of merging the issues: the issue they were merged into and the merged issues" }, "priority": { "type": "string", "description": "New priority of the issues: high, medium or low" }, "shareId": { "type": "string", "description": "ID used in the public share URL. Set when the issue is now shared" }, "status": { "type": "string", "description": "New status of the issues" }, "statusDetails": { "type": "object", "properties": { "inNextRelease": { "type": "boolean", "description": "Whether the issues are resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issues are resolved in" }, "inCommit": { "type": "object", "properties": { "commit": { "type": "string", "description": "SHA of the resolving commit" }, "repository": { "type": "string", "description": "Name of the repository the commit belongs to, as it appears in Sentry" } }, "required": [ "commit", "repository" ], "description": "Commit that resolves the issues" }, "ignoreDuration": { "type": "integer", "description": "Minutes the issues are ignored for" }, "ignoreCount": { "type": "integer", "description": "Number of occurrences, within ignoreWindow minutes, after which the issues stop being ignored" }, "ignoreWindow": { "type": "integer", "description": "Window in minutes for ignoreCount" }, "ignoreUserCount": { "type": "integer", "description": "Number of affected users, within ignoreUserWindow minutes, after which the issues stop being ignored" }, "ignoreUserWindow": { "type": "integer", "description": "Window in minutes for ignoreUserCount" } }, "description": "Details of the new status, such as the release that resolves the issues or when an ignore expires" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "description": "Why the requesting user is now subscribed to the issues" }, "substatus": { "type": "string", "description": "New substatus of the issues, such as ongoing or archived_until_escalating" } } }, "examples": { "ReturnTheUpdateResultsForIssuesInAnOrganization": { "value": { "assignedTo": { "type": "user", "id": "1", "name": "John Doe", "email": "john.doe@example.com" }, "discard": false, "hasSeen": true, "inbox": true, "isBookmarked": false, "isPublic": true, "isSubscribed": true, "merge": { "children": [ "11", "12", "13" ], "parent": "10" }, "priority": "medium", "shareId": "123def456abc", "status": "ignored", "statusDetails": { "ignoreDuration": 100, "ignoreCount": 10, "ignoreWindow": 60, "ignoreUserCount": 10, "ignoreUserWindow": 60, "inNextRelease": false, "inRelease": "1.0.0", "inCommit": { "commit": "123def456abc", "repository": "getsentry/sentry" } }, "subscriptionDetails": { "disabled": false, "reason": "mentioned" }, "substatus": "archived_until_condition_met" }, "summary": "Return the update results for issues in an organization" } } } }, "description": "" }, "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteOrganizationIssues", "description": "Permanently remove the given issues. If IDs are provided, queries and filtering will be ignored. If any IDs are out of scope, the data won't be mutated but the endpoint will still produce a successful response. For example, if no issues were found matching the criteria, a HTTP 204 is returned.", "summary": "Bulk Remove an Organization's Issues", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "id", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "The list of issue IDs to be removed. If not provided, it will attempt to remove the first 1000 issues." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "query", "schema": { "type": "string", "default": "is:unresolved" }, "description": "An optional search query for filtering issues. A default query will apply if no query is set. For all results use this parameter with an empty string." }, { "in": "query", "name": "sort", "schema": { "type": "string", "enum": [ "date", "freq", "inbox", "new", "recommended", "trends", "user" ], "default": "date" }, "description": "The sort order of the view. Options include 'Last Seen' (`date`), 'First Seen' (`new`), 'Trends' (`trends`), 'Events' (`freq`), 'Users' (`user`), 'Date Added' (`inbox`), and 'Recommended' (`recommended`)." } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "event:admin" ] } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/members/": { "get": { "operationId": "listOrganizationMembers", "description": "List all organization members.\n\nResponse includes pending invites that are approved by organization owners or managers but waiting to be accepted by the invitee.", "summary": "List an Organization's Members", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Limit results to members matching the given query. `id, `user.id`, ... are supported prefixes match on: `id`, `user.id`, `email`, `role`, `scope`, `isInvited`, `ssoLinked`, `has2fa`, `hasExternalUsers`. For example, `query=user.id:1234`. An unrecognized field returns no results." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "member:admin", "member:read", "member:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "externalUsers": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested" }, "id": { "type": "string", "description": "Organization member ID" }, "email": { "type": "string", "description": "Email address of the member's user, or the invited email address if they have no account yet" }, "name": { "type": "string", "description": "Display name of the member's user, or their email address if they have no account yet" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "The member's user. Null for invited members without an account, or if the user can't be found" }, "orgRole": { "type": "string", "description": "ID of the member's organization role" }, "pending": { "type": "boolean", "description": "Whether the member has no user account linked yet, as with an invite that hasn't been accepted" }, "expired": { "type": "boolean", "description": "Whether the member's invite has expired" }, "flags": { "type": "object", "properties": { "idp:provisioned": { "type": "boolean", "description": "Whether the member is provisioned and managed through the organization's identity provider (SCIM)" }, "idp:role-restricted": { "type": "boolean", "description": "Whether the member's organization role is set by the identity provider through SCIM" }, "sso:linked": { "type": "boolean", "description": "Whether the member has linked their account to the organization's SSO provider" }, "sso:invalid": { "type": "boolean", "description": "Whether the member's SSO link is invalid" }, "member-limit:restricted": { "type": "boolean", "description": "Whether the member is restricted by the plan's member limit" }, "partnership:restricted": { "type": "boolean", "description": "Whether the member is managed by an active partnership and can't be changed until it ends" } }, "required": [ "idp:provisioned", "idp:role-restricted", "member-limit:restricted", "partnership:restricted", "sso:invalid", "sso:linked" ], "description": "Member flags" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the member was added or invited" }, "inviteStatus": { "enum": [ "approved", "requested_to_be_invited", "requested_to_join", null ], "type": "string", "nullable": true, "description": "Invite status" }, "inviterName": { "type": "string", "nullable": true, "description": "Name of the user who invited the member, or null" } }, "required": [ "dateCreated", "email", "expired", "flags", "id", "inviteStatus", "inviterName", "name", "orgRole", "pending", "user" ] } }, "examples": { "ListOrganizationMembers": { "value": [ { "id": "57377908164", "email": "sirpenguin@antarcticarocks.com", "name": "Sir Penguin", "user": { "id": "280094367316", "name": "Sir Penguin", "username": "sirpenguin@antarcticarocks.com", "email": "sirpenguin@antarcticarocks.com", "avatarUrl": "https://secure.gravatar.com/avatar/16aeb26c5fdba335c7078e9e9ddb5149?s=32&d=mm", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-07-06T21:13:58.375239Z", "lastLogin": "2021-08-02T18:25:00.051182Z", "has2fa": false, "lastActive": "2021-08-02T21:32:18.836829Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "2153450836", "email": "sirpenguin@antarcticarocks.com", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "canReset2fa": true }, "orgRole": "member", "pending": false, "expired": false, "flags": { "idp:provisioned": false, "idp:role-restricted": false, "sso:linked": false, "sso:invalid": false, "member-limit:restricted": false, "partnership:restricted": false }, "dateCreated": "2021-07-06T21:13:01.120263Z", "inviteStatus": "approved", "inviterName": "maininviter@antarcticarocks.com" }, { "id": "57377908165", "email": "rockhopper@antarcticarocks.com", "name": "Rockhopper", "user": null, "orgRole": "member", "pending": true, "expired": false, "flags": { "idp:provisioned": false, "idp:role-restricted": false, "sso:linked": false, "sso:invalid": false, "member-limit:restricted": false, "partnership:restricted": false }, "dateCreated": "2021-07-07T21:13:01.120263Z", "inviteStatus": "approved", "inviterName": "maininviter@antarcticarocks.com" } ], "summary": "List organization members" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "addOrganizationMember", "description": "Add or invite a member to an organization.", "summary": "Add a Member to an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Organizations" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "email": { "type": "string", "format": "email", "description": "The email address to send the invitation to.", "maxLength": 75 }, "role": { "enum": [ "member", "admin", "manager", "owner" ], "type": "string", "default": "member", "description": "Deprecated, use `orgRole`. The organization-level role to assign.\n\n* `member` - Member\n* `admin` - Admin\n* `manager` - Manager\n* `owner` - Owner", "deprecated": true }, "orgRole": { "enum": [ "billing", "member", "manager", "owner", "admin" ], "type": "string", "default": "member", "description": "The organization-level role of the new member. Roles include:\n\n* `billing` - Can manage payment and compliance details.\n* `member` - Can view and act on events, as well as view most other data within the organization.\n* `manager` - Has full management access to all teams and projects. Can also manage\n the organization's membership.\n* `owner` - Has unrestricted access to the organization, its data, and its\n settings. Can add, modify, and delete projects and members, as well as\n make billing and plan changes.\n* `admin` - Can edit global integrations, manage projects, and add/remove teams.\n They automatically assume the Team Admin role for teams they join.\n Note: This role can no longer be assigned in Business and Enterprise plans. Use `TeamRoles` instead.\n " }, "teams": { "type": "array", "items": {}, "description": "Deprecated, use `teamRoles`. Slugs of teams to add the member to.", "deprecated": true }, "teamRoles": { "type": "array", "items": { "type": "object", "additionalProperties": {} }, "nullable": true, "description": "The team and team-roles assigned to the member. Team roles can be either:\n - `contributor` - Can view and act on issues. Depending on organization settings, they can also add team members.\n - `admin` - Has full management access to their team's membership and projects." }, "sendInvite": { "type": "boolean", "writeOnly": true, "default": true, "description": "Whether or not to send an invite notification through email. Defaults to True." }, "reinvite": { "type": "boolean", "description": "Whether or not to re-invite a user who has already been invited to the organization. Defaults to True." }, "regenerate": { "type": "boolean", "description": "Reissue the invite token, invalidating any previously sent invite link." } }, "required": [ "email" ] } } }, "required": true }, "security": [ { "auth_token": [ "member:admin", "member:invite", "member:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "externalUsers": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested" }, "id": { "type": "string", "description": "Organization member ID" }, "email": { "type": "string", "description": "Email address of the member's user, or the invited email address if they have no account yet" }, "name": { "type": "string", "description": "Display name of the member's user, or their email address if they have no account yet" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "The member's user. Null for invited members without an account, or if the user can't be found" }, "orgRole": { "type": "string", "description": "ID of the member's organization role" }, "pending": { "type": "boolean", "description": "Whether the member has no user account linked yet, as with an invite that hasn't been accepted" }, "expired": { "type": "boolean", "description": "Whether the member's invite has expired" }, "flags": { "type": "object", "properties": { "idp:provisioned": { "type": "boolean", "description": "Whether the member is provisioned and managed through the organization's identity provider (SCIM)" }, "idp:role-restricted": { "type": "boolean", "description": "Whether the member's organization role is set by the identity provider through SCIM" }, "sso:linked": { "type": "boolean", "description": "Whether the member has linked their account to the organization's SSO provider" }, "sso:invalid": { "type": "boolean", "description": "Whether the member's SSO link is invalid" }, "member-limit:restricted": { "type": "boolean", "description": "Whether the member is restricted by the plan's member limit" }, "partnership:restricted": { "type": "boolean", "description": "Whether the member is managed by an active partnership and can't be changed until it ends" } }, "required": [ "idp:provisioned", "idp:role-restricted", "member-limit:restricted", "partnership:restricted", "sso:invalid", "sso:linked" ], "description": "Member flags" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the member was added or invited" }, "inviteStatus": { "enum": [ "approved", "requested_to_be_invited", "requested_to_join", null ], "type": "string", "nullable": true, "description": "Invite status" }, "inviterName": { "type": "string", "nullable": true, "description": "Name of the user who invited the member, or null" } }, "required": [ "dateCreated", "email", "expired", "flags", "id", "inviteStatus", "inviterName", "name", "orgRole", "pending", "user" ] }, "examples": { "AddAMemberToAnOrganization": { "value": { "id": "57377908164", "email": "sirpenguin@antarcticarocks.com", "name": "Sir Penguin", "user": { "id": "280094367316", "name": "Sir Penguin", "username": "sirpenguin@antarcticarocks.com", "email": "sirpenguin@antarcticarocks.com", "avatarUrl": "https://secure.gravatar.com/avatar/16aeb26c5fdba335c7078e9e9ddb5149?s=32&d=mm", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-07-06T21:13:58.375239Z", "lastLogin": "2021-08-02T18:25:00.051182Z", "has2fa": false, "lastActive": "2021-08-02T21:32:18.836829Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "2153450836", "email": "sirpenguin@antarcticarocks.com", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "canReset2fa": true }, "orgRole": "member", "pending": false, "expired": false, "flags": { "idp:provisioned": false, "idp:role-restricted": false, "sso:linked": false, "sso:invalid": false, "member-limit:restricted": false, "partnership:restricted": false }, "dateCreated": "2021-07-06T21:13:01.120263Z", "inviteStatus": "approved", "inviterName": "maininviter@antarcticarocks.com" }, "summary": "Add a member to an organization" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "429": { "description": "Too Many Requests" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/members/{member_id}/": { "get": { "operationId": "getOrganizationMember", "description": "Retrieve an organization member's details.\n\nResponse will be a pending invite if it has been approved by organization owners or managers but is waiting to be accepted by the invitee.", "summary": "Retrieve an Organization Member", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "member_id", "schema": { "type": "string" }, "description": "The ID of the organization member.", "required": true } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "member:admin", "member:read", "member:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "externalUsers": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested" }, "role": { "type": "string", "description": "Deprecated. Use orgRole" }, "roleName": { "type": "string", "description": "Deprecated. Name of the member's organization role" }, "id": { "type": "string", "description": "Organization member ID" }, "email": { "type": "string", "description": "Email address of the member's user, or the invited email address if they have no account yet" }, "name": { "type": "string", "description": "Display name of the member's user, or their email address if they have no account yet" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "The member's user. Null for invited members without an account, or if the user can't be found" }, "orgRole": { "type": "string", "description": "ID of the member's organization role" }, "pending": { "type": "boolean", "description": "Whether the member has no user account linked yet, as with an invite that hasn't been accepted" }, "expired": { "type": "boolean", "description": "Whether the member's invite has expired" }, "flags": { "type": "object", "properties": { "idp:provisioned": { "type": "boolean", "description": "Whether the member is provisioned and managed through the organization's identity provider (SCIM)" }, "idp:role-restricted": { "type": "boolean", "description": "Whether the member's organization role is set by the identity provider through SCIM" }, "sso:linked": { "type": "boolean", "description": "Whether the member has linked their account to the organization's SSO provider" }, "sso:invalid": { "type": "boolean", "description": "Whether the member's SSO link is invalid" }, "member-limit:restricted": { "type": "boolean", "description": "Whether the member is restricted by the plan's member limit" }, "partnership:restricted": { "type": "boolean", "description": "Whether the member is managed by an active partnership and can't be changed until it ends" } }, "required": [ "idp:provisioned", "idp:role-restricted", "member-limit:restricted", "partnership:restricted", "sso:invalid", "sso:linked" ], "description": "Member flags" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the member was added or invited" }, "inviteStatus": { "enum": [ "approved", "requested_to_be_invited", "requested_to_join", null ], "type": "string", "nullable": true, "description": "Invite status" }, "inviterName": { "type": "string", "nullable": true, "description": "Name of the user who invited the member, or null" }, "teams": { "type": "array", "items": { "type": "string" }, "description": "Deprecated. Slugs of the active teams the member belongs to. Use teamRoles" }, "teamRoles": { "type": "array", "items": { "type": "object", "properties": { "teamSlug": { "type": "string", "description": "Team slug" }, "role": { "type": "string", "nullable": true, "description": "ID of the member's team role, or null if the member has the minimum team role from their organization role" } }, "required": [ "role", "teamSlug" ] }, "description": "Active teams the member belongs to, with the member's role in each" }, "isOnlyOwner": { "type": "boolean", "description": "Whether the member is the only owner of the organization" }, "orgRoleList": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Role ID, such as member or admin" }, "name": { "type": "string", "description": "Display name of the role" }, "desc": { "type": "string", "description": "Description of what the role can do" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes the role grants in this organization" }, "allowed": { "type": "boolean", "description": "Deprecated alias of isAllowed" }, "isAllowed": { "type": "boolean", "description": "Whether the requesting user can assign this role" }, "isRetired": { "type": "boolean", "description": "Whether the role is retired and shouldn't be assigned to more members" }, "isTeamRolesAllowed": { "type": "boolean", "description": "Whether members with this role can have team-level roles" }, "is_global": { "type": "boolean", "description": "Deprecated alias of isGlobal" }, "isGlobal": { "type": "boolean", "description": "Whether the role gives access to all teams and projects in the organization" }, "minimumTeamRole": { "type": "string", "description": "ID of the lowest team role that members with this organization role hold on every team" } }, "required": [ "allowed", "desc", "id", "isAllowed", "isGlobal", "isRetired", "isTeamRolesAllowed", "is_global", "minimumTeamRole", "name", "scopes" ] }, "description": "Organization roles, with whether the requesting user can assign each one" }, "teamRoleList": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Role ID, such as member or admin" }, "name": { "type": "string", "description": "Display name of the role" }, "desc": { "type": "string", "description": "Description of what the role can do" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes the role grants in this organization" }, "allowed": { "type": "boolean", "description": "Deprecated alias of isAllowed" }, "isAllowed": { "type": "boolean", "description": "Whether the requesting user can assign this role" }, "isRetired": { "type": "boolean", "description": "Whether the role is retired and shouldn't be assigned to more members" }, "isTeamRolesAllowed": { "type": "boolean", "description": "Whether members with this role can have team-level roles" }, "isMinimumRoleFor": { "type": "string", "nullable": true, "description": "ID of the organization role whose members hold at least this team role on every team, or null" } }, "required": [ "allowed", "desc", "id", "isAllowed", "isMinimumRoleFor", "isRetired", "isTeamRolesAllowed", "name", "scopes" ] }, "description": "Team roles available in the organization" } }, "required": [ "dateCreated", "email", "expired", "flags", "id", "inviteStatus", "inviterName", "isOnlyOwner", "name", "orgRole", "orgRoleList", "pending", "teamRoleList", "teamRoles", "teams", "user" ] }, "examples": { "UpdateOrganizationMember": { "value": { "id": "57377908164", "email": "sirpenguin@antarcticarocks.com", "name": "Sir Penguin", "user": { "id": "280094367316", "name": "Sir Penguin", "username": "sirpenguin@antarcticarocks.com", "email": "sirpenguin@antarcticarocks.com", "avatarUrl": "https://secure.gravatar.com/avatar/16aeb26c5fdba335c7078e9e9ddb5149?s=32&d=mm", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-07-06T21:13:58.375239Z", "lastLogin": "2021-08-02T18:25:00.051182Z", "has2fa": false, "lastActive": "2021-08-02T21:32:18.836829Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "2153450836", "email": "sirpenguin@antarcticarocks.com", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "authenticators": [], "canReset2fa": true }, "role": "member", "orgRole": "member", "roleName": "Member", "pending": false, "expired": false, "flags": { "idp:provisioned": false, "idp:role-restricted": false, "sso:linked": false, "sso:invalid": false, "member-limit:restricted": false, "partnership:restricted": false }, "dateCreated": "2021-07-06T21:13:01.120263Z", "inviteStatus": "approved", "inviterName": "maininviter@antarcticarocks.com", "teams": [ "cool-team", "ancient-gabelers" ], "teamRoles": [ { "teamSlug": "ancient-gabelers", "role": "admin" }, { "teamSlug": "powerful-abolitionist", "role": "contributor" } ], "isOnlyOwner": false, "orgRoleList": [ { "id": "billing", "name": "Billing", "desc": "Can manage subscription and billing details.", "scopes": [ "org:billing" ], "allowed": true, "isAllowed": true, "isRetired": false, "is_global": false, "isGlobal": false, "isTeamRolesAllowed": false, "minimumTeamRole": "contributor" }, { "id": "member", "name": "Member", "desc": "Members can view and act on events, as well as view most other data within the organization.", "scopes": [ "team:read", "project:releases", "org:read", "event:read", "alerts:write", "member:read", "alerts:read", "event:admin", "project:read", "event:write" ], "allowed": true, "isAllowed": true, "isRetired": false, "is_global": false, "isGlobal": false, "isTeamRolesAllowed": true, "minimumTeamRole": "contributor" }, { "id": "admin", "name": "Admin", "desc": "Admin privileges on any teams of which they're a member. They can create new teams and projects, as well as remove teams and projects on which they already hold membership (or all teams, if open membership is enabled). Additionally, they can manage memberships of teams that they are members of. They cannot invite members to the organization.", "scopes": [ "team:admin", "org:integrations", "project:admin", "team:read", "project:releases", "org:read", "team:write", "event:read", "alerts:write", "member:read", "alerts:read", "event:admin", "project:read", "event:write", "project:write" ], "allowed": true, "isAllowed": true, "isRetired": true, "is_global": false, "isGlobal": false, "isTeamRolesAllowed": true, "minimumTeamRole": "admin" }, { "id": "manager", "name": "Manager", "desc": "Gains admin access on all teams as well as the ability to add and remove members.", "scopes": [ "team:admin", "org:integrations", "project:releases", "team:write", "member:read", "org:write", "project:write", "project:admin", "team:read", "org:read", "event:read", "member:write", "alerts:write", "alerts:read", "event:admin", "project:read", "event:write", "member:admin" ], "allowed": true, "isAllowed": true, "isRetired": false, "is_global": true, "isGlobal": true, "isTeamRolesAllowed": true, "minimumTeamRole": "admin" }, { "id": "owner", "name": "Owner", "desc": "Unrestricted access to the organization, its data, and its settings. Can add, modify, and delete projects and members, as well as make billing and plan changes.", "scopes": [ "team:admin", "org:integrations", "project:releases", "org:admin", "team:write", "member:read", "org:write", "project:write", "project:admin", "team:read", "org:read", "event:read", "member:write", "alerts:write", "org:billing", "alerts:read", "event:admin", "project:read", "event:write", "member:admin" ], "allowed": true, "isAllowed": true, "isRetired": false, "is_global": true, "isGlobal": true, "isTeamRolesAllowed": true, "minimumTeamRole": "admin" } ], "teamRoleList": [ { "id": "contributor", "name": "Contributor", "desc": "Contributors can view and act on events, as well as view most other data within the team's projects.", "scopes": [ "project:read", "project:releases", "member:read", "team:read", "event:read", "alerts:read", "event:write", "org:read" ], "allowed": false, "isAllowed": false, "isRetired": false, "isTeamRolesAllowed": true, "isMinimumRoleFor": null }, { "id": "admin", "name": "Team Admin", "desc": "Admin privileges on the team. They can create and remove projects, and can manage the team's memberships.", "scopes": [ "project:read", "project:releases", "member:read", "event:admin", "team:write", "project:admin", "team:read", "org:integrations", "alerts:write", "team:admin", "project:write", "event:read", "alerts:read", "event:write", "org:read" ], "allowed": false, "isAllowed": false, "isRetired": false, "isTeamRolesAllowed": true, "isMinimumRoleFor": "admin" } ] }, "summary": "Update organization member" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateOrganizationMember", "description": "Update a member's [organization-level](https://docs.sentry.io/organization/membership/#organization-level-roles) and [team-level](https://docs.sentry.io/organization/membership/#team-level-roles) roles.\n\nNote that for changing organization-roles, this endpoint is restricted to\n[user auth tokens](https://docs.sentry.io/account/auth-tokens/#user-auth-tokens).\nAdditionally, both the original and desired organization role must have\nthe same or lower permissions than the role of the organization user making the request\n\nFor example, an organization Manager may change someone's role from\nMember to Manager, but not to Owner.", "summary": "Update an Organization Member's Roles", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "member_id", "schema": { "type": "string" }, "description": "The ID of the member to update.", "required": true } ], "tags": [ "Organizations" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "orgRole": { "enum": [ "billing", "member", "manager", "owner", "admin" ], "type": "string", "description": "The organization role of the member. The options are:\n\n* `billing` - Can manage payment and compliance details.\n* `member` - Can view and act on events, as well as view most other data within the organization.\n* `manager` - Has full management access to all teams and projects. Can also manage\n the organization's membership.\n* `owner` - Has unrestricted access to the organization, its data, and its\n settings. Can add, modify, and delete projects and members, as well as\n make billing and plan changes.\n* `admin` - Can edit global integrations, manage projects, and add/remove teams.\n They automatically assume the Team Admin role for teams they join.\n Note: This role can no longer be assigned in Business and Enterprise plans. Use `TeamRoles` instead.\n " }, "teamRoles": { "type": "array", "items": { "type": "object", "additionalProperties": {} }, "nullable": true, "description": "\nConfigures the team role of the member. The two roles are:\n- `contributor` - Can view and act on issues. Depending on organization settings, they can also add team members.\n- `admin` - Has full management access to their team's membership and projects.\n```json\n{\n \"teamRoles\": [\n {\n \"teamSlug\": \"ancient-gabelers\",\n \"role\": \"admin\"\n },\n {\n \"teamSlug\": \"powerful-abolitionist\",\n \"role\": \"contributor\"\n }\n ]\n}\n```\n" } } } } } }, "security": [ { "auth_token": [ "member:admin", "member:invite", "member:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "externalUsers": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested" }, "role": { "type": "string", "description": "Deprecated. Use orgRole" }, "roleName": { "type": "string", "description": "Deprecated. Name of the member's organization role" }, "id": { "type": "string", "description": "Organization member ID" }, "email": { "type": "string", "description": "Email address of the member's user, or the invited email address if they have no account yet" }, "name": { "type": "string", "description": "Display name of the member's user, or their email address if they have no account yet" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "The member's user. Null for invited members without an account, or if the user can't be found" }, "orgRole": { "type": "string", "description": "ID of the member's organization role" }, "pending": { "type": "boolean", "description": "Whether the member has no user account linked yet, as with an invite that hasn't been accepted" }, "expired": { "type": "boolean", "description": "Whether the member's invite has expired" }, "flags": { "type": "object", "properties": { "idp:provisioned": { "type": "boolean", "description": "Whether the member is provisioned and managed through the organization's identity provider (SCIM)" }, "idp:role-restricted": { "type": "boolean", "description": "Whether the member's organization role is set by the identity provider through SCIM" }, "sso:linked": { "type": "boolean", "description": "Whether the member has linked their account to the organization's SSO provider" }, "sso:invalid": { "type": "boolean", "description": "Whether the member's SSO link is invalid" }, "member-limit:restricted": { "type": "boolean", "description": "Whether the member is restricted by the plan's member limit" }, "partnership:restricted": { "type": "boolean", "description": "Whether the member is managed by an active partnership and can't be changed until it ends" } }, "required": [ "idp:provisioned", "idp:role-restricted", "member-limit:restricted", "partnership:restricted", "sso:invalid", "sso:linked" ], "description": "Member flags" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the member was added or invited" }, "inviteStatus": { "enum": [ "approved", "requested_to_be_invited", "requested_to_join", null ], "type": "string", "nullable": true, "description": "Invite status" }, "inviterName": { "type": "string", "nullable": true, "description": "Name of the user who invited the member, or null" }, "teams": { "type": "array", "items": { "type": "string" }, "description": "Deprecated. Slugs of the active teams the member belongs to. Use teamRoles" }, "teamRoles": { "type": "array", "items": { "type": "object", "properties": { "teamSlug": { "type": "string", "description": "Team slug" }, "role": { "type": "string", "nullable": true, "description": "ID of the member's team role, or null if the member has the minimum team role from their organization role" } }, "required": [ "role", "teamSlug" ] }, "description": "Active teams the member belongs to, with the member's role in each" }, "isOnlyOwner": { "type": "boolean", "description": "Whether the member is the only owner of the organization" }, "orgRoleList": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Role ID, such as member or admin" }, "name": { "type": "string", "description": "Display name of the role" }, "desc": { "type": "string", "description": "Description of what the role can do" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes the role grants in this organization" }, "allowed": { "type": "boolean", "description": "Deprecated alias of isAllowed" }, "isAllowed": { "type": "boolean", "description": "Whether the requesting user can assign this role" }, "isRetired": { "type": "boolean", "description": "Whether the role is retired and shouldn't be assigned to more members" }, "isTeamRolesAllowed": { "type": "boolean", "description": "Whether members with this role can have team-level roles" }, "is_global": { "type": "boolean", "description": "Deprecated alias of isGlobal" }, "isGlobal": { "type": "boolean", "description": "Whether the role gives access to all teams and projects in the organization" }, "minimumTeamRole": { "type": "string", "description": "ID of the lowest team role that members with this organization role hold on every team" } }, "required": [ "allowed", "desc", "id", "isAllowed", "isGlobal", "isRetired", "isTeamRolesAllowed", "is_global", "minimumTeamRole", "name", "scopes" ] }, "description": "Organization roles, with whether the requesting user can assign each one" }, "teamRoleList": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Role ID, such as member or admin" }, "name": { "type": "string", "description": "Display name of the role" }, "desc": { "type": "string", "description": "Description of what the role can do" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes the role grants in this organization" }, "allowed": { "type": "boolean", "description": "Deprecated alias of isAllowed" }, "isAllowed": { "type": "boolean", "description": "Whether the requesting user can assign this role" }, "isRetired": { "type": "boolean", "description": "Whether the role is retired and shouldn't be assigned to more members" }, "isTeamRolesAllowed": { "type": "boolean", "description": "Whether members with this role can have team-level roles" }, "isMinimumRoleFor": { "type": "string", "nullable": true, "description": "ID of the organization role whose members hold at least this team role on every team, or null" } }, "required": [ "allowed", "desc", "id", "isAllowed", "isMinimumRoleFor", "isRetired", "isTeamRolesAllowed", "name", "scopes" ] }, "description": "Team roles available in the organization" } }, "required": [ "dateCreated", "email", "expired", "flags", "id", "inviteStatus", "inviterName", "isOnlyOwner", "name", "orgRole", "orgRoleList", "pending", "teamRoleList", "teamRoles", "teams", "user" ] }, "examples": { "UpdateOrganizationMember": { "value": { "id": "57377908164", "email": "sirpenguin@antarcticarocks.com", "name": "Sir Penguin", "user": { "id": "280094367316", "name": "Sir Penguin", "username": "sirpenguin@antarcticarocks.com", "email": "sirpenguin@antarcticarocks.com", "avatarUrl": "https://secure.gravatar.com/avatar/16aeb26c5fdba335c7078e9e9ddb5149?s=32&d=mm", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-07-06T21:13:58.375239Z", "lastLogin": "2021-08-02T18:25:00.051182Z", "has2fa": false, "lastActive": "2021-08-02T21:32:18.836829Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "2153450836", "email": "sirpenguin@antarcticarocks.com", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "authenticators": [], "canReset2fa": true }, "role": "member", "orgRole": "member", "roleName": "Member", "pending": false, "expired": false, "flags": { "idp:provisioned": false, "idp:role-restricted": false, "sso:linked": false, "sso:invalid": false, "member-limit:restricted": false, "partnership:restricted": false }, "dateCreated": "2021-07-06T21:13:01.120263Z", "inviteStatus": "approved", "inviterName": "maininviter@antarcticarocks.com", "teams": [ "cool-team", "ancient-gabelers" ], "teamRoles": [ { "teamSlug": "ancient-gabelers", "role": "admin" }, { "teamSlug": "powerful-abolitionist", "role": "contributor" } ], "isOnlyOwner": false, "orgRoleList": [ { "id": "billing", "name": "Billing", "desc": "Can manage subscription and billing details.", "scopes": [ "org:billing" ], "allowed": true, "isAllowed": true, "isRetired": false, "is_global": false, "isGlobal": false, "isTeamRolesAllowed": false, "minimumTeamRole": "contributor" }, { "id": "member", "name": "Member", "desc": "Members can view and act on events, as well as view most other data within the organization.", "scopes": [ "team:read", "project:releases", "org:read", "event:read", "alerts:write", "member:read", "alerts:read", "event:admin", "project:read", "event:write" ], "allowed": true, "isAllowed": true, "isRetired": false, "is_global": false, "isGlobal": false, "isTeamRolesAllowed": true, "minimumTeamRole": "contributor" }, { "id": "admin", "name": "Admin", "desc": "Admin privileges on any teams of which they're a member. They can create new teams and projects, as well as remove teams and projects on which they already hold membership (or all teams, if open membership is enabled). Additionally, they can manage memberships of teams that they are members of. They cannot invite members to the organization.", "scopes": [ "team:admin", "org:integrations", "project:admin", "team:read", "project:releases", "org:read", "team:write", "event:read", "alerts:write", "member:read", "alerts:read", "event:admin", "project:read", "event:write", "project:write" ], "allowed": true, "isAllowed": true, "isRetired": true, "is_global": false, "isGlobal": false, "isTeamRolesAllowed": true, "minimumTeamRole": "admin" }, { "id": "manager", "name": "Manager", "desc": "Gains admin access on all teams as well as the ability to add and remove members.", "scopes": [ "team:admin", "org:integrations", "project:releases", "team:write", "member:read", "org:write", "project:write", "project:admin", "team:read", "org:read", "event:read", "member:write", "alerts:write", "alerts:read", "event:admin", "project:read", "event:write", "member:admin" ], "allowed": true, "isAllowed": true, "isRetired": false, "is_global": true, "isGlobal": true, "isTeamRolesAllowed": true, "minimumTeamRole": "admin" }, { "id": "owner", "name": "Owner", "desc": "Unrestricted access to the organization, its data, and its settings. Can add, modify, and delete projects and members, as well as make billing and plan changes.", "scopes": [ "team:admin", "org:integrations", "project:releases", "org:admin", "team:write", "member:read", "org:write", "project:write", "project:admin", "team:read", "org:read", "event:read", "member:write", "alerts:write", "org:billing", "alerts:read", "event:admin", "project:read", "event:write", "member:admin" ], "allowed": true, "isAllowed": true, "isRetired": false, "is_global": true, "isGlobal": true, "isTeamRolesAllowed": true, "minimumTeamRole": "admin" } ], "teamRoleList": [ { "id": "contributor", "name": "Contributor", "desc": "Contributors can view and act on events, as well as view most other data within the team's projects.", "scopes": [ "project:read", "project:releases", "member:read", "team:read", "event:read", "alerts:read", "event:write", "org:read" ], "allowed": false, "isAllowed": false, "isRetired": false, "isTeamRolesAllowed": true, "isMinimumRoleFor": null }, { "id": "admin", "name": "Team Admin", "desc": "Admin privileges on the team. They can create and remove projects, and can manage the team's memberships.", "scopes": [ "project:read", "project:releases", "member:read", "event:admin", "team:write", "project:admin", "team:read", "org:integrations", "alerts:write", "team:admin", "project:write", "event:read", "alerts:read", "event:write", "org:read" ], "allowed": false, "isAllowed": false, "isRetired": false, "isTeamRolesAllowed": true, "isMinimumRoleFor": "admin" } ] }, "summary": "Update organization member" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "429": { "description": "Too Many Requests" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteOrganizationMember", "description": "Remove an organization member.", "summary": "Delete an Organization Member", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "member_id", "schema": { "type": "string" }, "description": "The ID of the member to delete.", "required": true } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "member:admin", "member:read", "member:write" ] } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/members/{member_id}/teams/{team_id_or_slug}/": { "post": { "operationId": "addOrganizationMemberTeam", "description": "This request can return various success codes depending on the context of the team:\n- **`201`**: The member has been successfully added.\n- **`202`**: The member needs permission to join the team and an access request\nhas been generated.\n- **`204`**: The member is already on the team.\n\nIf the team is provisioned through an identity provider, the member cannot join the\nteam through Sentry.\n\nNote the permission scopes vary depending on the organization setting `\"Open Membership\"`\nand the type of authorization token. The following table outlines the accepted scopes.\n\n\n \n \n \n \n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n
Open Membership
OnOff
Internal Integration Token\n
    \n
  • • org:read
  • \n
\n
\n
    \n
  • • org:write
  • \n
  • • team:write
  • \n
\n
User Auth Token\n
    \n
  • • org:read
  • \n
\n
\n
    \n
  • • org:read*
  • \n
  • • org:write
  • \n
  • • org:read +
  • \n
  •    team:write**
  • \n
\n
\n\n\n*Organization members are restricted to this scope. When sending a request, it will always\nreturn a 202 and request an invite to the team.\n\n\n\\*\\*Team Admins must have both **`org:read`** and **`team:write`** scopes in their user\nauthorization token to add members to their teams.", "summary": "Add an Organization Member to a Team", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "member_id", "schema": { "type": "string" }, "description": "The ID of the organization member to add to the team", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true } ], "tags": [ "Teams" ], "security": [ { "auth_token": [ "org:read", "org:write", "team:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Team ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Team slug, unique within the organization" }, "name": { "type": "string", "description": "Display name of the team" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the team was created (ISO 8601)" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of the team" }, "teamRole": { "type": "string", "nullable": true, "description": "The requesting user's role in the team" }, "flags": { "type": "object", "additionalProperties": { "type": "boolean" }, "description": "Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the team through their team role. Empty if the user has no access" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams" }, "isPending": { "type": "boolean", "description": "Whether the requesting user has a pending request to join the team" }, "memberCount": { "type": "integer", "description": "Number of members in the team" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Team avatar" } }, "required": [ "access", "avatar", "dateCreated", "flags", "hasAccess", "id", "isMember", "isPending", "memberCount", "name", "slug", "teamRole" ] }, "examples": { "Join,RequestAccessToOrAddAMemberToATeam": { "value": { "id": "4502349234123", "slug": "ancient-gabelers", "name": "Ancient Gabelers", "dateCreated": "2023-05-31T19:47:53.621181Z", "isMember": true, "teamRole": "contributor", "flags": { "idp:provisioned": false }, "access": [ "alerts:read", "event:write", "project:read", "team:read", "member:read", "project:releases", "event:read", "org:read" ], "hasAccess": true, "isPending": false, "memberCount": 3, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null } }, "summary": "Join, request access to or add a member to a team" } } } }, "description": "" }, "202": { "description": "Accepted" }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "This team is managed through your organization's identity provider" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true }, "put": { "operationId": "updateOrganizationMemberTeam", "description": "The relevant organization member must already be a part of the team.\n\nNote that for organization admins, managers, and owners, they are\nautomatically granted a minimum team role of `admin` on all teams they\nare part of. Read more about [team roles](https://docs.sentry.io/product/teams/roles/).", "summary": "Update an Organization Member's Team Role", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "member_id", "schema": { "type": "string" }, "description": "The ID of the organization member to change", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true } ], "tags": [ "Teams" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "teamRole": { "enum": [ "contributor", "admin" ], "type": "string", "default": "contributor", "description": "The team-level role to switch to. Valid roles include:\n\n* `contributor` - Contributors can view and act on events, as well as view most other data within the team's projects.\n* `admin` - Admin privileges on the team. They can create and remove projects, and can manage the team's memberships." } } } } } }, "security": [ { "auth_token": [ "member:admin", "member:read", "member:write", "org:admin", "org:read", "org:write", "team:admin", "team:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "isActive": { "type": "boolean", "description": "Whether the team membership is active. An inactive membership removes the team from the member's default list, but the member can rejoin without a request" }, "teamRole": { "enum": [ "contributor", "admin" ], "type": "string", "description": "ID of the member's team role" } }, "required": [ "isActive", "teamRole" ] }, "examples": { "UpdateATeamRole": { "value": { "isActive": true, "teamRole": "admin" }, "summary": "Update a Team Role" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteOrganizationMemberTeam", "description": "Delete an organization member from a team.\n\nNote the permission scopes vary depending on the type of authorization token. The following\ntable outlines the accepted scopes.\n\n \n \n \n \n \n \n \n \n
Org Auth Token\n
    \n
  • • org:write
  • \n
  • • org:admin
  • \n
  • • team:admin
  • \n
\n
User Auth Token\n
    \n
  • • org:read*
  • \n
  • • org:write
  • \n
  • • org:admin
  • \n
  • • team:admin
  • \n
  • • org:read + team:admin**
  • \n
\n
\n\n\n\\***`org:read`** can only be used to remove yourself from the teams you are a member of.\n\n\n\\*\\*Team Admins must have both **`org:read`** and **`team:admin`** scopes in their user\nauthorization token to delete members from their teams.", "summary": "Delete an Organization Member from a Team", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "member_id", "schema": { "type": "string" }, "description": "The ID of the organization member to delete from the team", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true } ], "tags": [ "Teams" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write", "team:admin" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Team ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Team slug, unique within the organization" }, "name": { "type": "string", "description": "Display name of the team" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the team was created (ISO 8601)" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of the team" }, "teamRole": { "type": "string", "nullable": true, "description": "The requesting user's role in the team" }, "flags": { "type": "object", "additionalProperties": { "type": "boolean" }, "description": "Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the team through their team role. Empty if the user has no access" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams" }, "isPending": { "type": "boolean", "description": "Whether the requesting user has a pending request to join the team" }, "memberCount": { "type": "integer", "description": "Number of members in the team" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Team avatar" } }, "required": [ "access", "avatar", "dateCreated", "flags", "hasAccess", "id", "isMember", "isPending", "memberCount", "name", "slug", "teamRole" ] }, "examples": { "RemoveAMemberFromATeam": { "value": { "id": "4502349234123", "slug": "ancient-gabelers", "name": "Ancient Gabelers", "dateCreated": "2023-05-31T19:47:53.621181Z", "isMember": false, "teamRole": null, "flags": { "idp:provisioned": false }, "access": [ "alerts:read", "event:write", "project:read", "team:read", "member:read", "project:releases", "event:read", "org:read" ], "hasAccess": true, "isPending": false, "memberCount": 3, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null } }, "summary": "Remove a member from a team" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "This team is managed through your organization's identity provider" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true } }, "/organizations/{organization_id_or_slug}/monitors/": { "get": { "operationId": "listOrganizationMonitors", "description": "Lists monitors, including nested monitor environments. May be filtered to a project or environment.", "summary": "Retrieve Monitors for an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "owner", "schema": { "type": "string" }, "description": "The owner of the monitor, in the format `user:id` or `team:id`. May be specified multiple times." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Crons" ], "security": [ { "auth_token": [ "alerts:read", "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createOrganizationMonitor", "description": "Create a new monitor.", "summary": "Create a Monitor", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Crons" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "project": { "type": "string", "description": "The project ID or slug to associate the monitor to." }, "name": { "type": "string", "description": "Name of the monitor. Used for notifications. If not set the slug will be derived from your monitor name.", "maxLength": 128 }, "config": { "allOf": [ { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Currently supports \"crontab\" or \"interval\"\n\n* `crontab`\n* `interval`" }, "schedule": { "description": "Varies depending on the schedule_type. Is either a crontab string, or a 2 element tuple for intervals (e.g. [1, 'day'])" }, "checkin_margin": { "type": "integer", "maximum": 40320, "minimum": 1, "nullable": true, "description": "How long (in minutes) after the expected checkin time will we wait until we consider the checkin to have been missed." }, "max_runtime": { "type": "integer", "maximum": 10080, "minimum": 1, "nullable": true, "description": "How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed. Maximum 10080 (7 days)." }, "timezone": { "enum": [ "Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Asmera", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Timbuktu", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/ComodRivadavia", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Atka", "America/Bahia", "America/Bahia_Banderas", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Buenos_Aires", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Catamarca", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Coral_Harbour", "America/Cordoba", "America/Costa_Rica", "America/Coyhaique", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson", "America/Dawson_Creek", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Ensenada", "America/Fort_Nelson", "America/Fort_Wayne", "America/Fortaleza", "America/Glace_Bay", "America/Godthab", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Indianapolis", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Jujuy", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Knox_IN", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Louisville", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Mendoza", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montreal", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nipigon", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Pangnirtung", "America/Paramaribo", "America/Phoenix", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Acre", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rainy_River", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Rosario", "America/Santa_Isabel", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Shiprock", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Thunder_Bay", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Virgin", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "America/Yellowknife", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/South_Pole", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Ashkhabad", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Calcutta", "Asia/Chita", "Asia/Choibalsan", "Asia/Chongqing", "Asia/Chungking", "Asia/Colombo", "Asia/Dacca", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Harbin", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Istanbul", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kashgar", "Asia/Kathmandu", "Asia/Katmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macao", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Rangoon", "Asia/Riyadh", "Asia/Saigon", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Tel_Aviv", "Asia/Thimbu", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ujung_Pandang", "Asia/Ulaanbaatar", "Asia/Ulan_Bator", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faeroe", "Atlantic/Faroe", "Atlantic/Jan_Mayen", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/ACT", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Canberra", "Australia/Currie", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/LHI", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/NSW", "Australia/North", "Australia/Perth", "Australia/Queensland", "Australia/South", "Australia/Sydney", "Australia/Tasmania", "Australia/Victoria", "Australia/West", "Australia/Yancowinna", "Brazil/Acre", "Brazil/DeNoronha", "Brazil/East", "Brazil/West", "CET", "CST6CDT", "Canada/Atlantic", "Canada/Central", "Canada/Eastern", "Canada/Mountain", "Canada/Newfoundland", "Canada/Pacific", "Canada/Saskatchewan", "Canada/Yukon", "Chile/Continental", "Chile/EasterIsland", "Cuba", "EET", "EST", "EST5EDT", "Egypt", "Eire", "Etc/GMT", "Etc/GMT+0", "Etc/GMT+1", "Etc/GMT+10", "Etc/GMT+11", "Etc/GMT+12", "Etc/GMT+2", "Etc/GMT+3", "Etc/GMT+4", "Etc/GMT+5", "Etc/GMT+6", "Etc/GMT+7", "Etc/GMT+8", "Etc/GMT+9", "Etc/GMT-0", "Etc/GMT-1", "Etc/GMT-10", "Etc/GMT-11", "Etc/GMT-12", "Etc/GMT-13", "Etc/GMT-14", "Etc/GMT-2", "Etc/GMT-3", "Etc/GMT-4", "Etc/GMT-5", "Etc/GMT-6", "Etc/GMT-7", "Etc/GMT-8", "Etc/GMT-9", "Etc/GMT0", "Etc/Greenwich", "Etc/UCT", "Etc/UTC", "Etc/Universal", "Etc/Zulu", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belfast", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kiev", "Europe/Kirov", "Europe/Kyiv", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Nicosia", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Tiraspol", "Europe/Ulyanovsk", "Europe/Uzhgorod", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zaporozhye", "Europe/Zurich", "GB", "GB-Eire", "GMT", "GMT+0", "GMT-0", "GMT0", "Greenwich", "HST", "Hongkong", "Iceland", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Iran", "Israel", "Jamaica", "Japan", "Kwajalein", "Libya", "MET", "MST", "MST7MDT", "Mexico/BajaNorte", "Mexico/BajaSur", "Mexico/General", "NZ", "NZ-CHAT", "Navajo", "PRC", "PST8PDT", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Enderbury", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Johnston", "Pacific/Kanton", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Ponape", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Samoa", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Truk", "Pacific/Wake", "Pacific/Wallis", "Pacific/Yap", "Poland", "Portugal", "ROC", "ROK", "Singapore", "Turkey", "UCT", "US/Alaska", "US/Aleutian", "US/Arizona", "US/Central", "US/East-Indiana", "US/Eastern", "US/Hawaii", "US/Indiana-Starke", "US/Michigan", "US/Mountain", "US/Pacific", "US/Samoa", "UTC", "Universal", "W-SU", "WET", "Zulu", "localtime", "" ], "type": "string", "description": "tz database style timezone string\n\n* `Africa/Abidjan`\n* `Africa/Accra`\n* `Africa/Addis_Ababa`\n* `Africa/Algiers`\n* `Africa/Asmara`\n* `Africa/Asmera`\n* `Africa/Bamako`\n* `Africa/Bangui`\n* `Africa/Banjul`\n* `Africa/Bissau`\n* `Africa/Blantyre`\n* `Africa/Brazzaville`\n* `Africa/Bujumbura`\n* `Africa/Cairo`\n* `Africa/Casablanca`\n* `Africa/Ceuta`\n* `Africa/Conakry`\n* `Africa/Dakar`\n* `Africa/Dar_es_Salaam`\n* `Africa/Djibouti`\n* `Africa/Douala`\n* `Africa/El_Aaiun`\n* `Africa/Freetown`\n* `Africa/Gaborone`\n* `Africa/Harare`\n* `Africa/Johannesburg`\n* `Africa/Juba`\n* `Africa/Kampala`\n* `Africa/Khartoum`\n* `Africa/Kigali`\n* `Africa/Kinshasa`\n* `Africa/Lagos`\n* `Africa/Libreville`\n* `Africa/Lome`\n* `Africa/Luanda`\n* `Africa/Lubumbashi`\n* `Africa/Lusaka`\n* `Africa/Malabo`\n* `Africa/Maputo`\n* `Africa/Maseru`\n* `Africa/Mbabane`\n* `Africa/Mogadishu`\n* `Africa/Monrovia`\n* `Africa/Nairobi`\n* `Africa/Ndjamena`\n* `Africa/Niamey`\n* `Africa/Nouakchott`\n* `Africa/Ouagadougou`\n* `Africa/Porto-Novo`\n* `Africa/Sao_Tome`\n* `Africa/Timbuktu`\n* `Africa/Tripoli`\n* `Africa/Tunis`\n* `Africa/Windhoek`\n* `America/Adak`\n* `America/Anchorage`\n* `America/Anguilla`\n* `America/Antigua`\n* `America/Araguaina`\n* `America/Argentina/Buenos_Aires`\n* `America/Argentina/Catamarca`\n* `America/Argentina/ComodRivadavia`\n* `America/Argentina/Cordoba`\n* `America/Argentina/Jujuy`\n* `America/Argentina/La_Rioja`\n* `America/Argentina/Mendoza`\n* `America/Argentina/Rio_Gallegos`\n* `America/Argentina/Salta`\n* `America/Argentina/San_Juan`\n* `America/Argentina/San_Luis`\n* `America/Argentina/Tucuman`\n* `America/Argentina/Ushuaia`\n* `America/Aruba`\n* `America/Asuncion`\n* `America/Atikokan`\n* `America/Atka`\n* `America/Bahia`\n* `America/Bahia_Banderas`\n* `America/Barbados`\n* `America/Belem`\n* `America/Belize`\n* `America/Blanc-Sablon`\n* `America/Boa_Vista`\n* `America/Bogota`\n* `America/Boise`\n* `America/Buenos_Aires`\n* `America/Cambridge_Bay`\n* `America/Campo_Grande`\n* `America/Cancun`\n* `America/Caracas`\n* `America/Catamarca`\n* `America/Cayenne`\n* `America/Cayman`\n* `America/Chicago`\n* `America/Chihuahua`\n* `America/Ciudad_Juarez`\n* `America/Coral_Harbour`\n* `America/Cordoba`\n* `America/Costa_Rica`\n* `America/Coyhaique`\n* `America/Creston`\n* `America/Cuiaba`\n* `America/Curacao`\n* `America/Danmarkshavn`\n* `America/Dawson`\n* `America/Dawson_Creek`\n* `America/Denver`\n* `America/Detroit`\n* `America/Dominica`\n* `America/Edmonton`\n* `America/Eirunepe`\n* `America/El_Salvador`\n* `America/Ensenada`\n* `America/Fort_Nelson`\n* `America/Fort_Wayne`\n* `America/Fortaleza`\n* `America/Glace_Bay`\n* `America/Godthab`\n* `America/Goose_Bay`\n* `America/Grand_Turk`\n* `America/Grenada`\n* `America/Guadeloupe`\n* `America/Guatemala`\n* `America/Guayaquil`\n* `America/Guyana`\n* `America/Halifax`\n* `America/Havana`\n* `America/Hermosillo`\n* `America/Indiana/Indianapolis`\n* `America/Indiana/Knox`\n* `America/Indiana/Marengo`\n* `America/Indiana/Petersburg`\n* `America/Indiana/Tell_City`\n* `America/Indiana/Vevay`\n* `America/Indiana/Vincennes`\n* `America/Indiana/Winamac`\n* `America/Indianapolis`\n* `America/Inuvik`\n* `America/Iqaluit`\n* `America/Jamaica`\n* `America/Jujuy`\n* `America/Juneau`\n* `America/Kentucky/Louisville`\n* `America/Kentucky/Monticello`\n* `America/Knox_IN`\n* `America/Kralendijk`\n* `America/La_Paz`\n* `America/Lima`\n* `America/Los_Angeles`\n* `America/Louisville`\n* `America/Lower_Princes`\n* `America/Maceio`\n* `America/Managua`\n* `America/Manaus`\n* `America/Marigot`\n* `America/Martinique`\n* `America/Matamoros`\n* `America/Mazatlan`\n* `America/Mendoza`\n* `America/Menominee`\n* `America/Merida`\n* `America/Metlakatla`\n* `America/Mexico_City`\n* `America/Miquelon`\n* `America/Moncton`\n* `America/Monterrey`\n* `America/Montevideo`\n* `America/Montreal`\n* `America/Montserrat`\n* `America/Nassau`\n* `America/New_York`\n* `America/Nipigon`\n* `America/Nome`\n* `America/Noronha`\n* `America/North_Dakota/Beulah`\n* `America/North_Dakota/Center`\n* `America/North_Dakota/New_Salem`\n* `America/Nuuk`\n* `America/Ojinaga`\n* `America/Panama`\n* `America/Pangnirtung`\n* `America/Paramaribo`\n* `America/Phoenix`\n* `America/Port-au-Prince`\n* `America/Port_of_Spain`\n* `America/Porto_Acre`\n* `America/Porto_Velho`\n* `America/Puerto_Rico`\n* `America/Punta_Arenas`\n* `America/Rainy_River`\n* `America/Rankin_Inlet`\n* `America/Recife`\n* `America/Regina`\n* `America/Resolute`\n* `America/Rio_Branco`\n* `America/Rosario`\n* `America/Santa_Isabel`\n* `America/Santarem`\n* `America/Santiago`\n* `America/Santo_Domingo`\n* `America/Sao_Paulo`\n* `America/Scoresbysund`\n* `America/Shiprock`\n* `America/Sitka`\n* `America/St_Barthelemy`\n* `America/St_Johns`\n* `America/St_Kitts`\n* `America/St_Lucia`\n* `America/St_Thomas`\n* `America/St_Vincent`\n* `America/Swift_Current`\n* `America/Tegucigalpa`\n* `America/Thule`\n* `America/Thunder_Bay`\n* `America/Tijuana`\n* `America/Toronto`\n* `America/Tortola`\n* `America/Vancouver`\n* `America/Virgin`\n* `America/Whitehorse`\n* `America/Winnipeg`\n* `America/Yakutat`\n* `America/Yellowknife`\n* `Antarctica/Casey`\n* `Antarctica/Davis`\n* `Antarctica/DumontDUrville`\n* `Antarctica/Macquarie`\n* `Antarctica/Mawson`\n* `Antarctica/McMurdo`\n* `Antarctica/Palmer`\n* `Antarctica/Rothera`\n* `Antarctica/South_Pole`\n* `Antarctica/Syowa`\n* `Antarctica/Troll`\n* `Antarctica/Vostok`\n* `Arctic/Longyearbyen`\n* `Asia/Aden`\n* `Asia/Almaty`\n* `Asia/Amman`\n* `Asia/Anadyr`\n* `Asia/Aqtau`\n* `Asia/Aqtobe`\n* `Asia/Ashgabat`\n* `Asia/Ashkhabad`\n* `Asia/Atyrau`\n* `Asia/Baghdad`\n* `Asia/Bahrain`\n* `Asia/Baku`\n* `Asia/Bangkok`\n* `Asia/Barnaul`\n* `Asia/Beirut`\n* `Asia/Bishkek`\n* `Asia/Brunei`\n* `Asia/Calcutta`\n* `Asia/Chita`\n* `Asia/Choibalsan`\n* `Asia/Chongqing`\n* `Asia/Chungking`\n* `Asia/Colombo`\n* `Asia/Dacca`\n* `Asia/Damascus`\n* `Asia/Dhaka`\n* `Asia/Dili`\n* `Asia/Dubai`\n* `Asia/Dushanbe`\n* `Asia/Famagusta`\n* `Asia/Gaza`\n* `Asia/Harbin`\n* `Asia/Hebron`\n* `Asia/Ho_Chi_Minh`\n* `Asia/Hong_Kong`\n* `Asia/Hovd`\n* `Asia/Irkutsk`\n* `Asia/Istanbul`\n* `Asia/Jakarta`\n* `Asia/Jayapura`\n* `Asia/Jerusalem`\n* `Asia/Kabul`\n* `Asia/Kamchatka`\n* `Asia/Karachi`\n* `Asia/Kashgar`\n* `Asia/Kathmandu`\n* `Asia/Katmandu`\n* `Asia/Khandyga`\n* `Asia/Kolkata`\n* `Asia/Krasnoyarsk`\n* `Asia/Kuala_Lumpur`\n* `Asia/Kuching`\n* `Asia/Kuwait`\n* `Asia/Macao`\n* `Asia/Macau`\n* `Asia/Magadan`\n* `Asia/Makassar`\n* `Asia/Manila`\n* `Asia/Muscat`\n* `Asia/Nicosia`\n* `Asia/Novokuznetsk`\n* `Asia/Novosibirsk`\n* `Asia/Omsk`\n* `Asia/Oral`\n* `Asia/Phnom_Penh`\n* `Asia/Pontianak`\n* `Asia/Pyongyang`\n* `Asia/Qatar`\n* `Asia/Qostanay`\n* `Asia/Qyzylorda`\n* `Asia/Rangoon`\n* `Asia/Riyadh`\n* `Asia/Saigon`\n* `Asia/Sakhalin`\n* `Asia/Samarkand`\n* `Asia/Seoul`\n* `Asia/Shanghai`\n* `Asia/Singapore`\n* `Asia/Srednekolymsk`\n* `Asia/Taipei`\n* `Asia/Tashkent`\n* `Asia/Tbilisi`\n* `Asia/Tehran`\n* `Asia/Tel_Aviv`\n* `Asia/Thimbu`\n* `Asia/Thimphu`\n* `Asia/Tokyo`\n* `Asia/Tomsk`\n* `Asia/Ujung_Pandang`\n* `Asia/Ulaanbaatar`\n* `Asia/Ulan_Bator`\n* `Asia/Urumqi`\n* `Asia/Ust-Nera`\n* `Asia/Vientiane`\n* `Asia/Vladivostok`\n* `Asia/Yakutsk`\n* `Asia/Yangon`\n* `Asia/Yekaterinburg`\n* `Asia/Yerevan`\n* `Atlantic/Azores`\n* `Atlantic/Bermuda`\n* `Atlantic/Canary`\n* `Atlantic/Cape_Verde`\n* `Atlantic/Faeroe`\n* `Atlantic/Faroe`\n* `Atlantic/Jan_Mayen`\n* `Atlantic/Madeira`\n* `Atlantic/Reykjavik`\n* `Atlantic/South_Georgia`\n* `Atlantic/St_Helena`\n* `Atlantic/Stanley`\n* `Australia/ACT`\n* `Australia/Adelaide`\n* `Australia/Brisbane`\n* `Australia/Broken_Hill`\n* `Australia/Canberra`\n* `Australia/Currie`\n* `Australia/Darwin`\n* `Australia/Eucla`\n* `Australia/Hobart`\n* `Australia/LHI`\n* `Australia/Lindeman`\n* `Australia/Lord_Howe`\n* `Australia/Melbourne`\n* `Australia/NSW`\n* `Australia/North`\n* `Australia/Perth`\n* `Australia/Queensland`\n* `Australia/South`\n* `Australia/Sydney`\n* `Australia/Tasmania`\n* `Australia/Victoria`\n* `Australia/West`\n* `Australia/Yancowinna`\n* `Brazil/Acre`\n* `Brazil/DeNoronha`\n* `Brazil/East`\n* `Brazil/West`\n* `CET`\n* `CST6CDT`\n* `Canada/Atlantic`\n* `Canada/Central`\n* `Canada/Eastern`\n* `Canada/Mountain`\n* `Canada/Newfoundland`\n* `Canada/Pacific`\n* `Canada/Saskatchewan`\n* `Canada/Yukon`\n* `Chile/Continental`\n* `Chile/EasterIsland`\n* `Cuba`\n* `EET`\n* `EST`\n* `EST5EDT`\n* `Egypt`\n* `Eire`\n* `Etc/GMT`\n* `Etc/GMT+0`\n* `Etc/GMT+1`\n* `Etc/GMT+10`\n* `Etc/GMT+11`\n* `Etc/GMT+12`\n* `Etc/GMT+2`\n* `Etc/GMT+3`\n* `Etc/GMT+4`\n* `Etc/GMT+5`\n* `Etc/GMT+6`\n* `Etc/GMT+7`\n* `Etc/GMT+8`\n* `Etc/GMT+9`\n* `Etc/GMT-0`\n* `Etc/GMT-1`\n* `Etc/GMT-10`\n* `Etc/GMT-11`\n* `Etc/GMT-12`\n* `Etc/GMT-13`\n* `Etc/GMT-14`\n* `Etc/GMT-2`\n* `Etc/GMT-3`\n* `Etc/GMT-4`\n* `Etc/GMT-5`\n* `Etc/GMT-6`\n* `Etc/GMT-7`\n* `Etc/GMT-8`\n* `Etc/GMT-9`\n* `Etc/GMT0`\n* `Etc/Greenwich`\n* `Etc/UCT`\n* `Etc/UTC`\n* `Etc/Universal`\n* `Etc/Zulu`\n* `Europe/Amsterdam`\n* `Europe/Andorra`\n* `Europe/Astrakhan`\n* `Europe/Athens`\n* `Europe/Belfast`\n* `Europe/Belgrade`\n* `Europe/Berlin`\n* `Europe/Bratislava`\n* `Europe/Brussels`\n* `Europe/Bucharest`\n* `Europe/Budapest`\n* `Europe/Busingen`\n* `Europe/Chisinau`\n* `Europe/Copenhagen`\n* `Europe/Dublin`\n* `Europe/Gibraltar`\n* `Europe/Guernsey`\n* `Europe/Helsinki`\n* `Europe/Isle_of_Man`\n* `Europe/Istanbul`\n* `Europe/Jersey`\n* `Europe/Kaliningrad`\n* `Europe/Kiev`\n* `Europe/Kirov`\n* `Europe/Kyiv`\n* `Europe/Lisbon`\n* `Europe/Ljubljana`\n* `Europe/London`\n* `Europe/Luxembourg`\n* `Europe/Madrid`\n* `Europe/Malta`\n* `Europe/Mariehamn`\n* `Europe/Minsk`\n* `Europe/Monaco`\n* `Europe/Moscow`\n* `Europe/Nicosia`\n* `Europe/Oslo`\n* `Europe/Paris`\n* `Europe/Podgorica`\n* `Europe/Prague`\n* `Europe/Riga`\n* `Europe/Rome`\n* `Europe/Samara`\n* `Europe/San_Marino`\n* `Europe/Sarajevo`\n* `Europe/Saratov`\n* `Europe/Simferopol`\n* `Europe/Skopje`\n* `Europe/Sofia`\n* `Europe/Stockholm`\n* `Europe/Tallinn`\n* `Europe/Tirane`\n* `Europe/Tiraspol`\n* `Europe/Ulyanovsk`\n* `Europe/Uzhgorod`\n* `Europe/Vaduz`\n* `Europe/Vatican`\n* `Europe/Vienna`\n* `Europe/Vilnius`\n* `Europe/Volgograd`\n* `Europe/Warsaw`\n* `Europe/Zagreb`\n* `Europe/Zaporozhye`\n* `Europe/Zurich`\n* `GB`\n* `GB-Eire`\n* `GMT`\n* `GMT+0`\n* `GMT-0`\n* `GMT0`\n* `Greenwich`\n* `HST`\n* `Hongkong`\n* `Iceland`\n* `Indian/Antananarivo`\n* `Indian/Chagos`\n* `Indian/Christmas`\n* `Indian/Cocos`\n* `Indian/Comoro`\n* `Indian/Kerguelen`\n* `Indian/Mahe`\n* `Indian/Maldives`\n* `Indian/Mauritius`\n* `Indian/Mayotte`\n* `Indian/Reunion`\n* `Iran`\n* `Israel`\n* `Jamaica`\n* `Japan`\n* `Kwajalein`\n* `Libya`\n* `MET`\n* `MST`\n* `MST7MDT`\n* `Mexico/BajaNorte`\n* `Mexico/BajaSur`\n* `Mexico/General`\n* `NZ`\n* `NZ-CHAT`\n* `Navajo`\n* `PRC`\n* `PST8PDT`\n* `Pacific/Apia`\n* `Pacific/Auckland`\n* `Pacific/Bougainville`\n* `Pacific/Chatham`\n* `Pacific/Chuuk`\n* `Pacific/Easter`\n* `Pacific/Efate`\n* `Pacific/Enderbury`\n* `Pacific/Fakaofo`\n* `Pacific/Fiji`\n* `Pacific/Funafuti`\n* `Pacific/Galapagos`\n* `Pacific/Gambier`\n* `Pacific/Guadalcanal`\n* `Pacific/Guam`\n* `Pacific/Honolulu`\n* `Pacific/Johnston`\n* `Pacific/Kanton`\n* `Pacific/Kiritimati`\n* `Pacific/Kosrae`\n* `Pacific/Kwajalein`\n* `Pacific/Majuro`\n* `Pacific/Marquesas`\n* `Pacific/Midway`\n* `Pacific/Nauru`\n* `Pacific/Niue`\n* `Pacific/Norfolk`\n* `Pacific/Noumea`\n* `Pacific/Pago_Pago`\n* `Pacific/Palau`\n* `Pacific/Pitcairn`\n* `Pacific/Pohnpei`\n* `Pacific/Ponape`\n* `Pacific/Port_Moresby`\n* `Pacific/Rarotonga`\n* `Pacific/Saipan`\n* `Pacific/Samoa`\n* `Pacific/Tahiti`\n* `Pacific/Tarawa`\n* `Pacific/Tongatapu`\n* `Pacific/Truk`\n* `Pacific/Wake`\n* `Pacific/Wallis`\n* `Pacific/Yap`\n* `Poland`\n* `Portugal`\n* `ROC`\n* `ROK`\n* `Singapore`\n* `Turkey`\n* `UCT`\n* `US/Alaska`\n* `US/Aleutian`\n* `US/Arizona`\n* `US/Central`\n* `US/East-Indiana`\n* `US/Eastern`\n* `US/Hawaii`\n* `US/Indiana-Starke`\n* `US/Michigan`\n* `US/Mountain`\n* `US/Pacific`\n* `US/Samoa`\n* `UTC`\n* `Universal`\n* `W-SU`\n* `WET`\n* `Zulu`\n* `localtime`" }, "failure_issue_threshold": { "type": "integer", "maximum": 720, "minimum": 1, "nullable": true, "description": "How many consecutive missed or failed check-ins in a row before creating a new issue." }, "recovery_threshold": { "type": "integer", "maximum": 720, "minimum": 1, "nullable": true, "description": "How many successful check-ins in a row before resolving an issue." } }, "required": [ "schedule" ] } ], "description": "The configuration for the monitor." }, "slug": { "type": "string", "description": "Uniquely identifies your monitor within your organization. Changing this slug will require updates to any instrumented check-in calls.", "maxLength": 50, "pattern": "^(?![0-9]+$)[a-z0-9_\\-]+$" }, "status": { "enum": [ "active", "disabled" ], "type": "string", "default": "active", "description": "Status of the monitor. Disabled monitors will not accept events and will not count towards the monitor quota.\n\n* `active`\n* `disabled`" }, "owner": { "type": "string", "nullable": true, "description": "The ID of the team or user that owns the monitor. (eg. user:51 or team:6)" }, "is_muted": { "type": "boolean", "description": "Disable creation of monitor incidents" } }, "required": [ "config", "name", "project" ] } } }, "required": true }, "security": [ { "auth_token": [ "alerts:write", "org:admin", "org:read", "org:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/monitors/{monitor_id_or_slug}/": { "get": { "operationId": "getOrganizationMonitor", "description": "Retrieves details for a monitor.", "summary": "Retrieve a Monitor", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "monitor_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the monitor.", "required": true }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." } ], "tags": [ "Crons" ], "security": [ { "auth_token": [ "alerts:read", "alerts:write", "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateOrganizationMonitor", "description": "Update a monitor.", "summary": "Update a Monitor", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "monitor_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the monitor.", "required": true } ], "tags": [ "Crons" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "project": { "type": "string", "description": "The project ID or slug to associate the monitor to." }, "name": { "type": "string", "description": "Name of the monitor. Used for notifications. If not set the slug will be derived from your monitor name.", "maxLength": 128 }, "config": { "allOf": [ { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Currently supports \"crontab\" or \"interval\"\n\n* `crontab`\n* `interval`" }, "schedule": { "description": "Varies depending on the schedule_type. Is either a crontab string, or a 2 element tuple for intervals (e.g. [1, 'day'])" }, "checkin_margin": { "type": "integer", "maximum": 40320, "minimum": 1, "nullable": true, "description": "How long (in minutes) after the expected checkin time will we wait until we consider the checkin to have been missed." }, "max_runtime": { "type": "integer", "maximum": 10080, "minimum": 1, "nullable": true, "description": "How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed. Maximum 10080 (7 days)." }, "timezone": { "enum": [ "Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Asmera", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Timbuktu", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/ComodRivadavia", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Atka", "America/Bahia", "America/Bahia_Banderas", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Buenos_Aires", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Catamarca", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Coral_Harbour", "America/Cordoba", "America/Costa_Rica", "America/Coyhaique", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson", "America/Dawson_Creek", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Ensenada", "America/Fort_Nelson", "America/Fort_Wayne", "America/Fortaleza", "America/Glace_Bay", "America/Godthab", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Indianapolis", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Jujuy", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Knox_IN", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Louisville", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Mendoza", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montreal", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nipigon", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Pangnirtung", "America/Paramaribo", "America/Phoenix", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Acre", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rainy_River", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Rosario", "America/Santa_Isabel", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Shiprock", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Thunder_Bay", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Virgin", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "America/Yellowknife", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/South_Pole", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Ashkhabad", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Calcutta", "Asia/Chita", "Asia/Choibalsan", "Asia/Chongqing", "Asia/Chungking", "Asia/Colombo", "Asia/Dacca", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Harbin", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Istanbul", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kashgar", "Asia/Kathmandu", "Asia/Katmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macao", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Rangoon", "Asia/Riyadh", "Asia/Saigon", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Tel_Aviv", "Asia/Thimbu", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ujung_Pandang", "Asia/Ulaanbaatar", "Asia/Ulan_Bator", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faeroe", "Atlantic/Faroe", "Atlantic/Jan_Mayen", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/ACT", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Canberra", "Australia/Currie", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/LHI", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/NSW", "Australia/North", "Australia/Perth", "Australia/Queensland", "Australia/South", "Australia/Sydney", "Australia/Tasmania", "Australia/Victoria", "Australia/West", "Australia/Yancowinna", "Brazil/Acre", "Brazil/DeNoronha", "Brazil/East", "Brazil/West", "CET", "CST6CDT", "Canada/Atlantic", "Canada/Central", "Canada/Eastern", "Canada/Mountain", "Canada/Newfoundland", "Canada/Pacific", "Canada/Saskatchewan", "Canada/Yukon", "Chile/Continental", "Chile/EasterIsland", "Cuba", "EET", "EST", "EST5EDT", "Egypt", "Eire", "Etc/GMT", "Etc/GMT+0", "Etc/GMT+1", "Etc/GMT+10", "Etc/GMT+11", "Etc/GMT+12", "Etc/GMT+2", "Etc/GMT+3", "Etc/GMT+4", "Etc/GMT+5", "Etc/GMT+6", "Etc/GMT+7", "Etc/GMT+8", "Etc/GMT+9", "Etc/GMT-0", "Etc/GMT-1", "Etc/GMT-10", "Etc/GMT-11", "Etc/GMT-12", "Etc/GMT-13", "Etc/GMT-14", "Etc/GMT-2", "Etc/GMT-3", "Etc/GMT-4", "Etc/GMT-5", "Etc/GMT-6", "Etc/GMT-7", "Etc/GMT-8", "Etc/GMT-9", "Etc/GMT0", "Etc/Greenwich", "Etc/UCT", "Etc/UTC", "Etc/Universal", "Etc/Zulu", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belfast", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kiev", "Europe/Kirov", "Europe/Kyiv", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Nicosia", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Tiraspol", "Europe/Ulyanovsk", "Europe/Uzhgorod", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zaporozhye", "Europe/Zurich", "GB", "GB-Eire", "GMT", "GMT+0", "GMT-0", "GMT0", "Greenwich", "HST", "Hongkong", "Iceland", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Iran", "Israel", "Jamaica", "Japan", "Kwajalein", "Libya", "MET", "MST", "MST7MDT", "Mexico/BajaNorte", "Mexico/BajaSur", "Mexico/General", "NZ", "NZ-CHAT", "Navajo", "PRC", "PST8PDT", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Enderbury", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Johnston", "Pacific/Kanton", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Ponape", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Samoa", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Truk", "Pacific/Wake", "Pacific/Wallis", "Pacific/Yap", "Poland", "Portugal", "ROC", "ROK", "Singapore", "Turkey", "UCT", "US/Alaska", "US/Aleutian", "US/Arizona", "US/Central", "US/East-Indiana", "US/Eastern", "US/Hawaii", "US/Indiana-Starke", "US/Michigan", "US/Mountain", "US/Pacific", "US/Samoa", "UTC", "Universal", "W-SU", "WET", "Zulu", "localtime", "" ], "type": "string", "description": "tz database style timezone string\n\n* `Africa/Abidjan`\n* `Africa/Accra`\n* `Africa/Addis_Ababa`\n* `Africa/Algiers`\n* `Africa/Asmara`\n* `Africa/Asmera`\n* `Africa/Bamako`\n* `Africa/Bangui`\n* `Africa/Banjul`\n* `Africa/Bissau`\n* `Africa/Blantyre`\n* `Africa/Brazzaville`\n* `Africa/Bujumbura`\n* `Africa/Cairo`\n* `Africa/Casablanca`\n* `Africa/Ceuta`\n* `Africa/Conakry`\n* `Africa/Dakar`\n* `Africa/Dar_es_Salaam`\n* `Africa/Djibouti`\n* `Africa/Douala`\n* `Africa/El_Aaiun`\n* `Africa/Freetown`\n* `Africa/Gaborone`\n* `Africa/Harare`\n* `Africa/Johannesburg`\n* `Africa/Juba`\n* `Africa/Kampala`\n* `Africa/Khartoum`\n* `Africa/Kigali`\n* `Africa/Kinshasa`\n* `Africa/Lagos`\n* `Africa/Libreville`\n* `Africa/Lome`\n* `Africa/Luanda`\n* `Africa/Lubumbashi`\n* `Africa/Lusaka`\n* `Africa/Malabo`\n* `Africa/Maputo`\n* `Africa/Maseru`\n* `Africa/Mbabane`\n* `Africa/Mogadishu`\n* `Africa/Monrovia`\n* `Africa/Nairobi`\n* `Africa/Ndjamena`\n* `Africa/Niamey`\n* `Africa/Nouakchott`\n* `Africa/Ouagadougou`\n* `Africa/Porto-Novo`\n* `Africa/Sao_Tome`\n* `Africa/Timbuktu`\n* `Africa/Tripoli`\n* `Africa/Tunis`\n* `Africa/Windhoek`\n* `America/Adak`\n* `America/Anchorage`\n* `America/Anguilla`\n* `America/Antigua`\n* `America/Araguaina`\n* `America/Argentina/Buenos_Aires`\n* `America/Argentina/Catamarca`\n* `America/Argentina/ComodRivadavia`\n* `America/Argentina/Cordoba`\n* `America/Argentina/Jujuy`\n* `America/Argentina/La_Rioja`\n* `America/Argentina/Mendoza`\n* `America/Argentina/Rio_Gallegos`\n* `America/Argentina/Salta`\n* `America/Argentina/San_Juan`\n* `America/Argentina/San_Luis`\n* `America/Argentina/Tucuman`\n* `America/Argentina/Ushuaia`\n* `America/Aruba`\n* `America/Asuncion`\n* `America/Atikokan`\n* `America/Atka`\n* `America/Bahia`\n* `America/Bahia_Banderas`\n* `America/Barbados`\n* `America/Belem`\n* `America/Belize`\n* `America/Blanc-Sablon`\n* `America/Boa_Vista`\n* `America/Bogota`\n* `America/Boise`\n* `America/Buenos_Aires`\n* `America/Cambridge_Bay`\n* `America/Campo_Grande`\n* `America/Cancun`\n* `America/Caracas`\n* `America/Catamarca`\n* `America/Cayenne`\n* `America/Cayman`\n* `America/Chicago`\n* `America/Chihuahua`\n* `America/Ciudad_Juarez`\n* `America/Coral_Harbour`\n* `America/Cordoba`\n* `America/Costa_Rica`\n* `America/Coyhaique`\n* `America/Creston`\n* `America/Cuiaba`\n* `America/Curacao`\n* `America/Danmarkshavn`\n* `America/Dawson`\n* `America/Dawson_Creek`\n* `America/Denver`\n* `America/Detroit`\n* `America/Dominica`\n* `America/Edmonton`\n* `America/Eirunepe`\n* `America/El_Salvador`\n* `America/Ensenada`\n* `America/Fort_Nelson`\n* `America/Fort_Wayne`\n* `America/Fortaleza`\n* `America/Glace_Bay`\n* `America/Godthab`\n* `America/Goose_Bay`\n* `America/Grand_Turk`\n* `America/Grenada`\n* `America/Guadeloupe`\n* `America/Guatemala`\n* `America/Guayaquil`\n* `America/Guyana`\n* `America/Halifax`\n* `America/Havana`\n* `America/Hermosillo`\n* `America/Indiana/Indianapolis`\n* `America/Indiana/Knox`\n* `America/Indiana/Marengo`\n* `America/Indiana/Petersburg`\n* `America/Indiana/Tell_City`\n* `America/Indiana/Vevay`\n* `America/Indiana/Vincennes`\n* `America/Indiana/Winamac`\n* `America/Indianapolis`\n* `America/Inuvik`\n* `America/Iqaluit`\n* `America/Jamaica`\n* `America/Jujuy`\n* `America/Juneau`\n* `America/Kentucky/Louisville`\n* `America/Kentucky/Monticello`\n* `America/Knox_IN`\n* `America/Kralendijk`\n* `America/La_Paz`\n* `America/Lima`\n* `America/Los_Angeles`\n* `America/Louisville`\n* `America/Lower_Princes`\n* `America/Maceio`\n* `America/Managua`\n* `America/Manaus`\n* `America/Marigot`\n* `America/Martinique`\n* `America/Matamoros`\n* `America/Mazatlan`\n* `America/Mendoza`\n* `America/Menominee`\n* `America/Merida`\n* `America/Metlakatla`\n* `America/Mexico_City`\n* `America/Miquelon`\n* `America/Moncton`\n* `America/Monterrey`\n* `America/Montevideo`\n* `America/Montreal`\n* `America/Montserrat`\n* `America/Nassau`\n* `America/New_York`\n* `America/Nipigon`\n* `America/Nome`\n* `America/Noronha`\n* `America/North_Dakota/Beulah`\n* `America/North_Dakota/Center`\n* `America/North_Dakota/New_Salem`\n* `America/Nuuk`\n* `America/Ojinaga`\n* `America/Panama`\n* `America/Pangnirtung`\n* `America/Paramaribo`\n* `America/Phoenix`\n* `America/Port-au-Prince`\n* `America/Port_of_Spain`\n* `America/Porto_Acre`\n* `America/Porto_Velho`\n* `America/Puerto_Rico`\n* `America/Punta_Arenas`\n* `America/Rainy_River`\n* `America/Rankin_Inlet`\n* `America/Recife`\n* `America/Regina`\n* `America/Resolute`\n* `America/Rio_Branco`\n* `America/Rosario`\n* `America/Santa_Isabel`\n* `America/Santarem`\n* `America/Santiago`\n* `America/Santo_Domingo`\n* `America/Sao_Paulo`\n* `America/Scoresbysund`\n* `America/Shiprock`\n* `America/Sitka`\n* `America/St_Barthelemy`\n* `America/St_Johns`\n* `America/St_Kitts`\n* `America/St_Lucia`\n* `America/St_Thomas`\n* `America/St_Vincent`\n* `America/Swift_Current`\n* `America/Tegucigalpa`\n* `America/Thule`\n* `America/Thunder_Bay`\n* `America/Tijuana`\n* `America/Toronto`\n* `America/Tortola`\n* `America/Vancouver`\n* `America/Virgin`\n* `America/Whitehorse`\n* `America/Winnipeg`\n* `America/Yakutat`\n* `America/Yellowknife`\n* `Antarctica/Casey`\n* `Antarctica/Davis`\n* `Antarctica/DumontDUrville`\n* `Antarctica/Macquarie`\n* `Antarctica/Mawson`\n* `Antarctica/McMurdo`\n* `Antarctica/Palmer`\n* `Antarctica/Rothera`\n* `Antarctica/South_Pole`\n* `Antarctica/Syowa`\n* `Antarctica/Troll`\n* `Antarctica/Vostok`\n* `Arctic/Longyearbyen`\n* `Asia/Aden`\n* `Asia/Almaty`\n* `Asia/Amman`\n* `Asia/Anadyr`\n* `Asia/Aqtau`\n* `Asia/Aqtobe`\n* `Asia/Ashgabat`\n* `Asia/Ashkhabad`\n* `Asia/Atyrau`\n* `Asia/Baghdad`\n* `Asia/Bahrain`\n* `Asia/Baku`\n* `Asia/Bangkok`\n* `Asia/Barnaul`\n* `Asia/Beirut`\n* `Asia/Bishkek`\n* `Asia/Brunei`\n* `Asia/Calcutta`\n* `Asia/Chita`\n* `Asia/Choibalsan`\n* `Asia/Chongqing`\n* `Asia/Chungking`\n* `Asia/Colombo`\n* `Asia/Dacca`\n* `Asia/Damascus`\n* `Asia/Dhaka`\n* `Asia/Dili`\n* `Asia/Dubai`\n* `Asia/Dushanbe`\n* `Asia/Famagusta`\n* `Asia/Gaza`\n* `Asia/Harbin`\n* `Asia/Hebron`\n* `Asia/Ho_Chi_Minh`\n* `Asia/Hong_Kong`\n* `Asia/Hovd`\n* `Asia/Irkutsk`\n* `Asia/Istanbul`\n* `Asia/Jakarta`\n* `Asia/Jayapura`\n* `Asia/Jerusalem`\n* `Asia/Kabul`\n* `Asia/Kamchatka`\n* `Asia/Karachi`\n* `Asia/Kashgar`\n* `Asia/Kathmandu`\n* `Asia/Katmandu`\n* `Asia/Khandyga`\n* `Asia/Kolkata`\n* `Asia/Krasnoyarsk`\n* `Asia/Kuala_Lumpur`\n* `Asia/Kuching`\n* `Asia/Kuwait`\n* `Asia/Macao`\n* `Asia/Macau`\n* `Asia/Magadan`\n* `Asia/Makassar`\n* `Asia/Manila`\n* `Asia/Muscat`\n* `Asia/Nicosia`\n* `Asia/Novokuznetsk`\n* `Asia/Novosibirsk`\n* `Asia/Omsk`\n* `Asia/Oral`\n* `Asia/Phnom_Penh`\n* `Asia/Pontianak`\n* `Asia/Pyongyang`\n* `Asia/Qatar`\n* `Asia/Qostanay`\n* `Asia/Qyzylorda`\n* `Asia/Rangoon`\n* `Asia/Riyadh`\n* `Asia/Saigon`\n* `Asia/Sakhalin`\n* `Asia/Samarkand`\n* `Asia/Seoul`\n* `Asia/Shanghai`\n* `Asia/Singapore`\n* `Asia/Srednekolymsk`\n* `Asia/Taipei`\n* `Asia/Tashkent`\n* `Asia/Tbilisi`\n* `Asia/Tehran`\n* `Asia/Tel_Aviv`\n* `Asia/Thimbu`\n* `Asia/Thimphu`\n* `Asia/Tokyo`\n* `Asia/Tomsk`\n* `Asia/Ujung_Pandang`\n* `Asia/Ulaanbaatar`\n* `Asia/Ulan_Bator`\n* `Asia/Urumqi`\n* `Asia/Ust-Nera`\n* `Asia/Vientiane`\n* `Asia/Vladivostok`\n* `Asia/Yakutsk`\n* `Asia/Yangon`\n* `Asia/Yekaterinburg`\n* `Asia/Yerevan`\n* `Atlantic/Azores`\n* `Atlantic/Bermuda`\n* `Atlantic/Canary`\n* `Atlantic/Cape_Verde`\n* `Atlantic/Faeroe`\n* `Atlantic/Faroe`\n* `Atlantic/Jan_Mayen`\n* `Atlantic/Madeira`\n* `Atlantic/Reykjavik`\n* `Atlantic/South_Georgia`\n* `Atlantic/St_Helena`\n* `Atlantic/Stanley`\n* `Australia/ACT`\n* `Australia/Adelaide`\n* `Australia/Brisbane`\n* `Australia/Broken_Hill`\n* `Australia/Canberra`\n* `Australia/Currie`\n* `Australia/Darwin`\n* `Australia/Eucla`\n* `Australia/Hobart`\n* `Australia/LHI`\n* `Australia/Lindeman`\n* `Australia/Lord_Howe`\n* `Australia/Melbourne`\n* `Australia/NSW`\n* `Australia/North`\n* `Australia/Perth`\n* `Australia/Queensland`\n* `Australia/South`\n* `Australia/Sydney`\n* `Australia/Tasmania`\n* `Australia/Victoria`\n* `Australia/West`\n* `Australia/Yancowinna`\n* `Brazil/Acre`\n* `Brazil/DeNoronha`\n* `Brazil/East`\n* `Brazil/West`\n* `CET`\n* `CST6CDT`\n* `Canada/Atlantic`\n* `Canada/Central`\n* `Canada/Eastern`\n* `Canada/Mountain`\n* `Canada/Newfoundland`\n* `Canada/Pacific`\n* `Canada/Saskatchewan`\n* `Canada/Yukon`\n* `Chile/Continental`\n* `Chile/EasterIsland`\n* `Cuba`\n* `EET`\n* `EST`\n* `EST5EDT`\n* `Egypt`\n* `Eire`\n* `Etc/GMT`\n* `Etc/GMT+0`\n* `Etc/GMT+1`\n* `Etc/GMT+10`\n* `Etc/GMT+11`\n* `Etc/GMT+12`\n* `Etc/GMT+2`\n* `Etc/GMT+3`\n* `Etc/GMT+4`\n* `Etc/GMT+5`\n* `Etc/GMT+6`\n* `Etc/GMT+7`\n* `Etc/GMT+8`\n* `Etc/GMT+9`\n* `Etc/GMT-0`\n* `Etc/GMT-1`\n* `Etc/GMT-10`\n* `Etc/GMT-11`\n* `Etc/GMT-12`\n* `Etc/GMT-13`\n* `Etc/GMT-14`\n* `Etc/GMT-2`\n* `Etc/GMT-3`\n* `Etc/GMT-4`\n* `Etc/GMT-5`\n* `Etc/GMT-6`\n* `Etc/GMT-7`\n* `Etc/GMT-8`\n* `Etc/GMT-9`\n* `Etc/GMT0`\n* `Etc/Greenwich`\n* `Etc/UCT`\n* `Etc/UTC`\n* `Etc/Universal`\n* `Etc/Zulu`\n* `Europe/Amsterdam`\n* `Europe/Andorra`\n* `Europe/Astrakhan`\n* `Europe/Athens`\n* `Europe/Belfast`\n* `Europe/Belgrade`\n* `Europe/Berlin`\n* `Europe/Bratislava`\n* `Europe/Brussels`\n* `Europe/Bucharest`\n* `Europe/Budapest`\n* `Europe/Busingen`\n* `Europe/Chisinau`\n* `Europe/Copenhagen`\n* `Europe/Dublin`\n* `Europe/Gibraltar`\n* `Europe/Guernsey`\n* `Europe/Helsinki`\n* `Europe/Isle_of_Man`\n* `Europe/Istanbul`\n* `Europe/Jersey`\n* `Europe/Kaliningrad`\n* `Europe/Kiev`\n* `Europe/Kirov`\n* `Europe/Kyiv`\n* `Europe/Lisbon`\n* `Europe/Ljubljana`\n* `Europe/London`\n* `Europe/Luxembourg`\n* `Europe/Madrid`\n* `Europe/Malta`\n* `Europe/Mariehamn`\n* `Europe/Minsk`\n* `Europe/Monaco`\n* `Europe/Moscow`\n* `Europe/Nicosia`\n* `Europe/Oslo`\n* `Europe/Paris`\n* `Europe/Podgorica`\n* `Europe/Prague`\n* `Europe/Riga`\n* `Europe/Rome`\n* `Europe/Samara`\n* `Europe/San_Marino`\n* `Europe/Sarajevo`\n* `Europe/Saratov`\n* `Europe/Simferopol`\n* `Europe/Skopje`\n* `Europe/Sofia`\n* `Europe/Stockholm`\n* `Europe/Tallinn`\n* `Europe/Tirane`\n* `Europe/Tiraspol`\n* `Europe/Ulyanovsk`\n* `Europe/Uzhgorod`\n* `Europe/Vaduz`\n* `Europe/Vatican`\n* `Europe/Vienna`\n* `Europe/Vilnius`\n* `Europe/Volgograd`\n* `Europe/Warsaw`\n* `Europe/Zagreb`\n* `Europe/Zaporozhye`\n* `Europe/Zurich`\n* `GB`\n* `GB-Eire`\n* `GMT`\n* `GMT+0`\n* `GMT-0`\n* `GMT0`\n* `Greenwich`\n* `HST`\n* `Hongkong`\n* `Iceland`\n* `Indian/Antananarivo`\n* `Indian/Chagos`\n* `Indian/Christmas`\n* `Indian/Cocos`\n* `Indian/Comoro`\n* `Indian/Kerguelen`\n* `Indian/Mahe`\n* `Indian/Maldives`\n* `Indian/Mauritius`\n* `Indian/Mayotte`\n* `Indian/Reunion`\n* `Iran`\n* `Israel`\n* `Jamaica`\n* `Japan`\n* `Kwajalein`\n* `Libya`\n* `MET`\n* `MST`\n* `MST7MDT`\n* `Mexico/BajaNorte`\n* `Mexico/BajaSur`\n* `Mexico/General`\n* `NZ`\n* `NZ-CHAT`\n* `Navajo`\n* `PRC`\n* `PST8PDT`\n* `Pacific/Apia`\n* `Pacific/Auckland`\n* `Pacific/Bougainville`\n* `Pacific/Chatham`\n* `Pacific/Chuuk`\n* `Pacific/Easter`\n* `Pacific/Efate`\n* `Pacific/Enderbury`\n* `Pacific/Fakaofo`\n* `Pacific/Fiji`\n* `Pacific/Funafuti`\n* `Pacific/Galapagos`\n* `Pacific/Gambier`\n* `Pacific/Guadalcanal`\n* `Pacific/Guam`\n* `Pacific/Honolulu`\n* `Pacific/Johnston`\n* `Pacific/Kanton`\n* `Pacific/Kiritimati`\n* `Pacific/Kosrae`\n* `Pacific/Kwajalein`\n* `Pacific/Majuro`\n* `Pacific/Marquesas`\n* `Pacific/Midway`\n* `Pacific/Nauru`\n* `Pacific/Niue`\n* `Pacific/Norfolk`\n* `Pacific/Noumea`\n* `Pacific/Pago_Pago`\n* `Pacific/Palau`\n* `Pacific/Pitcairn`\n* `Pacific/Pohnpei`\n* `Pacific/Ponape`\n* `Pacific/Port_Moresby`\n* `Pacific/Rarotonga`\n* `Pacific/Saipan`\n* `Pacific/Samoa`\n* `Pacific/Tahiti`\n* `Pacific/Tarawa`\n* `Pacific/Tongatapu`\n* `Pacific/Truk`\n* `Pacific/Wake`\n* `Pacific/Wallis`\n* `Pacific/Yap`\n* `Poland`\n* `Portugal`\n* `ROC`\n* `ROK`\n* `Singapore`\n* `Turkey`\n* `UCT`\n* `US/Alaska`\n* `US/Aleutian`\n* `US/Arizona`\n* `US/Central`\n* `US/East-Indiana`\n* `US/Eastern`\n* `US/Hawaii`\n* `US/Indiana-Starke`\n* `US/Michigan`\n* `US/Mountain`\n* `US/Pacific`\n* `US/Samoa`\n* `UTC`\n* `Universal`\n* `W-SU`\n* `WET`\n* `Zulu`\n* `localtime`" }, "failure_issue_threshold": { "type": "integer", "maximum": 720, "minimum": 1, "nullable": true, "description": "How many consecutive missed or failed check-ins in a row before creating a new issue." }, "recovery_threshold": { "type": "integer", "maximum": 720, "minimum": 1, "nullable": true, "description": "How many successful check-ins in a row before resolving an issue." } }, "required": [ "schedule" ] } ], "description": "The configuration for the monitor." }, "slug": { "type": "string", "description": "Uniquely identifies your monitor within your organization. Changing this slug will require updates to any instrumented check-in calls.", "maxLength": 50, "pattern": "^(?![0-9]+$)[a-z0-9_\\-]+$" }, "status": { "enum": [ "active", "disabled" ], "type": "string", "default": "active", "description": "Status of the monitor. Disabled monitors will not accept events and will not count towards the monitor quota.\n\n* `active`\n* `disabled`" }, "owner": { "type": "string", "nullable": true, "description": "The ID of the team or user that owns the monitor. (eg. user:51 or team:6)" }, "is_muted": { "type": "boolean", "description": "Disable creation of monitor incidents" } }, "required": [ "config", "name", "project" ] } } }, "required": true }, "security": [ { "auth_token": [ "alerts:write", "project:admin", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteOrganizationMonitor", "description": "Delete a monitor or monitor environments.", "summary": "Delete a Monitor or Monitor Environments", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "monitor_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the monitor.", "required": true }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." } ], "tags": [ "Crons" ], "security": [ { "auth_token": [ "alerts:write", "project:admin", "project:write" ] } ], "responses": { "202": { "description": "Accepted" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/monitors/{monitor_id_or_slug}/checkins/": { "get": { "operationId": "listOrganizationMonitorCheckins", "description": "Retrieve a list of check-ins for a monitor", "summary": "Retrieve Check-Ins for a Monitor", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "monitor_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the monitor.", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Crons" ], "security": [ { "auth_token": [ "alerts:read", "alerts:write", "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "groups": { "type": "array", "items": { "type": "string" }, "description": "Issues linked to the check-in's trace. Only included when requested with expand=groups" }, "id": { "type": "string", "description": "ID of the check-in" }, "environment": { "type": "string", "description": "Name of the environment the check-in belongs to" }, "status": { "enum": [ "unknown", "ok", "error", "in_progress", "missed", "timeout" ], "type": "string", "description": "Status of the check-in" }, "duration": { "type": "integer", "nullable": true, "description": "Duration of the job run in milliseconds" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the check-in was stored (ISO 8601)" }, "dateAdded": { "type": "string", "format": "date-time", "description": "When the check-in was received (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the check-in was last updated (ISO 8601)" }, "dateInProgress": { "type": "string", "format": "date-time", "nullable": true, "description": "When the first in_progress check-in was received (ISO 8601). Null when none was sent" }, "dateClock": { "type": "string", "format": "date-time", "nullable": true, "description": "Clock time the check-in was processed at, relative to other check-in tasks (ISO 8601)" }, "expectedTime": { "type": "string", "format": "date-time", "nullable": true, "description": "When the check-in was expected (ISO 8601)" }, "monitorConfig": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Monitor configuration when the check-in was received" } }, "required": [ "dateAdded", "dateClock", "dateCreated", "dateInProgress", "dateUpdated", "duration", "environment", "expectedTime", "id", "monitorConfig", "status" ] } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/notebooks/": { "post": { "operationId": "Create a Notebook", "description": "**Experimental:** This API is under active development and may change.\n\nCreate a blank notebook, or a notebook for a producer's source. Returns 201 with\nnotebook details, blocks, parameters, and orchestration summary, or 200 when an active\nnotebook for the same source already exists. Requires a user or service account.\nRequires the organizations:investigations feature and open organization membership.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Notebooks" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Create a blank notebook, or find or create a producer's notebook for its source.\n\nNeeds organization and creator in its context.", "properties": { "title": { "type": "string", "description": "Investigation title.", "maxLength": 255 }, "projectIds": { "type": "array", "items": { "type": "integer", "minimum": 1 }, "description": "Unique IDs of accessible projects to include. Defaults to an empty list." }, "filters": { "type": "object", "additionalProperties": {}, "description": "Investigation filter object, stored with its original keys." }, "source": { "type": "object", "properties": { "type": { "type": "string" } }, "required": [ "type" ], "additionalProperties": true, "description": "What a producer writes this notebook about. type names a registered producer source type, and the other fields depend on it. Projects come from the source, so omit projectIds. An active notebook for the same source is returned instead of a new one." } }, "required": [ "title" ], "additionalProperties": false }, "examples": { "ExampleRequest": { "value": { "title": "Checkout latency", "projectIds": [ 1 ] }, "summary": "Example request" } } } }, "required": true }, "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "description": "Full notebook with ordered active blocks, parameter definitions and saved values, project\nIDs, and source context. source.snapshot is present only for source-backed investigations.\nactionRequests has Seer's action requests that aren't superseded, plus stale ones while Seer\nre-checks them, newest report first, with that report's primary at the top.", "properties": { "id": { "type": "string", "description": "The notebook ID" }, "title": { "type": "string", "description": "The notebook title" }, "summary": { "type": "string", "nullable": true, "description": "A one-line summary of the notebook, if one was generated" }, "summaryDescription": { "type": "string", "nullable": true, "description": "A longer summary of the notebook, if one was generated" }, "status": { "type": "string", "description": "active or archived. Archived notebooks are read-only" }, "sourceType": { "type": "string", "description": "What the notebook is about: manual, or a source type" }, "createdBy": { "type": "string", "nullable": true, "description": "The ID of the user who created the notebook, if a user did" }, "creator": { "type": "object", "properties": { "type": { "enum": [ "user", "service_account", "system", "integration", "agent", "unknown" ], "type": "string", "description": "Whether a user or a service account created the notebook" }, "id": { "type": "string", "description": "The ID of the user or service account that created the notebook" } }, "required": [ "id", "type" ], "nullable": true, "description": "The user or service account that created the notebook" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the notebook was created" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the notebook last changed" }, "version": { "type": "integer", "description": "The notebook's concurrency token. Send it as notebookVersion with a change" }, "blockCount": { "type": "integer", "description": "The number of blocks the notebook has" }, "isFavorited": { "type": "boolean", "description": "Whether the requesting user favorited the notebook" }, "titleGeneration": { "type": "object", "properties": { "status": { "type": "string", "nullable": true, "description": "The state of automatic title generation, or null if it hasn't run" } }, "required": [ "status" ], "description": "The state of automatic title generation" }, "orchestration": { "type": "object", "properties": { "phase": { "type": "string", "description": "The phase the agent's run is in" }, "status": { "type": "string", "description": "The status of the agent's run" }, "heartbeatAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the run last reported progress" }, "notebookRevision": { "type": "integer", "description": "How many times the run has changed the notebook's report" } }, "required": [ "heartbeatAt", "notebookRevision", "phase", "status" ], "nullable": true, "description": "The agent's run for the notebook, if it has one" }, "template": { "type": "object", "properties": { "key": { "type": "string", "nullable": true, "description": "The key of the template the notebook started from, if any" }, "version": { "type": "integer", "nullable": true, "description": "The version of that template, if any" } }, "required": [ "key", "version" ], "nullable": true, "description": "The template the notebook started from, if any" }, "source": { "type": "object", "properties": { "snapshot": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "What Sentry knew about the source when the notebook started. Only on source-backed notebooks" }, "type": { "type": "string", "description": "The source type: manual, or the type of what the notebook is about" }, "ref": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "The identifying fields of the source, such as an issue ID. Empty for a manual notebook" }, "revision": { "type": "integer", "nullable": true, "description": "The notebook's revision for its source. A new revision starts once the previous one is archived. Null for a manual notebook" } }, "required": [ "ref", "revision", "type" ], "description": "What the notebook is about" }, "filters": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "Saved filters, stored with their original keys" }, "projectIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the projects the notebook covers" }, "parameters": { "type": "array", "items": { "type": "object", "description": "Parameter definition and saved override. type and constraints govern accepted values;\ndefaultValue and savedValue may be null. Use key in the parameter-values update request.", "properties": { "id": { "type": "string", "description": "The parameter ID" }, "key": { "type": "string", "description": "The key blocks use to refer to the parameter" }, "label": { "type": "string", "description": "The parameter's display name" }, "description": { "type": "string", "description": "What the parameter is for" }, "type": { "type": "string", "description": "The type of value the parameter takes" }, "required": { "type": "boolean", "description": "Whether the parameter needs a value" }, "constraints": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "Limits on the parameter's value, by type" }, "defaultValue": { "description": "The value used when none is saved", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "savedValue": { "description": "The saved value, or null", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "source": { "type": "string", "description": "Who defined the parameter" }, "position": { "type": "integer", "description": "The parameter's position in the notebook" }, "version": { "type": "integer", "description": "The parameter's concurrency token" } }, "required": [ "constraints", "defaultValue", "description", "id", "key", "label", "position", "required", "savedValue", "source", "type", "version" ] }, "description": "The notebook's parameters, in order" }, "blocks": { "type": "array", "items": { "type": "object", "description": "Notebook block. version is the block concurrency token; dependencies are block IDs and\nparameterKeys reference notebook parameters. output is the latest successful result and may\nremain available during a rerun; currentExecution describes the latest attempt. Poll\nexecution details for transcript and pending input. producerKey and producerRevision are\nset on blocks a producer wrote.", "properties": { "id": { "type": "string", "description": "The block ID" }, "position": { "type": "integer", "description": "The block's position in the notebook, starting at 0" }, "kind": { "type": "string", "description": "text for Markdown, or query for a data query" }, "title": { "type": "string", "description": "The block title. May be empty" }, "content": { "type": "string", "description": "The block's content: Markdown for text, the query for query" }, "generationPrompt": { "type": "string", "description": "Instructions used when running the block" }, "generatedContent": { "type": "string", "description": "The latest generated content, before anyone edited it" }, "output": { "description": "The latest successful result. Text blocks have schemaVersion and markdown", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "outputStatus": { "type": "string", "description": "available, notRun, or the status of the latest execution" }, "currentExecution": { "type": "object", "properties": { "id": { "type": "string", "description": "The execution ID" }, "status": { "type": "string", "description": "The execution status" }, "executor": { "type": "string", "description": "What ran the block" }, "schemaVersion": { "type": "integer", "description": "The version of the result's schema" }, "startedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution started" }, "completedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution finished, if it has" }, "error": { "description": "What went wrong, if the execution failed", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] } }, "required": [ "completedAt", "error", "executor", "id", "schemaVersion", "startedAt", "status" ], "nullable": true, "description": "The latest execution, if the block has run" }, "config": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block runs, such as auto-run" }, "display": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block is shown. Text uses type markdown; query uses table, line, bar, or area" }, "dependencies": { "type": "array", "items": { "type": "string" }, "description": "The IDs of blocks this block depends on" }, "parameterKeys": { "type": "array", "items": { "type": "string" }, "description": "The keys of the parameters the block uses" }, "version": { "type": "integer", "description": "The block's concurrency token. Send it as version with a change" }, "staleAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When an input changed after the output was made, if one did" }, "createdBy": { "type": "string", "nullable": true, "description": "The ID of the user who added the block, if a user did" }, "lastEditedBy": { "type": "string", "nullable": true, "description": "The ID of the user who last edited the block, if a user did" }, "producerKey": { "type": "string", "nullable": true, "description": "The producer's key for the block, if a producer wrote it" }, "producerRevision": { "type": "integer", "nullable": true, "description": "The producer's revision for the block, if a producer wrote it" } }, "required": [ "config", "content", "createdBy", "currentExecution", "dependencies", "display", "generatedContent", "generationPrompt", "id", "kind", "lastEditedBy", "output", "outputStatus", "parameterKeys", "position", "producerKey", "producerRevision", "staleAt", "title", "version" ] }, "description": "The notebook's blocks, in order" }, "actionRequests": { "type": "array", "items": { "type": "object", "description": "A step Seer suggests. `primary` marks the recommended next step after a run, and `anchor`\nputs a request under a block or hypothesis. `action` is Seer's payload, or null when it's\nonly advice. `canApply` says whether this viewer can apply it now, and `cannotApplyReason`\nsays why not. What's in `appliedDetails` depends on the action kind, and `appliedBy` is null\nwhen Sentry applied it automatically. `followUp` is what Seer did with the re-check or re-run\nSentry sent for this request.", "properties": { "id": { "type": "string", "description": "The action request ID" }, "key": { "type": "string", "description": "The agent's key for the request" }, "reportRevision": { "type": "integer", "description": "The report revision that suggested it" }, "primary": { "type": "boolean", "description": "Whether it's the recommended next step" }, "anchor": { "type": "object", "description": "The block or hypothesis the request is under, if any", "properties": { "type": { "type": "string", "description": "block or hypothesis" }, "id": { "type": "string", "description": "The agent's ID for the block or hypothesis" }, "blockId": { "type": "string", "nullable": true, "description": "The ID of the block the request is under, if it still exists" } }, "required": [ "blockId", "id", "type" ], "nullable": true }, "title": { "type": "string", "description": "A short title for the step" }, "rationale": { "type": "string", "description": "Why the agent suggests it" }, "impact": { "type": "string", "nullable": true, "description": "What the step would change, if the agent said" }, "state": { "type": "string", "description": "suggested, applied, failed, superseded, or withdrawn" }, "reason": { "type": "string", "nullable": true, "description": "Why the request is in its state, if there's a reason" }, "action": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "nullable": true, "description": "The agent's action payload, or null when the request is only advice" }, "canApply": { "type": "boolean", "description": "Whether the requesting user can apply it now" }, "cannotApplyReason": { "enum": [ "investigation_archived", "not_suggested", "unsupported_action", "no_access", "not_target_detector", "detector_not_found", "permission_denied", "dynamic_detector", null ], "type": "string", "nullable": true, "description": "Why the requesting user can't apply it, if they can't" }, "appliedBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "The user who applied it. Null when Sentry applied it" }, "appliedDetails": { "anyOf": [ { "type": "object", "properties": { "detectorId": { "type": "string", "description": "The ID of the monitor that was changed" }, "detectorName": { "type": "string", "description": "The name of the monitor that was changed" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "The monitor settings that were changed" } }, "required": [ "detectorId", "detectorName", "fields" ] }, { "type": "object", "properties": { "provider": { "enum": [ "datadog", "gcp" ], "type": "string", "description": "The telemetry provider that was connected" } }, "required": [ "provider" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "What applying it changed. The fields depend on the action" }, "dateApplied": { "type": "string", "format": "date-time", "nullable": true, "description": "When it was applied" }, "error": { "type": "object", "description": "What went wrong, if applying it failed", "properties": { "code": { "enum": [ "already_applied", "withdrawn", "stale", "validation_failed", "action_changed", "not_stale", "not_retryable" ], "type": "string", "description": "The error code" }, "current": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "description": "The current values of the settings the action would change" }, "messages": { "type": "array", "items": { "type": "string" }, "description": "Messages that explain the error" } }, "required": [ "code" ], "nullable": true }, "followUp": { "type": "object", "description": "The re-check or re-run Sentry sent the agent, if any", "properties": { "status": { "enum": [ "accepted", "dispatched", "acknowledged", "failed" ], "type": "string", "description": "Where the follow-up is" }, "reason": { "enum": [ "workflow_version_conflict", "idempotency_conflict", "invalid_command_target", "action_requests_report_changed", "run_cancelled", "run_failed", "provider_not_connected", "provider_already_used", null ], "type": "string", "nullable": true, "description": "Why the agent turned down or dropped the follow-up, if it did" }, "rerun": { "enum": [ "started", "held", "skipped", null ], "type": "string", "nullable": true, "description": "What the agent did with a re-run. Null for a re-check" }, "retryable": { "type": "boolean", "description": "Whether the requesting user can send it again" } }, "required": [ "reason", "rerun", "retryable", "status" ], "nullable": true }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the agent suggested it" } }, "required": [ "action", "anchor", "appliedBy", "appliedDetails", "canApply", "cannotApplyReason", "dateApplied", "dateCreated", "error", "followUp", "id", "impact", "key", "primary", "rationale", "reason", "reportRevision", "state", "title" ] }, "description": "Steps the agent suggests, newest report first" } }, "required": [ "actionRequests", "blockCount", "blocks", "createdBy", "creator", "dateCreated", "dateUpdated", "filters", "id", "isFavorited", "orchestration", "parameters", "projectIds", "source", "sourceType", "status", "summary", "summaryDescription", "template", "title", "titleGeneration", "version" ] }, "examples": { "ExistingNotebookForTheSource": { "value": { "id": "7", "title": "Checkout latency", "summary": null, "summaryDescription": null, "status": "active", "sourceType": "manual", "createdBy": "1", "creator": { "type": "user", "id": "1" }, "dateCreated": "2026-11-10T17:55:00.000000Z", "dateUpdated": "2026-11-10T18:00:00.000000Z", "version": 2, "blockCount": 1, "isFavorited": false, "titleGeneration": { "status": null }, "orchestration": null, "template": null, "source": { "type": "manual", "ref": {}, "revision": null }, "filters": {}, "projectIds": [ 1 ], "parameters": [], "blocks": [ { "id": "12", "position": 0, "kind": "text", "title": "Summary", "content": "Checkout latency rose after the 2.4.0 release.", "generationPrompt": "", "generatedContent": "Checkout latency rose after the 2.4.0 release.", "output": { "schemaVersion": 1, "markdown": "Checkout latency rose after the 2.4.0 release." }, "outputStatus": "available", "currentExecution": { "id": "40", "status": "completed", "executor": "code_mode", "schemaVersion": 1, "startedAt": "2026-11-10T18:00:00.000000Z", "completedAt": "2026-11-10T18:00:00.000000Z", "error": null }, "config": {}, "display": { "type": "markdown" }, "dependencies": [], "parameterKeys": [], "version": 1, "staleAt": null, "createdBy": null, "lastEditedBy": null, "producerKey": "summary", "producerRevision": 1 } ], "actionRequests": [] }, "summary": "Existing notebook for the source" } } } }, "description": "" }, "201": { "content": { "application/json": { "schema": { "type": "object", "description": "Full notebook with ordered active blocks, parameter definitions and saved values, project\nIDs, and source context. source.snapshot is present only for source-backed investigations.\nactionRequests has Seer's action requests that aren't superseded, plus stale ones while Seer\nre-checks them, newest report first, with that report's primary at the top.", "properties": { "id": { "type": "string", "description": "The notebook ID" }, "title": { "type": "string", "description": "The notebook title" }, "summary": { "type": "string", "nullable": true, "description": "A one-line summary of the notebook, if one was generated" }, "summaryDescription": { "type": "string", "nullable": true, "description": "A longer summary of the notebook, if one was generated" }, "status": { "type": "string", "description": "active or archived. Archived notebooks are read-only" }, "sourceType": { "type": "string", "description": "What the notebook is about: manual, or a source type" }, "createdBy": { "type": "string", "nullable": true, "description": "The ID of the user who created the notebook, if a user did" }, "creator": { "type": "object", "properties": { "type": { "enum": [ "user", "service_account", "system", "integration", "agent", "unknown" ], "type": "string", "description": "Whether a user or a service account created the notebook" }, "id": { "type": "string", "description": "The ID of the user or service account that created the notebook" } }, "required": [ "id", "type" ], "nullable": true, "description": "The user or service account that created the notebook" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the notebook was created" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the notebook last changed" }, "version": { "type": "integer", "description": "The notebook's concurrency token. Send it as notebookVersion with a change" }, "blockCount": { "type": "integer", "description": "The number of blocks the notebook has" }, "isFavorited": { "type": "boolean", "description": "Whether the requesting user favorited the notebook" }, "titleGeneration": { "type": "object", "properties": { "status": { "type": "string", "nullable": true, "description": "The state of automatic title generation, or null if it hasn't run" } }, "required": [ "status" ], "description": "The state of automatic title generation" }, "orchestration": { "type": "object", "properties": { "phase": { "type": "string", "description": "The phase the agent's run is in" }, "status": { "type": "string", "description": "The status of the agent's run" }, "heartbeatAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the run last reported progress" }, "notebookRevision": { "type": "integer", "description": "How many times the run has changed the notebook's report" } }, "required": [ "heartbeatAt", "notebookRevision", "phase", "status" ], "nullable": true, "description": "The agent's run for the notebook, if it has one" }, "template": { "type": "object", "properties": { "key": { "type": "string", "nullable": true, "description": "The key of the template the notebook started from, if any" }, "version": { "type": "integer", "nullable": true, "description": "The version of that template, if any" } }, "required": [ "key", "version" ], "nullable": true, "description": "The template the notebook started from, if any" }, "source": { "type": "object", "properties": { "snapshot": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "What Sentry knew about the source when the notebook started. Only on source-backed notebooks" }, "type": { "type": "string", "description": "The source type: manual, or the type of what the notebook is about" }, "ref": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "The identifying fields of the source, such as an issue ID. Empty for a manual notebook" }, "revision": { "type": "integer", "nullable": true, "description": "The notebook's revision for its source. A new revision starts once the previous one is archived. Null for a manual notebook" } }, "required": [ "ref", "revision", "type" ], "description": "What the notebook is about" }, "filters": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "Saved filters, stored with their original keys" }, "projectIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the projects the notebook covers" }, "parameters": { "type": "array", "items": { "type": "object", "description": "Parameter definition and saved override. type and constraints govern accepted values;\ndefaultValue and savedValue may be null. Use key in the parameter-values update request.", "properties": { "id": { "type": "string", "description": "The parameter ID" }, "key": { "type": "string", "description": "The key blocks use to refer to the parameter" }, "label": { "type": "string", "description": "The parameter's display name" }, "description": { "type": "string", "description": "What the parameter is for" }, "type": { "type": "string", "description": "The type of value the parameter takes" }, "required": { "type": "boolean", "description": "Whether the parameter needs a value" }, "constraints": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "Limits on the parameter's value, by type" }, "defaultValue": { "description": "The value used when none is saved", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "savedValue": { "description": "The saved value, or null", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "source": { "type": "string", "description": "Who defined the parameter" }, "position": { "type": "integer", "description": "The parameter's position in the notebook" }, "version": { "type": "integer", "description": "The parameter's concurrency token" } }, "required": [ "constraints", "defaultValue", "description", "id", "key", "label", "position", "required", "savedValue", "source", "type", "version" ] }, "description": "The notebook's parameters, in order" }, "blocks": { "type": "array", "items": { "type": "object", "description": "Notebook block. version is the block concurrency token; dependencies are block IDs and\nparameterKeys reference notebook parameters. output is the latest successful result and may\nremain available during a rerun; currentExecution describes the latest attempt. Poll\nexecution details for transcript and pending input. producerKey and producerRevision are\nset on blocks a producer wrote.", "properties": { "id": { "type": "string", "description": "The block ID" }, "position": { "type": "integer", "description": "The block's position in the notebook, starting at 0" }, "kind": { "type": "string", "description": "text for Markdown, or query for a data query" }, "title": { "type": "string", "description": "The block title. May be empty" }, "content": { "type": "string", "description": "The block's content: Markdown for text, the query for query" }, "generationPrompt": { "type": "string", "description": "Instructions used when running the block" }, "generatedContent": { "type": "string", "description": "The latest generated content, before anyone edited it" }, "output": { "description": "The latest successful result. Text blocks have schemaVersion and markdown", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "outputStatus": { "type": "string", "description": "available, notRun, or the status of the latest execution" }, "currentExecution": { "type": "object", "properties": { "id": { "type": "string", "description": "The execution ID" }, "status": { "type": "string", "description": "The execution status" }, "executor": { "type": "string", "description": "What ran the block" }, "schemaVersion": { "type": "integer", "description": "The version of the result's schema" }, "startedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution started" }, "completedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution finished, if it has" }, "error": { "description": "What went wrong, if the execution failed", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] } }, "required": [ "completedAt", "error", "executor", "id", "schemaVersion", "startedAt", "status" ], "nullable": true, "description": "The latest execution, if the block has run" }, "config": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block runs, such as auto-run" }, "display": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block is shown. Text uses type markdown; query uses table, line, bar, or area" }, "dependencies": { "type": "array", "items": { "type": "string" }, "description": "The IDs of blocks this block depends on" }, "parameterKeys": { "type": "array", "items": { "type": "string" }, "description": "The keys of the parameters the block uses" }, "version": { "type": "integer", "description": "The block's concurrency token. Send it as version with a change" }, "staleAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When an input changed after the output was made, if one did" }, "createdBy": { "type": "string", "nullable": true, "description": "The ID of the user who added the block, if a user did" }, "lastEditedBy": { "type": "string", "nullable": true, "description": "The ID of the user who last edited the block, if a user did" }, "producerKey": { "type": "string", "nullable": true, "description": "The producer's key for the block, if a producer wrote it" }, "producerRevision": { "type": "integer", "nullable": true, "description": "The producer's revision for the block, if a producer wrote it" } }, "required": [ "config", "content", "createdBy", "currentExecution", "dependencies", "display", "generatedContent", "generationPrompt", "id", "kind", "lastEditedBy", "output", "outputStatus", "parameterKeys", "position", "producerKey", "producerRevision", "staleAt", "title", "version" ] }, "description": "The notebook's blocks, in order" }, "actionRequests": { "type": "array", "items": { "type": "object", "description": "A step Seer suggests. `primary` marks the recommended next step after a run, and `anchor`\nputs a request under a block or hypothesis. `action` is Seer's payload, or null when it's\nonly advice. `canApply` says whether this viewer can apply it now, and `cannotApplyReason`\nsays why not. What's in `appliedDetails` depends on the action kind, and `appliedBy` is null\nwhen Sentry applied it automatically. `followUp` is what Seer did with the re-check or re-run\nSentry sent for this request.", "properties": { "id": { "type": "string", "description": "The action request ID" }, "key": { "type": "string", "description": "The agent's key for the request" }, "reportRevision": { "type": "integer", "description": "The report revision that suggested it" }, "primary": { "type": "boolean", "description": "Whether it's the recommended next step" }, "anchor": { "type": "object", "description": "The block or hypothesis the request is under, if any", "properties": { "type": { "type": "string", "description": "block or hypothesis" }, "id": { "type": "string", "description": "The agent's ID for the block or hypothesis" }, "blockId": { "type": "string", "nullable": true, "description": "The ID of the block the request is under, if it still exists" } }, "required": [ "blockId", "id", "type" ], "nullable": true }, "title": { "type": "string", "description": "A short title for the step" }, "rationale": { "type": "string", "description": "Why the agent suggests it" }, "impact": { "type": "string", "nullable": true, "description": "What the step would change, if the agent said" }, "state": { "type": "string", "description": "suggested, applied, failed, superseded, or withdrawn" }, "reason": { "type": "string", "nullable": true, "description": "Why the request is in its state, if there's a reason" }, "action": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "nullable": true, "description": "The agent's action payload, or null when the request is only advice" }, "canApply": { "type": "boolean", "description": "Whether the requesting user can apply it now" }, "cannotApplyReason": { "enum": [ "investigation_archived", "not_suggested", "unsupported_action", "no_access", "not_target_detector", "detector_not_found", "permission_denied", "dynamic_detector", null ], "type": "string", "nullable": true, "description": "Why the requesting user can't apply it, if they can't" }, "appliedBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "The user who applied it. Null when Sentry applied it" }, "appliedDetails": { "anyOf": [ { "type": "object", "properties": { "detectorId": { "type": "string", "description": "The ID of the monitor that was changed" }, "detectorName": { "type": "string", "description": "The name of the monitor that was changed" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "The monitor settings that were changed" } }, "required": [ "detectorId", "detectorName", "fields" ] }, { "type": "object", "properties": { "provider": { "enum": [ "datadog", "gcp" ], "type": "string", "description": "The telemetry provider that was connected" } }, "required": [ "provider" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "What applying it changed. The fields depend on the action" }, "dateApplied": { "type": "string", "format": "date-time", "nullable": true, "description": "When it was applied" }, "error": { "type": "object", "description": "What went wrong, if applying it failed", "properties": { "code": { "enum": [ "already_applied", "withdrawn", "stale", "validation_failed", "action_changed", "not_stale", "not_retryable" ], "type": "string", "description": "The error code" }, "current": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "description": "The current values of the settings the action would change" }, "messages": { "type": "array", "items": { "type": "string" }, "description": "Messages that explain the error" } }, "required": [ "code" ], "nullable": true }, "followUp": { "type": "object", "description": "The re-check or re-run Sentry sent the agent, if any", "properties": { "status": { "enum": [ "accepted", "dispatched", "acknowledged", "failed" ], "type": "string", "description": "Where the follow-up is" }, "reason": { "enum": [ "workflow_version_conflict", "idempotency_conflict", "invalid_command_target", "action_requests_report_changed", "run_cancelled", "run_failed", "provider_not_connected", "provider_already_used", null ], "type": "string", "nullable": true, "description": "Why the agent turned down or dropped the follow-up, if it did" }, "rerun": { "enum": [ "started", "held", "skipped", null ], "type": "string", "nullable": true, "description": "What the agent did with a re-run. Null for a re-check" }, "retryable": { "type": "boolean", "description": "Whether the requesting user can send it again" } }, "required": [ "reason", "rerun", "retryable", "status" ], "nullable": true }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the agent suggested it" } }, "required": [ "action", "anchor", "appliedBy", "appliedDetails", "canApply", "cannotApplyReason", "dateApplied", "dateCreated", "error", "followUp", "id", "impact", "key", "primary", "rationale", "reason", "reportRevision", "state", "title" ] }, "description": "Steps the agent suggests, newest report first" } }, "required": [ "actionRequests", "blockCount", "blocks", "createdBy", "creator", "dateCreated", "dateUpdated", "filters", "id", "isFavorited", "orchestration", "parameters", "projectIds", "source", "sourceType", "status", "summary", "summaryDescription", "template", "title", "titleGeneration", "version" ] }, "examples": { "CreatedNotebook": { "value": { "id": "7", "title": "Checkout latency", "summary": null, "summaryDescription": null, "status": "active", "sourceType": "manual", "createdBy": "1", "creator": { "type": "user", "id": "1" }, "dateCreated": "2026-11-10T17:55:00.000000Z", "dateUpdated": "2026-11-10T18:00:00.000000Z", "version": 1, "blockCount": 0, "isFavorited": false, "titleGeneration": { "status": null }, "orchestration": null, "template": null, "source": { "type": "manual", "ref": {}, "revision": null }, "filters": {}, "projectIds": [ 1 ], "parameters": [], "blocks": [], "actionRequests": [] }, "summary": "Created notebook" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/notebooks/{notebook_id}/": { "get": { "operationId": "Retrieve a Notebook", "description": "**Experimental:** This API is under active development and may change.\n\nReturn notebook metadata, source context, filters, project IDs, parameter definitions\nand saved values, and ordered active blocks. Poll this endpoint for notebook and block\noutput updates. Requires the organizations:investigations feature and open organization\nmembership.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "notebook_id", "schema": { "type": "string" }, "description": "The ID of an investigation in this organization.", "required": true } ], "tags": [ "Notebooks" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "description": "Full notebook with ordered active blocks, parameter definitions and saved values, project\nIDs, and source context. source.snapshot is present only for source-backed investigations.\nactionRequests has Seer's action requests that aren't superseded, plus stale ones while Seer\nre-checks them, newest report first, with that report's primary at the top.", "properties": { "id": { "type": "string", "description": "The notebook ID" }, "title": { "type": "string", "description": "The notebook title" }, "summary": { "type": "string", "nullable": true, "description": "A one-line summary of the notebook, if one was generated" }, "summaryDescription": { "type": "string", "nullable": true, "description": "A longer summary of the notebook, if one was generated" }, "status": { "type": "string", "description": "active or archived. Archived notebooks are read-only" }, "sourceType": { "type": "string", "description": "What the notebook is about: manual, or a source type" }, "createdBy": { "type": "string", "nullable": true, "description": "The ID of the user who created the notebook, if a user did" }, "creator": { "type": "object", "properties": { "type": { "enum": [ "user", "service_account", "system", "integration", "agent", "unknown" ], "type": "string", "description": "Whether a user or a service account created the notebook" }, "id": { "type": "string", "description": "The ID of the user or service account that created the notebook" } }, "required": [ "id", "type" ], "nullable": true, "description": "The user or service account that created the notebook" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the notebook was created" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the notebook last changed" }, "version": { "type": "integer", "description": "The notebook's concurrency token. Send it as notebookVersion with a change" }, "blockCount": { "type": "integer", "description": "The number of blocks the notebook has" }, "isFavorited": { "type": "boolean", "description": "Whether the requesting user favorited the notebook" }, "titleGeneration": { "type": "object", "properties": { "status": { "type": "string", "nullable": true, "description": "The state of automatic title generation, or null if it hasn't run" } }, "required": [ "status" ], "description": "The state of automatic title generation" }, "orchestration": { "type": "object", "properties": { "phase": { "type": "string", "description": "The phase the agent's run is in" }, "status": { "type": "string", "description": "The status of the agent's run" }, "heartbeatAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the run last reported progress" }, "notebookRevision": { "type": "integer", "description": "How many times the run has changed the notebook's report" } }, "required": [ "heartbeatAt", "notebookRevision", "phase", "status" ], "nullable": true, "description": "The agent's run for the notebook, if it has one" }, "template": { "type": "object", "properties": { "key": { "type": "string", "nullable": true, "description": "The key of the template the notebook started from, if any" }, "version": { "type": "integer", "nullable": true, "description": "The version of that template, if any" } }, "required": [ "key", "version" ], "nullable": true, "description": "The template the notebook started from, if any" }, "source": { "type": "object", "properties": { "snapshot": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "What Sentry knew about the source when the notebook started. Only on source-backed notebooks" }, "type": { "type": "string", "description": "The source type: manual, or the type of what the notebook is about" }, "ref": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "The identifying fields of the source, such as an issue ID. Empty for a manual notebook" }, "revision": { "type": "integer", "nullable": true, "description": "The notebook's revision for its source. A new revision starts once the previous one is archived. Null for a manual notebook" } }, "required": [ "ref", "revision", "type" ], "description": "What the notebook is about" }, "filters": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "Saved filters, stored with their original keys" }, "projectIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the projects the notebook covers" }, "parameters": { "type": "array", "items": { "type": "object", "description": "Parameter definition and saved override. type and constraints govern accepted values;\ndefaultValue and savedValue may be null. Use key in the parameter-values update request.", "properties": { "id": { "type": "string", "description": "The parameter ID" }, "key": { "type": "string", "description": "The key blocks use to refer to the parameter" }, "label": { "type": "string", "description": "The parameter's display name" }, "description": { "type": "string", "description": "What the parameter is for" }, "type": { "type": "string", "description": "The type of value the parameter takes" }, "required": { "type": "boolean", "description": "Whether the parameter needs a value" }, "constraints": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "Limits on the parameter's value, by type" }, "defaultValue": { "description": "The value used when none is saved", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "savedValue": { "description": "The saved value, or null", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "source": { "type": "string", "description": "Who defined the parameter" }, "position": { "type": "integer", "description": "The parameter's position in the notebook" }, "version": { "type": "integer", "description": "The parameter's concurrency token" } }, "required": [ "constraints", "defaultValue", "description", "id", "key", "label", "position", "required", "savedValue", "source", "type", "version" ] }, "description": "The notebook's parameters, in order" }, "blocks": { "type": "array", "items": { "type": "object", "description": "Notebook block. version is the block concurrency token; dependencies are block IDs and\nparameterKeys reference notebook parameters. output is the latest successful result and may\nremain available during a rerun; currentExecution describes the latest attempt. Poll\nexecution details for transcript and pending input. producerKey and producerRevision are\nset on blocks a producer wrote.", "properties": { "id": { "type": "string", "description": "The block ID" }, "position": { "type": "integer", "description": "The block's position in the notebook, starting at 0" }, "kind": { "type": "string", "description": "text for Markdown, or query for a data query" }, "title": { "type": "string", "description": "The block title. May be empty" }, "content": { "type": "string", "description": "The block's content: Markdown for text, the query for query" }, "generationPrompt": { "type": "string", "description": "Instructions used when running the block" }, "generatedContent": { "type": "string", "description": "The latest generated content, before anyone edited it" }, "output": { "description": "The latest successful result. Text blocks have schemaVersion and markdown", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "outputStatus": { "type": "string", "description": "available, notRun, or the status of the latest execution" }, "currentExecution": { "type": "object", "properties": { "id": { "type": "string", "description": "The execution ID" }, "status": { "type": "string", "description": "The execution status" }, "executor": { "type": "string", "description": "What ran the block" }, "schemaVersion": { "type": "integer", "description": "The version of the result's schema" }, "startedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution started" }, "completedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution finished, if it has" }, "error": { "description": "What went wrong, if the execution failed", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] } }, "required": [ "completedAt", "error", "executor", "id", "schemaVersion", "startedAt", "status" ], "nullable": true, "description": "The latest execution, if the block has run" }, "config": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block runs, such as auto-run" }, "display": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block is shown. Text uses type markdown; query uses table, line, bar, or area" }, "dependencies": { "type": "array", "items": { "type": "string" }, "description": "The IDs of blocks this block depends on" }, "parameterKeys": { "type": "array", "items": { "type": "string" }, "description": "The keys of the parameters the block uses" }, "version": { "type": "integer", "description": "The block's concurrency token. Send it as version with a change" }, "staleAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When an input changed after the output was made, if one did" }, "createdBy": { "type": "string", "nullable": true, "description": "The ID of the user who added the block, if a user did" }, "lastEditedBy": { "type": "string", "nullable": true, "description": "The ID of the user who last edited the block, if a user did" }, "producerKey": { "type": "string", "nullable": true, "description": "The producer's key for the block, if a producer wrote it" }, "producerRevision": { "type": "integer", "nullable": true, "description": "The producer's revision for the block, if a producer wrote it" } }, "required": [ "config", "content", "createdBy", "currentExecution", "dependencies", "display", "generatedContent", "generationPrompt", "id", "kind", "lastEditedBy", "output", "outputStatus", "parameterKeys", "position", "producerKey", "producerRevision", "staleAt", "title", "version" ] }, "description": "The notebook's blocks, in order" }, "actionRequests": { "type": "array", "items": { "type": "object", "description": "A step Seer suggests. `primary` marks the recommended next step after a run, and `anchor`\nputs a request under a block or hypothesis. `action` is Seer's payload, or null when it's\nonly advice. `canApply` says whether this viewer can apply it now, and `cannotApplyReason`\nsays why not. What's in `appliedDetails` depends on the action kind, and `appliedBy` is null\nwhen Sentry applied it automatically. `followUp` is what Seer did with the re-check or re-run\nSentry sent for this request.", "properties": { "id": { "type": "string", "description": "The action request ID" }, "key": { "type": "string", "description": "The agent's key for the request" }, "reportRevision": { "type": "integer", "description": "The report revision that suggested it" }, "primary": { "type": "boolean", "description": "Whether it's the recommended next step" }, "anchor": { "type": "object", "description": "The block or hypothesis the request is under, if any", "properties": { "type": { "type": "string", "description": "block or hypothesis" }, "id": { "type": "string", "description": "The agent's ID for the block or hypothesis" }, "blockId": { "type": "string", "nullable": true, "description": "The ID of the block the request is under, if it still exists" } }, "required": [ "blockId", "id", "type" ], "nullable": true }, "title": { "type": "string", "description": "A short title for the step" }, "rationale": { "type": "string", "description": "Why the agent suggests it" }, "impact": { "type": "string", "nullable": true, "description": "What the step would change, if the agent said" }, "state": { "type": "string", "description": "suggested, applied, failed, superseded, or withdrawn" }, "reason": { "type": "string", "nullable": true, "description": "Why the request is in its state, if there's a reason" }, "action": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "nullable": true, "description": "The agent's action payload, or null when the request is only advice" }, "canApply": { "type": "boolean", "description": "Whether the requesting user can apply it now" }, "cannotApplyReason": { "enum": [ "investigation_archived", "not_suggested", "unsupported_action", "no_access", "not_target_detector", "detector_not_found", "permission_denied", "dynamic_detector", null ], "type": "string", "nullable": true, "description": "Why the requesting user can't apply it, if they can't" }, "appliedBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "The user who applied it. Null when Sentry applied it" }, "appliedDetails": { "anyOf": [ { "type": "object", "properties": { "detectorId": { "type": "string", "description": "The ID of the monitor that was changed" }, "detectorName": { "type": "string", "description": "The name of the monitor that was changed" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "The monitor settings that were changed" } }, "required": [ "detectorId", "detectorName", "fields" ] }, { "type": "object", "properties": { "provider": { "enum": [ "datadog", "gcp" ], "type": "string", "description": "The telemetry provider that was connected" } }, "required": [ "provider" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "What applying it changed. The fields depend on the action" }, "dateApplied": { "type": "string", "format": "date-time", "nullable": true, "description": "When it was applied" }, "error": { "type": "object", "description": "What went wrong, if applying it failed", "properties": { "code": { "enum": [ "already_applied", "withdrawn", "stale", "validation_failed", "action_changed", "not_stale", "not_retryable" ], "type": "string", "description": "The error code" }, "current": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "description": "The current values of the settings the action would change" }, "messages": { "type": "array", "items": { "type": "string" }, "description": "Messages that explain the error" } }, "required": [ "code" ], "nullable": true }, "followUp": { "type": "object", "description": "The re-check or re-run Sentry sent the agent, if any", "properties": { "status": { "enum": [ "accepted", "dispatched", "acknowledged", "failed" ], "type": "string", "description": "Where the follow-up is" }, "reason": { "enum": [ "workflow_version_conflict", "idempotency_conflict", "invalid_command_target", "action_requests_report_changed", "run_cancelled", "run_failed", "provider_not_connected", "provider_already_used", null ], "type": "string", "nullable": true, "description": "Why the agent turned down or dropped the follow-up, if it did" }, "rerun": { "enum": [ "started", "held", "skipped", null ], "type": "string", "nullable": true, "description": "What the agent did with a re-run. Null for a re-check" }, "retryable": { "type": "boolean", "description": "Whether the requesting user can send it again" } }, "required": [ "reason", "rerun", "retryable", "status" ], "nullable": true }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the agent suggested it" } }, "required": [ "action", "anchor", "appliedBy", "appliedDetails", "canApply", "cannotApplyReason", "dateApplied", "dateCreated", "error", "followUp", "id", "impact", "key", "primary", "rationale", "reason", "reportRevision", "state", "title" ] }, "description": "Steps the agent suggests, newest report first" } }, "required": [ "actionRequests", "blockCount", "blocks", "createdBy", "creator", "dateCreated", "dateUpdated", "filters", "id", "isFavorited", "orchestration", "parameters", "projectIds", "source", "sourceType", "status", "summary", "summaryDescription", "template", "title", "titleGeneration", "version" ] }, "examples": { "NotebookDetails": { "value": { "id": "7", "title": "Checkout latency", "summary": null, "summaryDescription": null, "status": "active", "sourceType": "manual", "createdBy": "1", "creator": { "type": "user", "id": "1" }, "dateCreated": "2026-11-10T17:55:00.000000Z", "dateUpdated": "2026-11-10T18:00:00.000000Z", "version": 2, "blockCount": 1, "isFavorited": false, "titleGeneration": { "status": null }, "orchestration": null, "template": null, "source": { "type": "manual", "ref": {}, "revision": null }, "filters": {}, "projectIds": [ 1 ], "parameters": [], "blocks": [ { "id": "12", "position": 0, "kind": "text", "title": "Summary", "content": "Checkout latency rose after the 2.4.0 release.", "generationPrompt": "", "generatedContent": "Checkout latency rose after the 2.4.0 release.", "output": { "schemaVersion": 1, "markdown": "Checkout latency rose after the 2.4.0 release." }, "outputStatus": "available", "currentExecution": { "id": "40", "status": "completed", "executor": "code_mode", "schemaVersion": 1, "startedAt": "2026-11-10T18:00:00.000000Z", "completedAt": "2026-11-10T18:00:00.000000Z", "error": null }, "config": {}, "display": { "type": "markdown" }, "dependencies": [], "parameterKeys": [], "version": 1, "staleAt": null, "createdBy": null, "lastEditedBy": null, "producerKey": "summary", "producerRevision": 1 } ], "actionRequests": [] }, "summary": "Notebook details" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/notebooks/{notebook_id}/blocks/": { "post": { "operationId": "Create a Notebook Block", "description": "**Experimental:** This API is under active development and may change.\n\nAppend a text or query block to an active investigation, using notebookVersion for\nconcurrency. A producer sends key and revision instead to write its text block: the\nsame key updates the block, overwriting user edits and bringing back a deleted block,\nand a block with a newer revision returns 409. Returns 201 with the new block, or 200\nwhen a producer's write updates one; fetch investigation details for the updated\nnotebook version. Requires a user or service account; key and revision require a\nservice account or Seer agent token. Requires the\norganizations:investigations feature and open organization membership.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "notebook_id", "schema": { "type": "string" }, "description": "The ID of an investigation in this organization.", "required": true } ], "tags": [ "Notebooks" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Append a user's block, or write a producer's block by key and revision.\n\nNeeds notebook, user_id and producer_writer in its context.", "properties": { "kind": { "enum": [ "text", "query" ], "type": "string", "description": "Block kind: text for Markdown or query for an agent-generated data query. A producer's block must be text.\n\n* `text` - Text\n* `query` - Query" }, "notebookVersion": { "type": "integer", "minimum": 1, "description": "Current notebook version from the latest detail response. Stale versions return 409. Send this, or key and revision." }, "key": { "type": "string", "description": "The producer's stable key for the block. Writing the same key again updates the block, even if a user edited or deleted it. Send with revision instead of notebookVersion. Only service accounts and Seer agents can send it.", "maxLength": 128 }, "revision": { "type": "integer", "maximum": 2147483647, "minimum": 1, "description": "The producer's revision for the block. A block with a newer revision returns 409, and a write can raise it by at most 100." }, "position": { "type": "integer", "maximum": 2147483647, "minimum": 0, "description": "Index among the notebook's blocks where a producer's block goes. Later blocks shift down, and a larger index puts it last. A new block goes last when omitted, and an existing block stays put." }, "title": { "type": "string", "description": "Block title. May be empty.", "maxLength": 255 }, "content": { "type": "string", "description": "Markdown content. May be empty, except in a producer's block." }, "generationPrompt": { "type": "string", "description": "Instructions used when executing the block. May be empty." }, "config": { "type": "object", "additionalProperties": {}, "description": "Block configuration object. Nested keys are preserved." }, "display": { "type": "object", "additionalProperties": {}, "description": "Display settings. Text uses type markdown; query uses table, line, bar, or area. Versioned settings use version 1. Charts require xAxis and non-empty yAxes. Defaults to Markdown for text and table for query." } }, "required": [ "kind" ], "additionalProperties": false }, "examples": { "ExampleRequest": { "value": { "notebookVersion": 1, "kind": "text", "content": "Initial observations" }, "summary": "Example request" }, "ExampleProducerRequest": { "value": { "key": "summary", "revision": 1, "kind": "text", "content": "Root cause: a slow database query." }, "summary": "Example producer request" } } } }, "required": true }, "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "description": "Notebook block. version is the block concurrency token; dependencies are block IDs and\nparameterKeys reference notebook parameters. output is the latest successful result and may\nremain available during a rerun; currentExecution describes the latest attempt. Poll\nexecution details for transcript and pending input. producerKey and producerRevision are\nset on blocks a producer wrote.", "properties": { "id": { "type": "string", "description": "The block ID" }, "position": { "type": "integer", "description": "The block's position in the notebook, starting at 0" }, "kind": { "type": "string", "description": "text for Markdown, or query for a data query" }, "title": { "type": "string", "description": "The block title. May be empty" }, "content": { "type": "string", "description": "The block's content: Markdown for text, the query for query" }, "generationPrompt": { "type": "string", "description": "Instructions used when running the block" }, "generatedContent": { "type": "string", "description": "The latest generated content, before anyone edited it" }, "output": { "description": "The latest successful result. Text blocks have schemaVersion and markdown", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "outputStatus": { "type": "string", "description": "available, notRun, or the status of the latest execution" }, "currentExecution": { "type": "object", "properties": { "id": { "type": "string", "description": "The execution ID" }, "status": { "type": "string", "description": "The execution status" }, "executor": { "type": "string", "description": "What ran the block" }, "schemaVersion": { "type": "integer", "description": "The version of the result's schema" }, "startedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution started" }, "completedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution finished, if it has" }, "error": { "description": "What went wrong, if the execution failed", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] } }, "required": [ "completedAt", "error", "executor", "id", "schemaVersion", "startedAt", "status" ], "nullable": true, "description": "The latest execution, if the block has run" }, "config": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block runs, such as auto-run" }, "display": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block is shown. Text uses type markdown; query uses table, line, bar, or area" }, "dependencies": { "type": "array", "items": { "type": "string" }, "description": "The IDs of blocks this block depends on" }, "parameterKeys": { "type": "array", "items": { "type": "string" }, "description": "The keys of the parameters the block uses" }, "version": { "type": "integer", "description": "The block's concurrency token. Send it as version with a change" }, "staleAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When an input changed after the output was made, if one did" }, "createdBy": { "type": "string", "nullable": true, "description": "The ID of the user who added the block, if a user did" }, "lastEditedBy": { "type": "string", "nullable": true, "description": "The ID of the user who last edited the block, if a user did" }, "producerKey": { "type": "string", "nullable": true, "description": "The producer's key for the block, if a producer wrote it" }, "producerRevision": { "type": "integer", "nullable": true, "description": "The producer's revision for the block, if a producer wrote it" } }, "required": [ "config", "content", "createdBy", "currentExecution", "dependencies", "display", "generatedContent", "generationPrompt", "id", "kind", "lastEditedBy", "output", "outputStatus", "parameterKeys", "position", "producerKey", "producerRevision", "staleAt", "title", "version" ] }, "examples": { "UpdatedBlock": { "value": { "id": "12", "position": 0, "kind": "text", "title": "Summary", "content": "Checkout latency rose after the 2.4.0 release.", "generationPrompt": "", "generatedContent": "Checkout latency rose after the 2.4.0 release.", "output": { "schemaVersion": 1, "markdown": "Checkout latency rose after the 2.4.0 release." }, "outputStatus": "available", "currentExecution": { "id": "40", "status": "completed", "executor": "code_mode", "schemaVersion": 1, "startedAt": "2026-11-10T18:00:00.000000Z", "completedAt": "2026-11-10T18:00:00.000000Z", "error": null }, "config": {}, "display": { "type": "markdown" }, "dependencies": [], "parameterKeys": [], "version": 1, "staleAt": null, "createdBy": null, "lastEditedBy": null, "producerKey": "summary", "producerRevision": 1 }, "summary": "Updated block" } } } }, "description": "" }, "201": { "content": { "application/json": { "schema": { "type": "object", "description": "Notebook block. version is the block concurrency token; dependencies are block IDs and\nparameterKeys reference notebook parameters. output is the latest successful result and may\nremain available during a rerun; currentExecution describes the latest attempt. Poll\nexecution details for transcript and pending input. producerKey and producerRevision are\nset on blocks a producer wrote.", "properties": { "id": { "type": "string", "description": "The block ID" }, "position": { "type": "integer", "description": "The block's position in the notebook, starting at 0" }, "kind": { "type": "string", "description": "text for Markdown, or query for a data query" }, "title": { "type": "string", "description": "The block title. May be empty" }, "content": { "type": "string", "description": "The block's content: Markdown for text, the query for query" }, "generationPrompt": { "type": "string", "description": "Instructions used when running the block" }, "generatedContent": { "type": "string", "description": "The latest generated content, before anyone edited it" }, "output": { "description": "The latest successful result. Text blocks have schemaVersion and markdown", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "outputStatus": { "type": "string", "description": "available, notRun, or the status of the latest execution" }, "currentExecution": { "type": "object", "properties": { "id": { "type": "string", "description": "The execution ID" }, "status": { "type": "string", "description": "The execution status" }, "executor": { "type": "string", "description": "What ran the block" }, "schemaVersion": { "type": "integer", "description": "The version of the result's schema" }, "startedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution started" }, "completedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution finished, if it has" }, "error": { "description": "What went wrong, if the execution failed", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] } }, "required": [ "completedAt", "error", "executor", "id", "schemaVersion", "startedAt", "status" ], "nullable": true, "description": "The latest execution, if the block has run" }, "config": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block runs, such as auto-run" }, "display": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block is shown. Text uses type markdown; query uses table, line, bar, or area" }, "dependencies": { "type": "array", "items": { "type": "string" }, "description": "The IDs of blocks this block depends on" }, "parameterKeys": { "type": "array", "items": { "type": "string" }, "description": "The keys of the parameters the block uses" }, "version": { "type": "integer", "description": "The block's concurrency token. Send it as version with a change" }, "staleAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When an input changed after the output was made, if one did" }, "createdBy": { "type": "string", "nullable": true, "description": "The ID of the user who added the block, if a user did" }, "lastEditedBy": { "type": "string", "nullable": true, "description": "The ID of the user who last edited the block, if a user did" }, "producerKey": { "type": "string", "nullable": true, "description": "The producer's key for the block, if a producer wrote it" }, "producerRevision": { "type": "integer", "nullable": true, "description": "The producer's revision for the block, if a producer wrote it" } }, "required": [ "config", "content", "createdBy", "currentExecution", "dependencies", "display", "generatedContent", "generationPrompt", "id", "kind", "lastEditedBy", "output", "outputStatus", "parameterKeys", "position", "producerKey", "producerRevision", "staleAt", "title", "version" ] }, "examples": { "CreatedBlock": { "value": { "id": "12", "position": 0, "kind": "text", "title": "Summary", "content": "Checkout latency rose after the 2.4.0 release.", "generationPrompt": "", "generatedContent": "Checkout latency rose after the 2.4.0 release.", "output": { "schemaVersion": 1, "markdown": "Checkout latency rose after the 2.4.0 release." }, "outputStatus": "available", "currentExecution": { "id": "40", "status": "completed", "executor": "code_mode", "schemaVersion": 1, "startedAt": "2026-11-10T18:00:00.000000Z", "completedAt": "2026-11-10T18:00:00.000000Z", "error": null }, "config": {}, "display": { "type": "markdown" }, "dependencies": [], "parameterKeys": [], "version": 1, "staleAt": null, "createdBy": null, "lastEditedBy": null, "producerKey": "summary", "producerRevision": 1 }, "summary": "Created block" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "description": "Conflict" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/notebooks/{notebook_id}/blocks/{block_id}/": { "put": { "operationId": "Update a Notebook Block", "description": "**Experimental:** This API is under active development and may change.\n\nUpdate at least one of title, content, generationPrompt, config, or display. Send both\nnotebook and block versions. The block kind cannot change. Returns the updated block.\nRequires a user or service account. Requires the organizations:investigations feature\nand open organization membership.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "notebook_id", "schema": { "type": "string" }, "description": "The ID of an investigation in this organization.", "required": true }, { "in": "path", "name": "block_id", "schema": { "type": "string" }, "description": "The ID of an active block in this investigation.", "required": true } ], "tags": [ "Notebooks" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Camel-case API fields while preserving keys inside JSON objects.\n\nUnknown fields are rejected rather than silently dropped, so a typo'd field\nname fails loudly instead of being ignored.", "properties": { "notebookVersion": { "type": "integer", "minimum": 1, "description": "Current notebook version from the latest detail response. Stale versions return 409." }, "version": { "type": "integer", "minimum": 1, "description": "Current block version from the latest block response. Stale versions return 409." }, "title": { "type": "string", "description": "Block title. May be empty.", "maxLength": 255 }, "content": { "type": "string", "description": "User-authored content. May be empty." }, "generationPrompt": { "type": "string", "description": "Instructions used when executing the block. May be empty." }, "config": { "type": "object", "additionalProperties": {}, "description": "Block configuration object. Nested keys are preserved." }, "display": { "type": "object", "additionalProperties": {}, "description": "Display settings. Text uses type markdown; query uses table, line, bar, or area. Versioned settings use version 1. Charts require xAxis and non-empty yAxes. Defaults to Markdown for text and table for query." } }, "required": [ "notebookVersion", "version" ], "additionalProperties": false }, "examples": { "ExampleRequest": { "value": { "notebookVersion": 2, "version": 1, "content": "Revised observations" }, "summary": "Example request" } } } }, "required": true }, "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "description": "Notebook block. version is the block concurrency token; dependencies are block IDs and\nparameterKeys reference notebook parameters. output is the latest successful result and may\nremain available during a rerun; currentExecution describes the latest attempt. Poll\nexecution details for transcript and pending input. producerKey and producerRevision are\nset on blocks a producer wrote.", "properties": { "id": { "type": "string", "description": "The block ID" }, "position": { "type": "integer", "description": "The block's position in the notebook, starting at 0" }, "kind": { "type": "string", "description": "text for Markdown, or query for a data query" }, "title": { "type": "string", "description": "The block title. May be empty" }, "content": { "type": "string", "description": "The block's content: Markdown for text, the query for query" }, "generationPrompt": { "type": "string", "description": "Instructions used when running the block" }, "generatedContent": { "type": "string", "description": "The latest generated content, before anyone edited it" }, "output": { "description": "The latest successful result. Text blocks have schemaVersion and markdown", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "outputStatus": { "type": "string", "description": "available, notRun, or the status of the latest execution" }, "currentExecution": { "type": "object", "properties": { "id": { "type": "string", "description": "The execution ID" }, "status": { "type": "string", "description": "The execution status" }, "executor": { "type": "string", "description": "What ran the block" }, "schemaVersion": { "type": "integer", "description": "The version of the result's schema" }, "startedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution started" }, "completedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution finished, if it has" }, "error": { "description": "What went wrong, if the execution failed", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] } }, "required": [ "completedAt", "error", "executor", "id", "schemaVersion", "startedAt", "status" ], "nullable": true, "description": "The latest execution, if the block has run" }, "config": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block runs, such as auto-run" }, "display": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block is shown. Text uses type markdown; query uses table, line, bar, or area" }, "dependencies": { "type": "array", "items": { "type": "string" }, "description": "The IDs of blocks this block depends on" }, "parameterKeys": { "type": "array", "items": { "type": "string" }, "description": "The keys of the parameters the block uses" }, "version": { "type": "integer", "description": "The block's concurrency token. Send it as version with a change" }, "staleAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When an input changed after the output was made, if one did" }, "createdBy": { "type": "string", "nullable": true, "description": "The ID of the user who added the block, if a user did" }, "lastEditedBy": { "type": "string", "nullable": true, "description": "The ID of the user who last edited the block, if a user did" }, "producerKey": { "type": "string", "nullable": true, "description": "The producer's key for the block, if a producer wrote it" }, "producerRevision": { "type": "integer", "nullable": true, "description": "The producer's revision for the block, if a producer wrote it" } }, "required": [ "config", "content", "createdBy", "currentExecution", "dependencies", "display", "generatedContent", "generationPrompt", "id", "kind", "lastEditedBy", "output", "outputStatus", "parameterKeys", "position", "producerKey", "producerRevision", "staleAt", "title", "version" ] }, "examples": { "Block": { "value": { "id": "12", "position": 0, "kind": "text", "title": "Summary", "content": "Checkout latency rose after the 2.4.0 release.", "generationPrompt": "", "generatedContent": "Checkout latency rose after the 2.4.0 release.", "output": { "schemaVersion": 1, "markdown": "Checkout latency rose after the 2.4.0 release." }, "outputStatus": "available", "currentExecution": { "id": "40", "status": "completed", "executor": "code_mode", "schemaVersion": 1, "startedAt": "2026-11-10T18:00:00.000000Z", "completedAt": "2026-11-10T18:00:00.000000Z", "error": null }, "config": {}, "display": { "type": "markdown" }, "dependencies": [], "parameterKeys": [], "version": 1, "staleAt": null, "createdBy": null, "lastEditedBy": null, "producerKey": "summary", "producerRevision": 1 } } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "description": "Conflict" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true }, "delete": { "operationId": "Delete a Notebook Block", "description": "**Experimental:** This API is under active development and may change.\n\nSoft-delete an active block using notebook and block versions. Active executions and\nother state conflicts return 409. Returns no body. Requires a user or service account.\nRequires the organizations:investigations feature and open organization membership.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "notebook_id", "schema": { "type": "string" }, "description": "The ID of an investigation in this organization.", "required": true }, { "in": "path", "name": "block_id", "schema": { "type": "string" }, "description": "The ID of an active block in this investigation.", "required": true } ], "tags": [ "Notebooks" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Camel-case API fields while preserving keys inside JSON objects.\n\nUnknown fields are rejected rather than silently dropped, so a typo'd field\nname fails loudly instead of being ignored.", "properties": { "notebookVersion": { "type": "integer", "minimum": 1, "description": "Current notebook version from the latest detail response. Stale versions return 409." }, "version": { "type": "integer", "minimum": 1, "description": "Current block version from the latest block response. Stale versions return 409." } }, "required": [ "notebookVersion", "version" ], "additionalProperties": false }, "examples": { "ExampleRequest": { "value": { "notebookVersion": 2, "version": 1 }, "summary": "Example request" } } } }, "required": true }, "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "description": "Conflict" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/notebooks/{notebook_id}/blocks/order/": { "put": { "operationId": "Reorder Notebook Blocks", "description": "**Experimental:** This API is under active development and may change.\n\nSet the order of all active blocks. Supply every active block ID exactly once and the\ncurrent notebook version. Returns the updated notebook with ordered blocks. Requires a\nuser or service account. Requires the organizations:investigations feature and open\norganization membership.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "notebook_id", "schema": { "type": "string" }, "description": "The ID of an investigation in this organization.", "required": true } ], "tags": [ "Notebooks" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Camel-case API fields while preserving keys inside JSON objects.\n\nUnknown fields are rejected rather than silently dropped, so a typo'd field\nname fails loudly instead of being ignored.", "properties": { "notebookVersion": { "type": "integer", "minimum": 1, "description": "Current notebook version from the latest detail response. Stale versions return 409." }, "blockIds": { "type": "array", "items": { "type": "integer", "minimum": 1 }, "description": "Every active block ID exactly once, in the desired order." } }, "required": [ "notebookVersion", "blockIds" ], "additionalProperties": false }, "examples": { "ExampleRequest": { "value": { "notebookVersion": 3, "blockIds": [ 2, 1 ] }, "summary": "Example request" } } } }, "required": true }, "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "description": "Full notebook with ordered active blocks, parameter definitions and saved values, project\nIDs, and source context. source.snapshot is present only for source-backed investigations.\nactionRequests has Seer's action requests that aren't superseded, plus stale ones while Seer\nre-checks them, newest report first, with that report's primary at the top.", "properties": { "id": { "type": "string", "description": "The notebook ID" }, "title": { "type": "string", "description": "The notebook title" }, "summary": { "type": "string", "nullable": true, "description": "A one-line summary of the notebook, if one was generated" }, "summaryDescription": { "type": "string", "nullable": true, "description": "A longer summary of the notebook, if one was generated" }, "status": { "type": "string", "description": "active or archived. Archived notebooks are read-only" }, "sourceType": { "type": "string", "description": "What the notebook is about: manual, or a source type" }, "createdBy": { "type": "string", "nullable": true, "description": "The ID of the user who created the notebook, if a user did" }, "creator": { "type": "object", "properties": { "type": { "enum": [ "user", "service_account", "system", "integration", "agent", "unknown" ], "type": "string", "description": "Whether a user or a service account created the notebook" }, "id": { "type": "string", "description": "The ID of the user or service account that created the notebook" } }, "required": [ "id", "type" ], "nullable": true, "description": "The user or service account that created the notebook" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the notebook was created" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the notebook last changed" }, "version": { "type": "integer", "description": "The notebook's concurrency token. Send it as notebookVersion with a change" }, "blockCount": { "type": "integer", "description": "The number of blocks the notebook has" }, "isFavorited": { "type": "boolean", "description": "Whether the requesting user favorited the notebook" }, "titleGeneration": { "type": "object", "properties": { "status": { "type": "string", "nullable": true, "description": "The state of automatic title generation, or null if it hasn't run" } }, "required": [ "status" ], "description": "The state of automatic title generation" }, "orchestration": { "type": "object", "properties": { "phase": { "type": "string", "description": "The phase the agent's run is in" }, "status": { "type": "string", "description": "The status of the agent's run" }, "heartbeatAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the run last reported progress" }, "notebookRevision": { "type": "integer", "description": "How many times the run has changed the notebook's report" } }, "required": [ "heartbeatAt", "notebookRevision", "phase", "status" ], "nullable": true, "description": "The agent's run for the notebook, if it has one" }, "template": { "type": "object", "properties": { "key": { "type": "string", "nullable": true, "description": "The key of the template the notebook started from, if any" }, "version": { "type": "integer", "nullable": true, "description": "The version of that template, if any" } }, "required": [ "key", "version" ], "nullable": true, "description": "The template the notebook started from, if any" }, "source": { "type": "object", "properties": { "snapshot": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "What Sentry knew about the source when the notebook started. Only on source-backed notebooks" }, "type": { "type": "string", "description": "The source type: manual, or the type of what the notebook is about" }, "ref": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "The identifying fields of the source, such as an issue ID. Empty for a manual notebook" }, "revision": { "type": "integer", "nullable": true, "description": "The notebook's revision for its source. A new revision starts once the previous one is archived. Null for a manual notebook" } }, "required": [ "ref", "revision", "type" ], "description": "What the notebook is about" }, "filters": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "Saved filters, stored with their original keys" }, "projectIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the projects the notebook covers" }, "parameters": { "type": "array", "items": { "type": "object", "description": "Parameter definition and saved override. type and constraints govern accepted values;\ndefaultValue and savedValue may be null. Use key in the parameter-values update request.", "properties": { "id": { "type": "string", "description": "The parameter ID" }, "key": { "type": "string", "description": "The key blocks use to refer to the parameter" }, "label": { "type": "string", "description": "The parameter's display name" }, "description": { "type": "string", "description": "What the parameter is for" }, "type": { "type": "string", "description": "The type of value the parameter takes" }, "required": { "type": "boolean", "description": "Whether the parameter needs a value" }, "constraints": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "Limits on the parameter's value, by type" }, "defaultValue": { "description": "The value used when none is saved", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "savedValue": { "description": "The saved value, or null", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "source": { "type": "string", "description": "Who defined the parameter" }, "position": { "type": "integer", "description": "The parameter's position in the notebook" }, "version": { "type": "integer", "description": "The parameter's concurrency token" } }, "required": [ "constraints", "defaultValue", "description", "id", "key", "label", "position", "required", "savedValue", "source", "type", "version" ] }, "description": "The notebook's parameters, in order" }, "blocks": { "type": "array", "items": { "type": "object", "description": "Notebook block. version is the block concurrency token; dependencies are block IDs and\nparameterKeys reference notebook parameters. output is the latest successful result and may\nremain available during a rerun; currentExecution describes the latest attempt. Poll\nexecution details for transcript and pending input. producerKey and producerRevision are\nset on blocks a producer wrote.", "properties": { "id": { "type": "string", "description": "The block ID" }, "position": { "type": "integer", "description": "The block's position in the notebook, starting at 0" }, "kind": { "type": "string", "description": "text for Markdown, or query for a data query" }, "title": { "type": "string", "description": "The block title. May be empty" }, "content": { "type": "string", "description": "The block's content: Markdown for text, the query for query" }, "generationPrompt": { "type": "string", "description": "Instructions used when running the block" }, "generatedContent": { "type": "string", "description": "The latest generated content, before anyone edited it" }, "output": { "description": "The latest successful result. Text blocks have schemaVersion and markdown", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "outputStatus": { "type": "string", "description": "available, notRun, or the status of the latest execution" }, "currentExecution": { "type": "object", "properties": { "id": { "type": "string", "description": "The execution ID" }, "status": { "type": "string", "description": "The execution status" }, "executor": { "type": "string", "description": "What ran the block" }, "schemaVersion": { "type": "integer", "description": "The version of the result's schema" }, "startedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution started" }, "completedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution finished, if it has" }, "error": { "description": "What went wrong, if the execution failed", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] } }, "required": [ "completedAt", "error", "executor", "id", "schemaVersion", "startedAt", "status" ], "nullable": true, "description": "The latest execution, if the block has run" }, "config": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block runs, such as auto-run" }, "display": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block is shown. Text uses type markdown; query uses table, line, bar, or area" }, "dependencies": { "type": "array", "items": { "type": "string" }, "description": "The IDs of blocks this block depends on" }, "parameterKeys": { "type": "array", "items": { "type": "string" }, "description": "The keys of the parameters the block uses" }, "version": { "type": "integer", "description": "The block's concurrency token. Send it as version with a change" }, "staleAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When an input changed after the output was made, if one did" }, "createdBy": { "type": "string", "nullable": true, "description": "The ID of the user who added the block, if a user did" }, "lastEditedBy": { "type": "string", "nullable": true, "description": "The ID of the user who last edited the block, if a user did" }, "producerKey": { "type": "string", "nullable": true, "description": "The producer's key for the block, if a producer wrote it" }, "producerRevision": { "type": "integer", "nullable": true, "description": "The producer's revision for the block, if a producer wrote it" } }, "required": [ "config", "content", "createdBy", "currentExecution", "dependencies", "display", "generatedContent", "generationPrompt", "id", "kind", "lastEditedBy", "output", "outputStatus", "parameterKeys", "position", "producerKey", "producerRevision", "staleAt", "title", "version" ] }, "description": "The notebook's blocks, in order" }, "actionRequests": { "type": "array", "items": { "type": "object", "description": "A step Seer suggests. `primary` marks the recommended next step after a run, and `anchor`\nputs a request under a block or hypothesis. `action` is Seer's payload, or null when it's\nonly advice. `canApply` says whether this viewer can apply it now, and `cannotApplyReason`\nsays why not. What's in `appliedDetails` depends on the action kind, and `appliedBy` is null\nwhen Sentry applied it automatically. `followUp` is what Seer did with the re-check or re-run\nSentry sent for this request.", "properties": { "id": { "type": "string", "description": "The action request ID" }, "key": { "type": "string", "description": "The agent's key for the request" }, "reportRevision": { "type": "integer", "description": "The report revision that suggested it" }, "primary": { "type": "boolean", "description": "Whether it's the recommended next step" }, "anchor": { "type": "object", "description": "The block or hypothesis the request is under, if any", "properties": { "type": { "type": "string", "description": "block or hypothesis" }, "id": { "type": "string", "description": "The agent's ID for the block or hypothesis" }, "blockId": { "type": "string", "nullable": true, "description": "The ID of the block the request is under, if it still exists" } }, "required": [ "blockId", "id", "type" ], "nullable": true }, "title": { "type": "string", "description": "A short title for the step" }, "rationale": { "type": "string", "description": "Why the agent suggests it" }, "impact": { "type": "string", "nullable": true, "description": "What the step would change, if the agent said" }, "state": { "type": "string", "description": "suggested, applied, failed, superseded, or withdrawn" }, "reason": { "type": "string", "nullable": true, "description": "Why the request is in its state, if there's a reason" }, "action": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "nullable": true, "description": "The agent's action payload, or null when the request is only advice" }, "canApply": { "type": "boolean", "description": "Whether the requesting user can apply it now" }, "cannotApplyReason": { "enum": [ "investigation_archived", "not_suggested", "unsupported_action", "no_access", "not_target_detector", "detector_not_found", "permission_denied", "dynamic_detector", null ], "type": "string", "nullable": true, "description": "Why the requesting user can't apply it, if they can't" }, "appliedBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "The user who applied it. Null when Sentry applied it" }, "appliedDetails": { "anyOf": [ { "type": "object", "properties": { "detectorId": { "type": "string", "description": "The ID of the monitor that was changed" }, "detectorName": { "type": "string", "description": "The name of the monitor that was changed" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "The monitor settings that were changed" } }, "required": [ "detectorId", "detectorName", "fields" ] }, { "type": "object", "properties": { "provider": { "enum": [ "datadog", "gcp" ], "type": "string", "description": "The telemetry provider that was connected" } }, "required": [ "provider" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "What applying it changed. The fields depend on the action" }, "dateApplied": { "type": "string", "format": "date-time", "nullable": true, "description": "When it was applied" }, "error": { "type": "object", "description": "What went wrong, if applying it failed", "properties": { "code": { "enum": [ "already_applied", "withdrawn", "stale", "validation_failed", "action_changed", "not_stale", "not_retryable" ], "type": "string", "description": "The error code" }, "current": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "description": "The current values of the settings the action would change" }, "messages": { "type": "array", "items": { "type": "string" }, "description": "Messages that explain the error" } }, "required": [ "code" ], "nullable": true }, "followUp": { "type": "object", "description": "The re-check or re-run Sentry sent the agent, if any", "properties": { "status": { "enum": [ "accepted", "dispatched", "acknowledged", "failed" ], "type": "string", "description": "Where the follow-up is" }, "reason": { "enum": [ "workflow_version_conflict", "idempotency_conflict", "invalid_command_target", "action_requests_report_changed", "run_cancelled", "run_failed", "provider_not_connected", "provider_already_used", null ], "type": "string", "nullable": true, "description": "Why the agent turned down or dropped the follow-up, if it did" }, "rerun": { "enum": [ "started", "held", "skipped", null ], "type": "string", "nullable": true, "description": "What the agent did with a re-run. Null for a re-check" }, "retryable": { "type": "boolean", "description": "Whether the requesting user can send it again" } }, "required": [ "reason", "rerun", "retryable", "status" ], "nullable": true }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the agent suggested it" } }, "required": [ "action", "anchor", "appliedBy", "appliedDetails", "canApply", "cannotApplyReason", "dateApplied", "dateCreated", "error", "followUp", "id", "impact", "key", "primary", "rationale", "reason", "reportRevision", "state", "title" ] }, "description": "Steps the agent suggests, newest report first" } }, "required": [ "actionRequests", "blockCount", "blocks", "createdBy", "creator", "dateCreated", "dateUpdated", "filters", "id", "isFavorited", "orchestration", "parameters", "projectIds", "source", "sourceType", "status", "summary", "summaryDescription", "template", "title", "titleGeneration", "version" ] }, "examples": { "NotebookDetails": { "value": { "id": "7", "title": "Checkout latency", "summary": null, "summaryDescription": null, "status": "active", "sourceType": "manual", "createdBy": "1", "creator": { "type": "user", "id": "1" }, "dateCreated": "2026-11-10T17:55:00.000000Z", "dateUpdated": "2026-11-10T18:00:00.000000Z", "version": 2, "blockCount": 1, "isFavorited": false, "titleGeneration": { "status": null }, "orchestration": null, "template": null, "source": { "type": "manual", "ref": {}, "revision": null }, "filters": {}, "projectIds": [ 1 ], "parameters": [], "blocks": [ { "id": "12", "position": 0, "kind": "text", "title": "Summary", "content": "Checkout latency rose after the 2.4.0 release.", "generationPrompt": "", "generatedContent": "Checkout latency rose after the 2.4.0 release.", "output": { "schemaVersion": 1, "markdown": "Checkout latency rose after the 2.4.0 release." }, "outputStatus": "available", "currentExecution": { "id": "40", "status": "completed", "executor": "code_mode", "schemaVersion": 1, "startedAt": "2026-11-10T18:00:00.000000Z", "completedAt": "2026-11-10T18:00:00.000000Z", "error": null }, "config": {}, "display": { "type": "markdown" }, "dependencies": [], "parameterKeys": [], "version": 1, "staleAt": null, "createdBy": null, "lastEditedBy": null, "producerKey": "summary", "producerRevision": 1 } ], "actionRequests": [] }, "summary": "Notebook details" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "description": "Conflict" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/notifications/actions/": { "get": { "operationId": "listOrganizationNotificationsActions", "description": "Returns all Spike Protection Notification Actions for an organization.\n\nNotification Actions notify a set of members when an action has been triggered through a notification service such as Slack or Sentry.\nFor example, organization owners and managers can receive an email when a spike occurs.\n\nYou can use the `project` query parameter with project IDs or slugs to filter for certain projects.\nA legacy project slug query parameter is also supported and takes priority if both are present.", "summary": "List Spike Protection Notifications", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "project_id_or_slug", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The legacy project slug filter. Prefer `project`, which accepts project IDs or slugs. Use `$all` to include all available projects. For example, the following are valid parameters:\n- `/?projectSlug=$all`\n- `/?projectSlug=android&projectSlug=javascript-react`\n" }, { "in": "query", "name": "triggerType", "schema": { "type": "string" }, "description": "Type of the trigger that causes the notification. The only supported value right now is: `spike-protection`" } ], "tags": [ "Spike Protection" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the notification action" }, "organizationId": { "type": "integer", "description": "ID of the organization" }, "integrationId": { "type": "integer", "nullable": true, "description": "ID of the integration that sends the notification. Null when none is used" }, "sentryAppId": { "type": "integer", "nullable": true, "description": "ID of the Sentry app that receives the notification. Null when none is used" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the action applies to" }, "serviceType": { "type": "string", "nullable": true, "description": "Service that sends the notification, such as email, slack or pagerduty" }, "triggerType": { "type": "string", "description": "What triggers the action, such as audit-log or spike-protection" }, "targetType": { "type": "string", "nullable": true, "description": "Kind of target: specific, user, team, sentry_app or issue_owners" }, "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target in the service, such as a Slack channel ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Name of the target, such as #alerts" } }, "required": [ "id", "integrationId", "organizationId", "projects", "sentryAppId", "serviceType", "targetDisplay", "targetIdentifier", "targetType", "triggerType" ] }, "examples": { "CreateANewEmailSpikeProtectionNotificationActionForAProject": { "value": { "id": 836501735, "organizationId": 62848264, "integrationId": null, "sentryAppId": null, "serviceType": "sentry_notification", "targetDisplay": "default", "targetIdentifier": "default", "targetType": "specific", "triggerType": "spike-protection", "projects": [ 4505321021243392 ] }, "summary": "Create a new email spike protection notification action for a project" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createOrganizationNotificationsAction", "description": "Creates a new Notification Action for Spike Protection.\n\nNotification Actions notify a set of members when an action has been triggered through a notification service such as Slack or Sentry.\nFor example, organization owners and managers can receive an email when a spike occurs.", "summary": "Create a Spike Protection Notification Action", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Spike Protection" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Django Rest Framework serializer for incoming NotificationAction API payloads", "properties": { "trigger_type": { "type": "string", "description": "Type of the trigger that causes the notification. The only supported trigger right now is: `spike-protection`." }, "service_type": { "type": "string", "description": "Service that is used for sending the notification.\n- `email`\n- `slack`\n- `sentry_notification`\n- `pagerduty`\n- `opsgenie`\n" }, "integration_id": { "type": "integer", "description": "ID of the integration used as the notification service. See\n[List Integrations](https://docs.sentry.io/api/integrations/list-an-organizations-available-integrations/)\nto retrieve a full list of integrations.\n\nRequired if **service_type** is `slack`, `pagerduty` or `opsgenie`.\n" }, "target_identifier": { "type": "string", "description": "ID of the notification target, like a Slack channel ID.\n\nRequired if **service_type** is `slack` or `opsgenie`.\n" }, "target_display": { "type": "string", "description": "Name of the notification target, like a Slack channel name.\n\nRequired if **service_type** is `slack` or `opsgenie`.\n" }, "projects": { "type": "array", "items": { "type": "string" }, "description": "List of project IDs or slugs that the Notification Action is created for." }, "sentry_app_id": { "type": "integer", "description": "ID of the custom integration to notify, when the target is a Sentry app." }, "target_type": { "type": "string", "default": "specific", "description": "How the notification target is addressed." } }, "required": [ "service_type", "trigger_type" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the notification action" }, "organizationId": { "type": "integer", "description": "ID of the organization" }, "integrationId": { "type": "integer", "nullable": true, "description": "ID of the integration that sends the notification. Null when none is used" }, "sentryAppId": { "type": "integer", "nullable": true, "description": "ID of the Sentry app that receives the notification. Null when none is used" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the action applies to" }, "serviceType": { "type": "string", "nullable": true, "description": "Service that sends the notification, such as email, slack or pagerduty" }, "triggerType": { "type": "string", "description": "What triggers the action, such as audit-log or spike-protection" }, "targetType": { "type": "string", "nullable": true, "description": "Kind of target: specific, user, team, sentry_app or issue_owners" }, "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target in the service, such as a Slack channel ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Name of the target, such as #alerts" } }, "required": [ "id", "integrationId", "organizationId", "projects", "sentryAppId", "serviceType", "targetDisplay", "targetIdentifier", "targetType", "triggerType" ] }, "examples": { "CreateANewEmailSpikeProtectionNotificationActionForAProject": { "value": { "id": 836501735, "organizationId": 62848264, "integrationId": null, "sentryAppId": null, "serviceType": "sentry_notification", "targetDisplay": "default", "targetIdentifier": "default", "targetType": "specific", "triggerType": "spike-protection", "projects": [ 4505321021243392 ] }, "summary": "Create a new email spike protection notification action for a project" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/notifications/actions/{action_id}/": { "get": { "operationId": "getOrganizationNotificationsAction", "description": "Returns a serialized Spike Protection Notification Action object.\n\nNotification Actions notify a set of members when an action has been triggered through a notification service such as Slack or Sentry.\nFor example, organization owners and managers can receive an email when a spike occurs.", "summary": "Retrieve a Spike Protection Notification Action", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "action_id", "schema": { "type": "integer" }, "description": "ID of the notification action to retrieve", "required": true } ], "tags": [ "Spike Protection" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the notification action" }, "organizationId": { "type": "integer", "description": "ID of the organization" }, "integrationId": { "type": "integer", "nullable": true, "description": "ID of the integration that sends the notification. Null when none is used" }, "sentryAppId": { "type": "integer", "nullable": true, "description": "ID of the Sentry app that receives the notification. Null when none is used" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the action applies to" }, "serviceType": { "type": "string", "nullable": true, "description": "Service that sends the notification, such as email, slack or pagerduty" }, "triggerType": { "type": "string", "description": "What triggers the action, such as audit-log or spike-protection" }, "targetType": { "type": "string", "nullable": true, "description": "Kind of target: specific, user, team, sentry_app or issue_owners" }, "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target in the service, such as a Slack channel ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Name of the target, such as #alerts" } }, "required": [ "id", "integrationId", "organizationId", "projects", "sentryAppId", "serviceType", "targetDisplay", "targetIdentifier", "targetType", "triggerType" ] }, "examples": { "RetrieveASpikeProtectionNotificationActionCreatedForAProject": { "value": { "id": 836501735, "organizationId": 62848264, "integrationId": null, "sentryAppId": null, "serviceType": "sentry_notification", "targetDisplay": "default", "targetIdentifier": "default", "targetType": "specific", "triggerType": "spike-protection", "projects": [ 4505321021243392 ] }, "summary": "Retrieve a spike protection notification action created for a project" } } } }, "description": "" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateOrganizationNotificationsAction", "description": "Updates a Spike Protection Notification Action.\n\nNotification Actions notify a set of members when an action has been triggered through a notification service such as Slack or Sentry.\nFor example, organization owners and managers can receive an email when a spike occurs.", "summary": "Update a Spike Protection Notification Action", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "action_id", "schema": { "type": "integer" }, "description": "ID of the notification action to retrieve", "required": true } ], "tags": [ "Spike Protection" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Django Rest Framework serializer for incoming NotificationAction API payloads", "properties": { "trigger_type": { "type": "string", "description": "Type of the trigger that causes the notification. The only supported trigger right now is: `spike-protection`." }, "service_type": { "type": "string", "description": "Service that is used for sending the notification.\n- `email`\n- `slack`\n- `sentry_notification`\n- `pagerduty`\n- `opsgenie`\n" }, "integration_id": { "type": "integer", "description": "ID of the integration used as the notification service. See\n[List Integrations](https://docs.sentry.io/api/integrations/list-an-organizations-available-integrations/)\nto retrieve a full list of integrations.\n\nRequired if **service_type** is `slack`, `pagerduty` or `opsgenie`.\n" }, "target_identifier": { "type": "string", "description": "ID of the notification target, like a Slack channel ID.\n\nRequired if **service_type** is `slack` or `opsgenie`.\n" }, "target_display": { "type": "string", "description": "Name of the notification target, like a Slack channel name.\n\nRequired if **service_type** is `slack` or `opsgenie`.\n" }, "projects": { "type": "array", "items": { "type": "string" }, "description": "List of project IDs or slugs that the Notification Action is created for." }, "sentry_app_id": { "type": "integer", "description": "ID of the custom integration to notify, when the target is a Sentry app." }, "target_type": { "type": "string", "default": "specific", "description": "How the notification target is addressed." } }, "required": [ "service_type", "trigger_type" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "202": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the notification action" }, "organizationId": { "type": "integer", "description": "ID of the organization" }, "integrationId": { "type": "integer", "nullable": true, "description": "ID of the integration that sends the notification. Null when none is used" }, "sentryAppId": { "type": "integer", "nullable": true, "description": "ID of the Sentry app that receives the notification. Null when none is used" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the action applies to" }, "serviceType": { "type": "string", "nullable": true, "description": "Service that sends the notification, such as email, slack or pagerduty" }, "triggerType": { "type": "string", "description": "What triggers the action, such as audit-log or spike-protection" }, "targetType": { "type": "string", "nullable": true, "description": "Kind of target: specific, user, team, sentry_app or issue_owners" }, "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target in the service, such as a Slack channel ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Name of the target, such as #alerts" } }, "required": [ "id", "integrationId", "organizationId", "projects", "sentryAppId", "serviceType", "targetDisplay", "targetIdentifier", "targetType", "triggerType" ] }, "examples": { "UpdateASpikeProtectionNotificationActionCreatedForAProjectToUseSentryNotificationAsNotificationService.": { "value": { "id": 836501735, "organizationId": 62848264, "integrationId": null, "sentryAppId": null, "serviceType": "sentry_notification", "targetDisplay": "default", "targetIdentifier": "default", "targetType": "specific", "triggerType": "spike-protection", "projects": [ 4505321021243392 ] }, "summary": "Update a spike protection notification action created for a project to use sentry_notification as notification service." } } } }, "description": "" }, "400": { "description": "Bad Request" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteOrganizationNotificationsAction", "description": "Deletes a Spike Protection Notification Action.\n\nNotification Actions notify a set of members when an action has been triggered through a notification service such as Slack or Sentry.\nFor example, organization owners and managers can receive an email when a spike occurs.", "summary": "Delete a Spike Protection Notification Action", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "action_id", "schema": { "type": "integer" }, "description": "ID of the notification action to retrieve", "required": true } ], "tags": [ "Spike Protection" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "204": { "description": "No Content" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/org-auth-tokens/": { "get": { "operationId": "listOrganizationAuthTokens", "description": "Return an organization's active org auth tokens, most recently used first, with\ntokens that were never used last. The list is not paginated.\n\nThe response never includes a token's value, only its last four characters. The full\ntoken is returned once, by the request that creates it.\n\nOrg auth tokens can be managed from a signed-in session, or with an OAuth application\ntoken that has the `org:tokens` scope in addition to one of the scopes listed here.\nPersonal auth tokens, org auth tokens and integration tokens can't call this endpoint\nand get a 403.", "summary": "List an Organization's Org Auth Tokens", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the org auth token" }, "name": { "type": "string", "description": "Name of the org auth token" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes granted to the token, such as org:ci" }, "tokenLastCharacters": { "type": "string", "nullable": true, "description": "Last four characters of the token, to tell tokens apart, or null" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the token was created" }, "dateLastUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the token last authenticated a request, or null" }, "projectLastUsedId": { "type": "string", "nullable": true, "description": "ID of the project the token was last used with, or null" }, "token": { "type": "string", "description": "The full token. Only included in the response that creates the token, and can't be retrieved again" } }, "required": [ "dateCreated", "dateLastUsed", "id", "name", "projectLastUsedId", "scopes", "tokenLastCharacters" ] } }, "examples": { "ListOrgAuthTokens": { "value": [ { "id": "1", "name": "CI release uploads", "scopes": [ "org:ci" ], "tokenLastCharacters": "Jk4Q", "dateCreated": "2024-07-16T15:36:46.048343Z", "dateLastUsed": "2024-07-17T09:12:44.104915Z", "projectLastUsedId": "2" }, { "id": "3", "name": "Unused token", "scopes": [ "org:ci" ], "tokenLastCharacters": "w2Pe", "dateCreated": "2024-07-16T15:36:46.048343Z", "dateLastUsed": null, "projectLastUsedId": null } ], "summary": "List org auth tokens" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "control", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createOrganizationAuthToken", "description": "Create an org auth token for an organization, for tools such as CI pipelines.\n\nThe response includes the full token in `token`. This is the only time the token is\nreturned: store it securely, because it can't be retrieved again.\n\nOrg auth tokens aren't tied to a member and keep working after the member who\ncreated them leaves the organization, so they can only be granted `org:ci`. Every new\ntoken is recorded in the organization's audit log, and every organization owner is\nemailed about it. Sending the same request again creates another token.\n\nOrg auth tokens can be managed from a signed-in session, or with an OAuth application\ntoken that has the `org:tokens` scope in addition to one of the scopes listed here.\nAn OAuth application token can only create a token with scopes that it holds itself;\notherwise the request gets a 403. Personal auth tokens, org auth tokens and\nintegration tokens can't call this endpoint and get a 403.", "summary": "Create an Org Auth Token", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Organizations" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Required. A name for the token, up to 255 characters, to tell it apart from the organization's other tokens." }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes to grant the token. Org auth tokens can only be granted `org:ci`, which is also the default: `[\"org:ci\"]`." } } } } } }, "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the org auth token" }, "name": { "type": "string", "description": "Name of the org auth token" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes granted to the token, such as org:ci" }, "tokenLastCharacters": { "type": "string", "nullable": true, "description": "Last four characters of the token, to tell tokens apart, or null" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the token was created" }, "dateLastUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the token last authenticated a request, or null" }, "projectLastUsedId": { "type": "string", "nullable": true, "description": "ID of the project the token was last used with, or null" }, "token": { "type": "string", "description": "The full token. Only included in the response that creates the token, and can't be retrieved again" } }, "required": [ "dateCreated", "dateLastUsed", "id", "name", "projectLastUsedId", "scopes", "tokenLastCharacters" ] }, "examples": { "CreateAnOrgAuthToken": { "value": { "id": "4", "name": "CI release uploads", "scopes": [ "org:ci" ], "tokenLastCharacters": "Jk4Q", "dateCreated": "2024-07-16T15:36:46.048343Z", "dateLastUsed": null, "projectLastUsedId": null, "token": "sntrys__" }, "summary": "Create an org auth token" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "control", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/org-auth-tokens/{token_id}/": { "delete": { "operationId": "deleteOrganizationAuthToken", "description": "Revoke an organization's org auth token, so it can no longer authenticate requests.\nThe revocation is recorded in the organization's audit log. Revoking a token that\nwas already revoked returns 404.\n\nOrg auth tokens can be managed from a signed-in session, or with an OAuth application\ntoken that has the `org:tokens` scope in addition to one of the scopes listed here.\nPersonal auth tokens, org auth tokens and integration tokens can't call this endpoint\nand get a 403.", "summary": "Revoke an Org Auth Token", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "token_id", "schema": { "type": "integer" }, "description": "The ID of the org auth token to revoke.", "required": true } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "org:admin", "org:write" ] } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "control", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/preprodartifacts/{artifact_id}/install-details/": { "get": { "operationId": "getOrganizationPreprodArtifactInstallDetails", "description": "Retrieve install info for a given artifact.\n\nReturns distribution and installation details for a specific preprod artifact,\nincluding whether the artifact is installable, the install URL, download count,\nand iOS-specific code signing information.", "summary": "Retrieve install info for a given artifact", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "artifact_id", "schema": { "type": "string" }, "description": "The ID of the build artifact.", "required": true } ], "tags": [ "Mobile Builds" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "buildId": { "type": "string", "description": "ID of the build" }, "state": { "enum": [ "UPLOADING", "UPLOADED", "PROCESSED", "FAILED" ], "type": "string", "description": "State of the build" }, "appInfo": { "type": "object", "properties": { "appId": { "type": "string", "nullable": true, "description": "App identifier of the build" }, "name": { "type": "string", "nullable": true, "description": "App name" }, "version": { "type": "string", "nullable": true, "description": "Version of the build" }, "buildNumber": { "type": "integer", "nullable": true, "description": "Build number" }, "artifactType": { "enum": [ "XCARCHIVE", "AAB", "APK", null ], "type": "string", "nullable": true, "description": "Type of the build file" }, "dateAdded": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was uploaded (ISO 8601)" }, "dateBuilt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was built (ISO 8601)" } }, "required": [ "appId", "artifactType", "buildNumber", "dateAdded", "dateBuilt", "name", "version" ], "description": "App details of the build" }, "gitInfo": { "type": "object", "properties": { "headSha": { "type": "string", "nullable": true, "description": "Commit SHA of the build" }, "baseSha": { "type": "string", "nullable": true, "description": "Commit SHA of the base the build is compared against" }, "provider": { "type": "string", "nullable": true, "description": "Version control provider, such as github" }, "headRepoName": { "type": "string", "nullable": true, "description": "Repository name of the head commit" }, "baseRepoName": { "type": "string", "nullable": true, "description": "Repository name of the base commit" }, "headRef": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the head commit" }, "baseRef": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the base commit" }, "prNumber": { "type": "integer", "nullable": true, "description": "Pull request number" } }, "required": [ "baseRef", "baseRepoName", "baseSha", "headRef", "headRepoName", "headSha", "prNumber", "provider" ], "nullable": true, "description": "Version control details of the build. Null when the build has none" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the build, in uppercase" }, "projectId": { "type": "string", "description": "ID of the project the build belongs to" }, "projectSlug": { "type": "string", "description": "Slug of the project the build belongs to" }, "buildConfiguration": { "type": "string", "nullable": true, "description": "Name of the build configuration, such as Release" }, "isInstallable": { "type": "boolean", "description": "Whether the build can be installed" }, "installUrl": { "type": "string", "format": "uri", "nullable": true, "description": "URL to install the build. Null when the build isn't installable" }, "installUrlExpiresAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When installUrl expires (ISO 8601)" }, "downloadCount": { "type": "integer", "description": "Number of times the build was downloaded" }, "releaseNotes": { "type": "string", "nullable": true, "description": "Release notes uploaded with the build" }, "installGroups": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Install groups the build belongs to" }, "isCodeSignatureValid": { "type": "boolean", "nullable": true, "description": "Whether the build's code signature is valid. Only set for Apple builds" }, "profileName": { "type": "string", "nullable": true, "description": "Name of the provisioning profile. Only set for Apple builds" }, "codesigningType": { "type": "string", "nullable": true, "description": "Code signing type, such as development or app-store. Only set for Apple builds" } }, "required": [ "appInfo", "buildConfiguration", "buildId", "codesigningType", "downloadCount", "gitInfo", "installGroups", "installUrl", "installUrlExpiresAt", "isCodeSignatureValid", "isInstallable", "platform", "profileName", "projectId", "projectSlug", "releaseNotes", "state" ] }, "examples": { "InstallableArtifact": { "value": { "buildId": "12345", "state": "PROCESSED", "appInfo": { "appId": "com.example.app", "name": "Example App", "version": "1.2.0", "buildNumber": 42, "artifactType": "AAB", "dateAdded": "2025-01-15T10:30:00+00:00", "dateBuilt": "2025-01-15T10:00:00+00:00" }, "gitInfo": { "headSha": "abc123def456", "baseSha": "789xyz000111", "provider": "github", "headRepoName": "org/repo", "baseRepoName": "org/repo", "headRef": "feature-branch", "baseRef": "main", "prNumber": 42 }, "platform": "ANDROID", "projectId": "1", "projectSlug": "my-project", "buildConfiguration": "release", "isInstallable": true, "installUrl": "https://sentry.io/api/0/projects/org/project/files/installablepreprodartifact/abc123/?response_format=apk", "installUrlExpiresAt": "2025-01-15T22:30:00+00:00", "downloadCount": 5, "releaseNotes": "Bug fixes and performance improvements.", "installGroups": [ "beta-testers" ], "isCodeSignatureValid": null, "profileName": null, "codesigningType": null }, "summary": "Installable Artifact" }, "Non-InstallableArtifact": { "value": { "buildId": "12345", "state": "PROCESSED", "appInfo": { "appId": "com.example.app", "name": "Example App", "version": "1.2.0", "buildNumber": 42, "artifactType": "AAB", "dateAdded": "2025-01-15T10:30:00+00:00", "dateBuilt": "2025-01-15T10:00:00+00:00" }, "gitInfo": null, "platform": "ANDROID", "projectId": "1", "projectSlug": "my-project", "buildConfiguration": null, "isInstallable": false, "installUrl": null, "installUrlExpiresAt": null, "downloadCount": 0, "releaseNotes": null, "installGroups": null, "isCodeSignatureValid": null, "profileName": null, "codesigningType": null }, "summary": "Non-Installable Artifact" }, "AppleArtifactWithCodeSigning": { "value": { "buildId": "12346", "state": "PROCESSED", "appInfo": { "appId": "com.example.app", "name": "Example App", "version": "1.2.0", "buildNumber": 42, "artifactType": "XCARCHIVE", "dateAdded": "2025-01-15T10:30:00+00:00", "dateBuilt": "2025-01-15T10:00:00+00:00" }, "gitInfo": { "headSha": "abc123def456", "baseSha": "789xyz000111", "provider": "github", "headRepoName": "org/repo", "baseRepoName": "org/repo", "headRef": "feature-branch", "baseRef": "main", "prNumber": 42 }, "platform": "APPLE", "projectId": "1", "projectSlug": "my-project", "buildConfiguration": "release", "isInstallable": true, "installUrl": "https://sentry.io/api/0/projects/org/project/files/installablepreprodartifact/abc123/?response_format=plist", "installUrlExpiresAt": "2025-01-15T22:30:00+00:00", "downloadCount": 3, "releaseNotes": null, "installGroups": null, "isCodeSignatureValid": true, "profileName": "iOS Team Provisioning Profile", "codesigningType": "development" }, "summary": "Apple Artifact with Code Signing" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/preprodartifacts/{artifact_id}/size-analysis/": { "get": { "operationId": "getOrganizationPreprodArtifactSizeAnalysis", "description": "Retrieve size analysis results for a given artifact.\n\nReturns size metrics including download size, install size, and optional insights.\nWhen a base artifact exists (either from commit comparison or via the `baseArtifactId` parameter),\ncomparison data showing size differences is included.\n\nThe response `state` field indicates the analysis status:\n- `PENDING`: Analysis has not started yet.\n- `PROCESSING`: Analysis is currently running.\n- `FAILED` / `NOT_RAN`: Analysis did not complete; `errorCode` and `errorMessage` are included.\n- `COMPLETED`: Analysis finished successfully with full size data.", "summary": "Retrieve Size Analysis results for a given artifact", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "artifact_id", "schema": { "type": "string" }, "description": "The ID of the build artifact.", "required": true }, { "in": "query", "name": "baseArtifactId", "schema": { "type": "string" }, "description": "Optional ID of the base artifact to compare against. If not provided, uses the default base head artifact." } ], "tags": [ "Mobile Builds" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "buildId": { "type": "string", "description": "ID of the build" }, "state": { "enum": [ "PENDING", "PROCESSING", "COMPLETED", "FAILED", "NOT_RAN" ], "type": "string", "description": "State of the size analysis" }, "appInfo": { "type": "object", "properties": { "appId": { "type": "string", "nullable": true, "description": "App identifier of the build" }, "name": { "type": "string", "nullable": true, "description": "App name" }, "version": { "type": "string", "nullable": true, "description": "Version of the build" }, "buildNumber": { "type": "integer", "nullable": true, "description": "Build number" }, "artifactType": { "enum": [ "XCARCHIVE", "AAB", "APK", null ], "type": "string", "nullable": true, "description": "Type of the build file" }, "dateAdded": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was uploaded (ISO 8601)" }, "dateBuilt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was built (ISO 8601)" } }, "required": [ "appId", "artifactType", "buildNumber", "dateAdded", "dateBuilt", "name", "version" ], "description": "App details of the build" }, "gitInfo": { "type": "object", "properties": { "headSha": { "type": "string", "nullable": true, "description": "Commit SHA of the build" }, "baseSha": { "type": "string", "nullable": true, "description": "Commit SHA of the base the build is compared against" }, "provider": { "type": "string", "nullable": true, "description": "Version control provider, such as github" }, "headRepoName": { "type": "string", "nullable": true, "description": "Repository name of the head commit" }, "baseRepoName": { "type": "string", "nullable": true, "description": "Repository name of the base commit" }, "headRef": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the head commit" }, "baseRef": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the base commit" }, "prNumber": { "type": "integer", "nullable": true, "description": "Pull request number" } }, "required": [ "baseRef", "baseRepoName", "baseSha", "headRef", "headRepoName", "headSha", "prNumber", "provider" ], "nullable": true, "description": "Version control details of the build. Null when the build has none" }, "errorCode": { "type": "string", "nullable": true, "description": "Error code when the size analysis failed or didn't run" }, "errorMessage": { "type": "string", "nullable": true, "description": "Error message when the size analysis failed or didn't run" }, "downloadSize": { "type": "integer", "nullable": true, "description": "Download size of the build in bytes. Only set when the analysis completed" }, "installSize": { "type": "integer", "nullable": true, "description": "Install size of the build in bytes. Only set when the analysis completed" }, "analysisDuration": { "type": "number", "format": "double", "nullable": true, "description": "How long the analysis took, in seconds. Only set when the analysis completed" }, "analysisVersion": { "type": "string", "nullable": true, "description": "Version of the analyzer that produced the results" }, "baseBuildId": { "type": "string", "nullable": true, "description": "ID of the base build the build is compared against. Null when there's no comparison" }, "baseAppInfo": { "type": "object", "properties": { "appId": { "type": "string", "nullable": true, "description": "App identifier of the build" }, "name": { "type": "string", "nullable": true, "description": "App name" }, "version": { "type": "string", "nullable": true, "description": "Version of the build" }, "buildNumber": { "type": "integer", "nullable": true, "description": "Build number" }, "artifactType": { "enum": [ "XCARCHIVE", "AAB", "APK", null ], "type": "string", "nullable": true, "description": "Type of the build file" }, "dateAdded": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was uploaded (ISO 8601)" }, "dateBuilt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was built (ISO 8601)" } }, "required": [ "appId", "artifactType", "buildNumber", "dateAdded", "dateBuilt", "name", "version" ], "nullable": true, "description": "App details of the base build. Null when there's no comparison" }, "insights": { "anyOf": [ { "type": "object", "properties": { "platform": { "enum": [ "android" ], "type": "string", "description": "Platform of the build" }, "duplicateFiles": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "groups": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the group" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files in the group" }, "totalSavings": { "type": "integer", "description": "Potential savings for the group in bytes" } }, "required": [ "files", "name", "totalSavings" ] }, "description": "Groups of files the insight applies to" } }, "required": [ "groups", "totalSavings" ], "nullable": true, "description": "Files that are duplicated" }, "webpOptimization": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Images that can be converted to WebP" }, "largeImages": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Large images" }, "largeVideos": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Large videos" }, "largeAudio": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Large audio files" }, "hermesDebugInfo": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Hermes bytecode files that contain debug info" }, "multipleNativeLibraryArchs": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Native libraries for architectures other than arm64-v8a" } }, "required": [ "duplicateFiles", "hermesDebugInfo", "largeAudio", "largeImages", "largeVideos", "multipleNativeLibraryArchs", "platform", "webpOptimization" ] }, { "type": "object", "properties": { "platform": { "enum": [ "apple" ], "type": "string", "description": "Platform of the build" }, "duplicateFiles": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "groups": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the group" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files in the group" }, "totalSavings": { "type": "integer", "description": "Potential savings for the group in bytes" } }, "required": [ "files", "name", "totalSavings" ] }, "description": "Groups of files the insight applies to" } }, "required": [ "groups", "totalSavings" ], "nullable": true, "description": "Files that are duplicated" }, "largeImages": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Large images" }, "largeAudios": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Large audio files" }, "largeVideos": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Large videos" }, "stripBinary": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the binary inside the build" }, "debugSectionsSavings": { "type": "integer", "description": "Savings from stripping debug sections in bytes" }, "symbolTableSavings": { "type": "integer", "description": "Savings from stripping the symbol table in bytes" }, "totalSavings": { "type": "integer", "description": "Potential savings for the binary in bytes" } }, "required": [ "debugSectionsSavings", "filePath", "symbolTableSavings", "totalSavings" ] }, "description": "Binaries that can be stripped" }, "totalDebugSectionsSavings": { "type": "integer", "description": "Savings from stripping debug sections of all binaries in bytes" }, "totalSymbolTableSavings": { "type": "integer", "description": "Savings from stripping symbol tables of all binaries in bytes" } }, "required": [ "files", "totalDebugSectionsSavings", "totalSavings", "totalSymbolTableSavings" ], "nullable": true, "description": "Binaries with debug sections or symbols that can be stripped" }, "localizedStringsMinify": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Localized strings files with comments that can be stripped" }, "smallFiles": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Files smaller than the file system block size" }, "looseImages": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "groups": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the group" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files in the group" }, "totalSavings": { "type": "integer", "description": "Potential savings for the group in bytes" } }, "required": [ "files", "name", "totalSavings" ] }, "description": "Groups of files the insight applies to" } }, "required": [ "groups", "totalSavings" ], "nullable": true, "description": "Images that could move into an asset catalog" }, "hermesDebugInfo": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Hermes bytecode files that contain debug info" }, "imageOptimization": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "optimizableFiles": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the image inside the build" }, "currentSize": { "type": "integer", "description": "Current size of the image in bytes" }, "minifySavings": { "type": "integer", "description": "Savings from minifying the image in bytes" }, "minifiedSize": { "type": "integer", "nullable": true, "description": "Size of the minified image in bytes. Null when not computed" }, "conversionSavings": { "type": "integer", "description": "Savings from converting the image to HEIC in bytes" }, "heicSize": { "type": "integer", "nullable": true, "description": "Size of the image as HEIC in bytes. Null when not computed" }, "idiom": { "type": "string", "nullable": true, "description": "Asset catalog idiom of the image. Null outside asset catalogs" }, "colorspace": { "type": "string", "nullable": true, "description": "Asset catalog color space of the image. Null outside asset catalogs" } }, "required": [ "colorspace", "conversionSavings", "currentSize", "filePath", "heicSize", "idiom", "minifiedSize", "minifySavings" ] }, "description": "Images that can be optimized" } }, "required": [ "optimizableFiles", "totalSavings" ], "nullable": true, "description": "Images that can be optimized" }, "mainBinaryExportedSymbols": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Main binaries with export metadata that can be reduced" }, "unnecessaryFiles": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Files that can be removed" }, "audioCompression": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the file in bytes" } }, "required": [ "filePath", "totalSavings" ] }, "description": "Files the insight applies to" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Audio files that can be compressed" }, "videoCompression": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "files": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the video inside the build" }, "totalSavings": { "type": "integer", "description": "Potential savings for the video in bytes" }, "recommendedCodec": { "type": "string", "description": "Codec recommended for the video" } }, "required": [ "filePath", "recommendedCodec", "totalSavings" ] }, "description": "Videos that can be compressed" } }, "required": [ "files", "totalSavings" ], "nullable": true, "description": "Videos that can be compressed" }, "alternateIconsOptimization": { "type": "object", "properties": { "totalSavings": { "type": "integer", "description": "Potential savings of the insight in bytes" }, "optimizableFiles": { "type": "array", "items": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the image inside the build" }, "currentSize": { "type": "integer", "description": "Current size of the image in bytes" }, "minifySavings": { "type": "integer", "description": "Savings from minifying the image in bytes" }, "minifiedSize": { "type": "integer", "nullable": true, "description": "Size of the minified image in bytes. Null when not computed" }, "conversionSavings": { "type": "integer", "description": "Savings from converting the image to HEIC in bytes" }, "heicSize": { "type": "integer", "nullable": true, "description": "Size of the image as HEIC in bytes. Null when not computed" }, "idiom": { "type": "string", "nullable": true, "description": "Asset catalog idiom of the image. Null outside asset catalogs" }, "colorspace": { "type": "string", "nullable": true, "description": "Asset catalog color space of the image. Null outside asset catalogs" } }, "required": [ "colorspace", "conversionSavings", "currentSize", "filePath", "heicSize", "idiom", "minifiedSize", "minifySavings" ] }, "description": "Images that can be optimized" } }, "required": [ "optimizableFiles", "totalSavings" ], "nullable": true, "description": "Alternate app icons that can be optimized" } }, "required": [ "alternateIconsOptimization", "audioCompression", "duplicateFiles", "hermesDebugInfo", "imageOptimization", "largeAudios", "largeImages", "largeVideos", "localizedStringsMinify", "looseImages", "mainBinaryExportedSymbols", "platform", "smallFiles", "stripBinary", "unnecessaryFiles", "videoCompression" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Suggestions for reducing the build's size. Null when there are none" }, "appComponents": { "type": "array", "items": { "type": "object", "properties": { "componentType": { "enum": [ "MAIN_ARTIFACT", "WATCH_ARTIFACT", "ANDROID_DYNAMIC_FEATURE", "APP_CLIP_ARTIFACT" ], "type": "string", "description": "Type of the component" }, "name": { "type": "string", "description": "Name of the component" }, "appId": { "type": "string", "description": "App identifier of the component" }, "path": { "type": "string", "description": "Path of the component inside the build" }, "downloadSize": { "type": "integer", "description": "Download size of the component in bytes" }, "installSize": { "type": "integer", "description": "Install size of the component in bytes" } }, "required": [ "appId", "componentType", "downloadSize", "installSize", "name", "path" ] }, "nullable": true, "description": "Components of the build, such as watch apps or dynamic features, with their sizes" }, "comparisons": { "type": "array", "items": { "type": "object", "properties": { "metricsArtifactType": { "enum": [ "MAIN_ARTIFACT", "WATCH_ARTIFACT", "ANDROID_DYNAMIC_FEATURE", "APP_CLIP_ARTIFACT" ], "type": "string", "description": "Type of the component compared" }, "identifier": { "type": "string", "nullable": true, "description": "Identifier of the component, such as a dynamic feature name" }, "state": { "enum": [ "PENDING", "PROCESSING", "SUCCESS", "FAILED" ], "type": "string", "description": "State of the comparison" }, "errorCode": { "type": "string", "nullable": true, "description": "Error code when the comparison failed" }, "errorMessage": { "type": "string", "nullable": true, "description": "Error message when the comparison failed" }, "sizeMetricDiff": { "type": "object", "properties": { "metricsArtifactType": { "enum": [ "MAIN_ARTIFACT", "WATCH_ARTIFACT", "ANDROID_DYNAMIC_FEATURE", "APP_CLIP_ARTIFACT" ], "type": "string", "description": "Type of the component the sizes are for" }, "identifier": { "type": "string", "nullable": true, "description": "Identifier of the component, such as a dynamic feature name" }, "headInstallSize": { "type": "integer", "description": "Install size of the head build in bytes" }, "headDownloadSize": { "type": "integer", "description": "Download size of the head build in bytes" }, "baseInstallSize": { "type": "integer", "description": "Install size of the base build in bytes" }, "baseDownloadSize": { "type": "integer", "description": "Download size of the base build in bytes" } }, "required": [ "baseDownloadSize", "baseInstallSize", "headDownloadSize", "headInstallSize", "identifier", "metricsArtifactType" ], "nullable": true, "description": "Head and base sizes. Only set when the comparison succeeded" }, "diffItems": { "type": "array", "items": { "type": "object", "properties": { "sizeDiff": { "type": "integer", "description": "Size change in bytes between the base and head builds" }, "headSize": { "type": "integer", "nullable": true, "description": "Size in bytes in the head build. Null when the item was removed" }, "baseSize": { "type": "integer", "nullable": true, "description": "Size in bytes in the base build. Null when the item was added" }, "path": { "type": "string", "description": "Path of the file or group" }, "itemType": { "type": "string", "nullable": true, "description": "Type of the file or group" }, "type": { "enum": [ "added", "removed", "increased", "decreased" ], "type": "string", "description": "How the item changed" }, "diffItems": { "type": "array", "items": { "type": "object", "description": "Same as the DiffItemResponseDict this is inside. Its fields are left out here so it doesn't repeat forever." }, "nullable": true, "description": "Changes to the item's children, in the same shape" } }, "required": [ "baseSize", "diffItems", "headSize", "itemType", "path", "sizeDiff", "type" ] }, "nullable": true, "description": "File and group size changes. Only set when the comparison succeeded" }, "insightDiffItems": { "type": "array", "items": { "type": "object", "properties": { "insightType": { "type": "string", "description": "Type of the insight, such as duplicate_files or large_images" }, "status": { "enum": [ "new", "resolved", "unresolved" ], "type": "string", "description": "How the insight changed" }, "totalSavingsChange": { "type": "integer", "description": "Change in the insight's potential savings in bytes" }, "fileDiffs": { "type": "array", "items": { "type": "object", "properties": { "sizeDiff": { "type": "integer", "description": "Size change in bytes between the base and head builds" }, "headSize": { "type": "integer", "nullable": true, "description": "Size in bytes in the head build. Null when the item was removed" }, "baseSize": { "type": "integer", "nullable": true, "description": "Size in bytes in the base build. Null when the item was added" }, "path": { "type": "string", "description": "Path of the file or group" }, "itemType": { "type": "string", "nullable": true, "description": "Type of the file or group" }, "type": { "enum": [ "added", "removed", "increased", "decreased" ], "type": "string", "description": "How the item changed" }, "diffItems": { "type": "array", "items": { "type": "object", "description": "Same as the DiffItemResponseDict this is inside. Its fields are left out here so it doesn't repeat forever." }, "nullable": true, "description": "Changes to the item's children, in the same shape" } }, "required": [ "baseSize", "diffItems", "headSize", "itemType", "path", "sizeDiff", "type" ] }, "description": "File-level changes for the insight" }, "groupDiffs": { "type": "array", "items": { "type": "object", "properties": { "sizeDiff": { "type": "integer", "description": "Size change in bytes between the base and head builds" }, "headSize": { "type": "integer", "nullable": true, "description": "Size in bytes in the head build. Null when the item was removed" }, "baseSize": { "type": "integer", "nullable": true, "description": "Size in bytes in the base build. Null when the item was added" }, "path": { "type": "string", "description": "Path of the file or group" }, "itemType": { "type": "string", "nullable": true, "description": "Type of the file or group" }, "type": { "enum": [ "added", "removed", "increased", "decreased" ], "type": "string", "description": "How the item changed" }, "diffItems": { "type": "array", "items": { "type": "object", "description": "Same as the DiffItemResponseDict this is inside. Its fields are left out here so it doesn't repeat forever." }, "nullable": true, "description": "Changes to the item's children, in the same shape" } }, "required": [ "baseSize", "diffItems", "headSize", "itemType", "path", "sizeDiff", "type" ] }, "description": "Group-level changes for the insight" } }, "required": [ "fileDiffs", "groupDiffs", "insightType", "status", "totalSavingsChange" ] }, "nullable": true, "description": "Changes to size insights. Only set when the comparison succeeded" } }, "required": [ "diffItems", "errorCode", "errorMessage", "identifier", "insightDiffItems", "metricsArtifactType", "sizeMetricDiff", "state" ] }, "nullable": true, "description": "Size comparisons against the base build, one per component. Null when there's no base build" } }, "required": [ "analysisDuration", "analysisVersion", "appComponents", "appInfo", "baseAppInfo", "baseBuildId", "buildId", "comparisons", "downloadSize", "errorCode", "errorMessage", "gitInfo", "insights", "installSize", "state" ] }, "examples": { "PendingAnalysis": { "value": { "buildId": "12345", "appInfo": { "appId": "com.example.app", "name": "Example App", "version": "1.2.0", "buildNumber": 42, "artifactType": "AAB", "dateAdded": "2025-01-15T10:30:00+00:00", "dateBuilt": "2025-01-15T10:00:00+00:00" }, "gitInfo": { "headSha": "abc123def456", "baseSha": "789xyz000111", "provider": "github", "headRepoName": "org/repo", "baseRepoName": "org/repo", "headRef": "feature-branch", "baseRef": "main", "prNumber": 42 }, "errorCode": null, "errorMessage": null, "downloadSize": null, "installSize": null, "analysisDuration": null, "analysisVersion": null, "insights": null, "appComponents": null, "baseBuildId": null, "baseAppInfo": null, "comparisons": null, "state": "PENDING" }, "summary": "Pending Analysis" }, "FailedAnalysis": { "value": { "buildId": "12345", "appInfo": { "appId": "com.example.app", "name": "Example App", "version": "1.2.0", "buildNumber": 42, "artifactType": "AAB", "dateAdded": "2025-01-15T10:30:00+00:00", "dateBuilt": "2025-01-15T10:00:00+00:00" }, "gitInfo": { "headSha": "abc123def456", "baseSha": "789xyz000111", "provider": "github", "headRepoName": "org/repo", "baseRepoName": "org/repo", "headRef": "feature-branch", "baseRef": "main", "prNumber": 42 }, "errorCode": "TIMEOUT", "errorMessage": "Failed to analyze artifact: unsupported format", "downloadSize": null, "installSize": null, "analysisDuration": null, "analysisVersion": null, "insights": null, "appComponents": null, "baseBuildId": null, "baseAppInfo": null, "comparisons": null, "state": "FAILED" }, "summary": "Failed Analysis" }, "CompletedAnalysis": { "value": { "buildId": "12345", "appInfo": { "appId": "com.example.app", "name": "Example App", "version": "1.2.0", "buildNumber": 42, "artifactType": "AAB", "dateAdded": "2025-01-15T10:30:00+00:00", "dateBuilt": "2025-01-15T10:00:00+00:00" }, "gitInfo": { "headSha": "abc123def456", "baseSha": "789xyz000111", "provider": "github", "headRepoName": "org/repo", "baseRepoName": "org/repo", "headRef": "feature-branch", "baseRef": "main", "prNumber": 42 }, "errorCode": null, "errorMessage": null, "downloadSize": 5120000, "installSize": 10240000, "analysisDuration": 3.5, "analysisVersion": "1.0.0", "insights": null, "appComponents": null, "baseBuildId": null, "baseAppInfo": null, "comparisons": null, "state": "COMPLETED" }, "summary": "Completed Analysis" }, "CompletedAnalysisWithComparison": { "value": { "buildId": "12345", "appInfo": { "appId": "com.example.app", "name": "Example App", "version": "1.2.0", "buildNumber": 42, "artifactType": "AAB", "dateAdded": "2025-01-15T10:30:00+00:00", "dateBuilt": "2025-01-15T10:00:00+00:00" }, "gitInfo": { "headSha": "abc123def456", "baseSha": "789xyz000111", "provider": "github", "headRepoName": "org/repo", "baseRepoName": "org/repo", "headRef": "feature-branch", "baseRef": "main", "prNumber": 42 }, "errorCode": null, "errorMessage": null, "downloadSize": 5120000, "installSize": 10240000, "analysisDuration": 3.5, "analysisVersion": "1.0.0", "insights": null, "appComponents": null, "baseBuildId": "12344", "baseAppInfo": { "appId": "com.example.app", "name": "Example App", "version": "1.1.0", "buildNumber": 41, "artifactType": "AAB", "dateAdded": "2025-01-15T10:30:00+00:00", "dateBuilt": "2025-01-15T10:00:00+00:00" }, "comparisons": [ { "metricsArtifactType": "MAIN_ARTIFACT", "identifier": null, "state": "SUCCESS", "errorCode": null, "errorMessage": null, "diffItems": [ { "sizeDiff": 1024, "headSize": 5120, "baseSize": 4096, "path": "lib/armeabi-v7a/libnative.so", "itemType": "native_library", "type": "increased", "diffItems": null } ], "insightDiffItems": null, "sizeMetricDiff": { "metricsArtifactType": "MAIN_ARTIFACT", "identifier": null, "headInstallSize": 10240000, "headDownloadSize": 5120000, "baseInstallSize": 9800000, "baseDownloadSize": 4900000 } } ], "state": "COMPLETED" }, "summary": "Completed Analysis with Comparison" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/preprodartifacts/snapshots/{snapshot_id}/": { "get": { "operationId": "getOrganizationPreprodArtifactSnapshot", "description": "Retrieve full details for a snapshot, including categorized image lists\nand comparison status.\n\nWhen a comparison exists (`comparison_type` is `diff`), images are\ncategorized into `changed`, `added`, `removed`, `renamed`, `unchanged`,\n`errored`, and `skipped` lists with counts, and the top-level `images`\narray is empty because those images are already present in the\ncategorized lists. For `solo` and `waiting_for_base` snapshots the\ncategorized lists are empty and `images` is the only populated source.\n`image_count` is accurate in all modes.\n\nUse `compact_metadata=1` to strip image objects down to `display_name`,\n`image_file_name`, `group`, and `description` only.\n\nThis endpoint requires a bearer token with `project:read` access.", "summary": "Retrieve Snapshot details", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "snapshot_id", "schema": { "type": "string" }, "description": "The ID of the snapshot.", "required": true }, { "in": "query", "name": "compact_metadata", "schema": { "type": "string" }, "description": "Set to '1' or 'true' to strip image metadata to display_name, image_file_name, group, and description only." } ], "tags": [ "Snapshots" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "head_artifact_id": { "type": "string", "description": "ID of the build the snapshot belongs to" }, "base_artifact_id": { "type": "string", "nullable": true, "description": "ID of the base build the snapshot is compared against" }, "project_id": { "type": "string", "description": "ID of the project" }, "comparison_type": { "type": "string", "description": "How the snapshot is compared: diff when a comparison exists, waiting_for_base when the build has a base commit but no comparison yet, or solo otherwise" }, "state": { "type": "string", "description": "State of the build: UPLOADING, UPLOADED, PROCESSED or FAILED" }, "vcs_info": { "type": "object", "properties": { "head_sha": { "type": "string", "nullable": true, "description": "Commit SHA of the build" }, "base_sha": { "type": "string", "nullable": true, "description": "Commit SHA of the base the build is compared against" }, "provider": { "type": "string", "nullable": true, "description": "Version control provider, such as github" }, "head_repo_name": { "type": "string", "nullable": true, "description": "Repository name of the head commit" }, "base_repo_name": { "type": "string", "nullable": true, "description": "Repository name of the base commit" }, "head_ref": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the head commit" }, "base_ref": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the base commit" }, "pr_number": { "type": "integer", "nullable": true, "description": "Pull request number" } }, "description": "Version control details of the build" }, "app_id": { "type": "string", "nullable": true, "description": "App identifier of the build" }, "is_selective": { "type": "boolean", "description": "Whether the upload contained only a subset of the app's images" }, "images": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" } } }, "description": "All images in the snapshot. Empty when comparison_type is diff" }, "image_count": { "type": "integer", "description": "Number of images in the snapshot" }, "added": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" } } }, "description": "Images in the head snapshot but not the base" }, "added_count": { "type": "integer", "description": "Number of added images" }, "removed": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" } } }, "description": "Images in the base snapshot but not the head" }, "removed_count": { "type": "integer", "description": "Number of removed images" }, "renamed": { "type": "array", "items": { "type": "object", "properties": { "base_image": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" } }, "description": "Image from the base snapshot" }, "head_image": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" } }, "description": "Image from the head snapshot" }, "diff_image_key": { "type": "string", "nullable": true, "description": "ID of the diff mask image highlighting changed pixels. Only set for changed images" }, "diff": { "type": "number", "format": "double", "nullable": true, "description": "Fraction of pixels that changed, from 0 to 1. Only set for changed images" } } }, "description": "Images whose file name changed but whose content didn't" }, "renamed_count": { "type": "integer", "description": "Number of renamed images" }, "changed": { "type": "array", "items": { "type": "object", "properties": { "base_image": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" } }, "description": "Image from the base snapshot" }, "head_image": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" } }, "description": "Image from the head snapshot" }, "diff_image_key": { "type": "string", "nullable": true, "description": "ID of the diff mask image highlighting changed pixels. Only set for changed images" }, "diff": { "type": "number", "format": "double", "nullable": true, "description": "Fraction of pixels that changed, from 0 to 1. Only set for changed images" } } }, "description": "Images whose changed pixels exceed the diff threshold, sorted by most changed first" }, "changed_count": { "type": "integer", "description": "Number of changed images" }, "unchanged": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" } } }, "description": "Images that match the base snapshot" }, "unchanged_count": { "type": "integer", "description": "Number of unchanged images" }, "errored": { "type": "array", "items": { "type": "object", "properties": { "base_image": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" } }, "description": "Image from the base snapshot" }, "head_image": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" } }, "description": "Image from the head snapshot" }, "diff_image_key": { "type": "string", "nullable": true, "description": "ID of the diff mask image highlighting changed pixels. Only set for changed images" }, "diff": { "type": "number", "format": "double", "nullable": true, "description": "Fraction of pixels that changed, from 0 to 1. Only set for changed images" } } }, "description": "Images that couldn't be compared" }, "errored_count": { "type": "integer", "description": "Number of errored images" }, "skipped": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" } } }, "description": "Base images that a selective upload didn't include" }, "skipped_count": { "type": "integer", "description": "Number of skipped images" }, "diff_threshold": { "type": "number", "format": "double", "nullable": true, "description": "Fraction of changed pixels, from 0 to 1, above which an image counts as changed. Images can override it" }, "comparison_state": { "type": "string", "nullable": true, "description": "State of the latest comparison: pending, processing, success, failed, waiting_for_base or no_base_build" }, "approval_status": { "type": "string", "nullable": true, "description": "Approval status of the latest comparison: approved, auto_approved or requires_approval" }, "comparison_error_message": { "type": "string", "nullable": true, "description": "Error message when the latest comparison failed" }, "approvers": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "Sentry user ID, or GitHub user ID for approvals from GitHub" }, "name": { "type": "string", "nullable": true, "description": "Display name of the approver, or GitHub login for approvals from GitHub" }, "email": { "type": "string", "nullable": true, "description": "Email address of the approver. Only set for Sentry users" }, "username": { "type": "string", "nullable": true, "description": "Username of the approver, or GitHub login for approvals from GitHub" }, "avatar_url": { "type": "string", "format": "uri", "nullable": true, "description": "Avatar URL of the approver. Only set for approvals from GitHub" }, "approved_at": { "type": "string", "format": "date-time", "nullable": true, "description": "When the approval was given (ISO 8601)" }, "source": { "enum": [ "sentry", "github" ], "type": "string", "description": "Where the approval was given: sentry or github" } } }, "description": "People who approved the snapshot changes" } } }, "examples": { "SnapshotWithComparison(Diff)": { "value": { "head_artifact_id": "100", "base_artifact_id": "99", "project_id": "1", "comparison_type": "diff", "state": "UPLOADED", "vcs_info": { "head_sha": "abc123def456", "base_sha": "789xyz000111", "provider": "github", "head_repo_name": "org/repo", "base_repo_name": "org/repo", "head_ref": "feature-branch", "base_ref": "main", "pr_number": 42 }, "app_id": "com.example.app", "is_selective": false, "images": [], "image_count": 1, "added": [], "added_count": 0, "removed": [], "removed_count": 0, "renamed": [], "renamed_count": 0, "changed": [ { "base_image": { "key": "old_hash_123", "display_name": "Home Screen", "group": "iPhone 15", "image_file_name": "home_screen_iphone15.png", "width": 1170, "height": 2532, "canvas_theme": "dark" }, "head_image": { "key": "a1b2c3d4e5f6", "display_name": "Home Screen", "group": "iPhone 15", "image_file_name": "home_screen_iphone15.png", "width": 1170, "height": 2532, "canvas_theme": "dark" }, "diff_image_key": "diff_hash_456", "diff": 0.02 } ], "changed_count": 1, "unchanged": [], "unchanged_count": 0, "errored": [], "errored_count": 0, "skipped": [], "skipped_count": 0, "diff_threshold": 0.01, "comparison_state": "success", "approval_status": "requires_approval", "comparison_error_message": null, "approvers": [] }, "summary": "Snapshot with Comparison (Diff)" }, "SnapshotWithoutComparison(Solo)": { "value": { "head_artifact_id": "100", "base_artifact_id": null, "project_id": "1", "comparison_type": "solo", "state": "UPLOADED", "vcs_info": { "head_sha": "abc123def456", "base_sha": null, "provider": "github", "head_repo_name": "org/repo", "base_repo_name": null, "head_ref": "main", "base_ref": null, "pr_number": null }, "app_id": "com.example.app", "is_selective": false, "images": [ { "key": "a1b2c3d4e5f6", "display_name": "Home Screen", "group": "iPhone 15", "image_file_name": "home_screen_iphone15.png", "width": 1170, "height": 2532, "canvas_theme": "dark" } ], "image_count": 1, "added": [], "added_count": 0, "removed": [], "removed_count": 0, "renamed": [], "renamed_count": 0, "changed": [], "changed_count": 0, "unchanged": [], "unchanged_count": 0, "errored": [], "errored_count": 0, "skipped": [], "skipped_count": 0, "diff_threshold": 0.01, "comparison_state": null, "approval_status": null, "comparison_error_message": null, "approvers": [] }, "summary": "Snapshot without Comparison (Solo)" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteOrganizationPreprodArtifactSnapshot", "description": "Delete a snapshot and all associated data (images, comparisons, metrics).\n\nThis is a permanent, irreversible operation. The snapshot and its images\nwill no longer be accessible after deletion.\n\nThis endpoint requires a bearer token with `project:write` access.", "summary": "Delete a Snapshot", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "snapshot_id", "schema": { "type": "string" }, "description": "The ID of the snapshot to delete.", "required": true } ], "tags": [ "Snapshots" ], "security": [ { "auth_token": [ "project:admin", "project:releases" ] } ], "responses": { "204": { "description": "No response body" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/preprodartifacts/snapshots/{snapshot_id}/archive/": { "get": { "operationId": "getOrganizationPreprodSnapshotArchiveStatus", "description": "**Experimental:** This API is under active development and may change.\n\nCheck whether the zip archive of a snapshot's images is ready to download.\n\nStart building the archive with a POST to this endpoint. Returns 404 when the\nsnapshot doesn't exist, the requester can't access its project, or it has no image\nmanifest.", "summary": "Retrieve a Snapshot Archive's Status", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "snapshot_id", "schema": { "type": "string" }, "description": "The ID of the snapshot.", "required": true } ], "tags": [ "Snapshots" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "ready": { "type": "boolean", "description": "Whether the archive of the snapshot's images is built and ready" } }, "required": [ "ready" ] }, "examples": { "ArchiveReady": { "value": { "ready": true }, "summary": "Archive ready" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true }, "post": { "operationId": "startOrganizationPreprodSnapshotArchive", "description": "**Experimental:** This API is under active development and may change.\n\nStart building a zip archive of a snapshot's images and its manifest.\n\nThe archive is built in the background, and the requesting user gets an email with\na download link when it's ready. Poll the GET method of this endpoint to see when it's\nready. Each request starts another build and sends another email.\n\nReturns 404 when the snapshot doesn't exist, the requester can't access its project,\nor it has no image manifest, and 503 when the build couldn't be queued.", "summary": "Build a Snapshot Archive", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "snapshot_id", "schema": { "type": "string" }, "description": "The ID of the snapshot.", "required": true } ], "tags": [ "Snapshots" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "202": { "content": { "application/json": { "schema": { "type": "object", "properties": { "detail": { "type": "string", "description": "Message saying that the archive is being built" } }, "required": [ "detail" ] }, "examples": { "ArchiveBuildStarted": { "value": { "detail": "Building your snapshot archive — we'll email you a download link when it's ready." }, "summary": "Archive build started" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "429": { "description": "Too Many Requests" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/preprodartifacts/snapshots/{snapshot_id}/images/{image_identifier}/": { "get": { "operationId": "getOrganizationPreprodArtifactSnapshotImage", "description": "Retrieve detailed information for a single image within a snapshot.\n\nThe `image_identifier` can be either the image filename or its content\nhash. The response includes head and base image metadata, comparison\nstatus, diff image URL, diff percentage, and previous filename for\nrenames.\n\nThis endpoint uses a flat response format with nullable fields designed\nfor LLM/MCP consumers.\n\nThis endpoint requires a bearer token with `project:read` access.", "summary": "Retrieve Snapshot image detail", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "snapshot_id", "schema": { "type": "string" }, "description": "The ID of the snapshot.", "required": true }, { "in": "path", "name": "image_identifier", "schema": { "type": "string" }, "description": "The image filename or content hash.", "required": true } ], "tags": [ "Snapshots" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "image_file_name": { "type": "string", "description": "File name of the image" }, "comparison_status": { "type": "string", "nullable": true, "description": "Comparison result for the image: added, removed, changed, unchanged, renamed, errored or skipped. Null when there is no comparison" }, "head_image": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" }, "diff_threshold": { "type": "number", "format": "double", "nullable": true, "description": "Fraction of changed pixels, from 0 to 1, above which the image counts as changed" }, "description": { "type": "string", "nullable": true, "description": "Description of the image" }, "tags": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Tags attached to the image" }, "image_url": { "type": "string", "description": "API URL to download the image" } }, "nullable": true, "description": "Image in the head snapshot. Null when the image was removed" }, "base_image": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" }, "diff_threshold": { "type": "number", "format": "double", "nullable": true, "description": "Fraction of changed pixels, from 0 to 1, above which the image counts as changed" }, "description": { "type": "string", "nullable": true, "description": "Description of the image" }, "tags": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Tags attached to the image" }, "image_url": { "type": "string", "description": "API URL to download the image" } }, "nullable": true, "description": "Image in the base snapshot" }, "diff_image_url": { "type": "string", "nullable": true, "description": "API URL to download the diff mask image. Only set for changed images" }, "diff_percentage": { "type": "number", "format": "double", "nullable": true, "description": "Fraction of pixels that changed, from 0 to 1. Only set for changed images" }, "previous_image_file_name": { "type": "string", "nullable": true, "description": "Previous file name of the image. Only set for renamed images" } } }, "examples": { "ChangedImage": { "value": { "image_file_name": "home_screen_iphone15.png", "comparison_status": "changed", "head_image": { "key": "a1b2c3d4e5f6", "display_name": "Home Screen", "group": "iPhone 15", "image_file_name": "home_screen_iphone15.png", "width": 1170, "height": 2532, "diff_threshold": 0.01, "description": null, "tags": null, "canvas_theme": "dark", "image_url": "/api/0/projects/org-slug/project-slug/files/images/a1b2c3d4e5f6/" }, "base_image": { "key": "old_hash_123", "display_name": "Home Screen", "group": "iPhone 15", "image_file_name": "home_screen_iphone15.png", "width": 1170, "height": 2532, "diff_threshold": 0.01, "description": null, "tags": null, "canvas_theme": "dark", "image_url": "/api/0/projects/org-slug/project-slug/files/images/old_hash_123/" }, "diff_image_url": "/api/0/projects/org-slug/project-slug/files/images/diff_hash_456/", "diff_percentage": 0.02, "previous_image_file_name": null }, "summary": "Changed Image" }, "AddedImage": { "value": { "image_file_name": "new_screen.png", "comparison_status": "added", "head_image": { "key": "new_hash_789", "display_name": "New Screen", "group": "iPhone 15", "image_file_name": "new_screen.png", "width": 1170, "height": 2532, "diff_threshold": null, "description": null, "tags": null, "canvas_theme": "light", "image_url": "/api/0/projects/org-slug/project-slug/files/images/new_hash_789/" }, "base_image": null, "diff_image_url": null, "diff_percentage": null, "previous_image_file_name": null }, "summary": "Added Image" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/preprodartifacts/snapshots/latest-base/": { "get": { "operationId": "getOrganizationPreprodArtifactSnapshotLatestBase", "description": "Retrieve the most recent base snapshot for a given app.\n\nA base snapshot is one uploaded without a `base_sha` (i.e., a snapshot\nfrom a base branch like `main`). Use the optional `branch` and `project`\nparameters to narrow the search.\n\nThe response includes the full image list with download URLs. Use\n`compact_metadata=1` to reduce image metadata.\n\nThis endpoint requires a bearer token with `project:read` access.", "summary": "Retrieve latest base Snapshot", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "app_id", "schema": { "type": "string" }, "description": "App identifier to match.", "required": true }, { "in": "query", "name": "branch", "schema": { "type": "string" }, "description": "Git branch name to filter on." }, { "in": "query", "name": "project", "schema": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] }, "description": "Project ID or slug to scope the lookup." }, { "in": "query", "name": "compact_metadata", "schema": { "type": "string" }, "description": "Set to '1' or 'true' to strip image metadata to display_name, image_file_name, group, description, and image_url only." } ], "tags": [ "Snapshots" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "head_artifact_id": { "type": "string", "description": "ID of the build the snapshot belongs to" }, "project_id": { "type": "string", "description": "ID of the project" }, "project_slug": { "type": "string", "description": "Slug of the project" }, "app_id": { "type": "string", "nullable": true, "description": "App identifier of the build" }, "image_count": { "type": "integer", "description": "Number of images in the snapshot" }, "images": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" }, "image_url": { "type": "string", "description": "API URL to download the image" } } }, "description": "Images in the snapshot" }, "diff_threshold": { "type": "number", "format": "double", "nullable": true, "description": "Fraction of changed pixels, from 0 to 1, above which an image counts as changed. Images can override it" }, "date_added": { "type": "string", "format": "date-time", "description": "When the build was uploaded (ISO 8601)" }, "vcs_info": { "type": "object", "properties": { "head_sha": { "type": "string", "nullable": true, "description": "Commit SHA of the build" }, "base_sha": { "type": "string", "nullable": true, "description": "Commit SHA of the base. Empty or null for base snapshots" }, "head_ref": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the build" }, "base_ref": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the base" }, "head_repo_name": { "type": "string", "nullable": true, "description": "Repository name of the build" }, "pr_number": { "type": "integer", "nullable": true, "description": "Pull request number" } }, "description": "Version control details of the build" } } }, "examples": { "LatestBaseSnapshot": { "value": { "head_artifact_id": "99", "project_id": "1", "project_slug": "my-project", "app_id": "com.example.app", "image_count": 2, "images": [ { "key": "a1b2c3d4e5f6", "display_name": "Home Screen", "group": "iPhone 15", "image_file_name": "home_screen_iphone15.png", "width": 1170, "height": 2532, "canvas_theme": "dark", "image_url": "/api/0/projects/org-slug/my-project/files/images/a1b2c3d4e5f6/" } ], "diff_threshold": 0.01, "date_added": "2025-01-15T10:30:00+00:00", "vcs_info": { "head_sha": "abc123def456", "base_sha": null, "head_ref": "main", "base_ref": null, "head_repo_name": "org/repo", "pr_number": null } }, "summary": "Latest Base Snapshot" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/profiling/chunks/": { "get": { "operationId": "listOrganizationProfilingChunks", "description": "Retrieve continuous profiling data for a profiler over a time range.\n\nExactly one project must be specified via the `project` query parameter.\n\nRequires continuous profiling to be enabled for the organization.", "summary": "Retrieve Profile Chunks for an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "project", "schema": { "type": "string" }, "description": "The ID or slug of the project to fetch chunks for. Exactly one project must be specified.", "required": true }, { "in": "query", "name": "profiler_id", "schema": { "type": "string", "format": "uuid" }, "description": "The continuous-profiler ID to fetch chunks for.", "required": true }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." } ], "tags": [ "Profiling" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "additionalProperties": {} }, "examples": { "ReturnContinuous-profileChunksForAProfiler": { "value": { "chunk": { "chunk_id": "0123456789abcdef0123456789abcdef", "profiler_id": "fedcba9876543210fedcba9876543210", "project_id": 1, "organization_id": 1, "environment": "production", "platform": "python", "release": "1.0.0", "received": 1779957840, "retention_days": 30, "version": "2", "profile": { "samples": [ { "stack_id": 0, "thread_id": "1", "timestamp": 1779957840 } ], "stacks": [ [ 0, 1 ] ], "frames": [ { "function": "main", "module": "app.main", "in_app": true, "lineno": 10 }, { "function": "do_work", "module": "app.worker", "in_app": true, "lineno": 42 } ], "thread_metadata": { "1": { "name": "MainThread" } } } }, "debug_chunk_ids": [ "0123456789abcdef0123456789abcdef" ] }, "summary": "Return continuous-profile chunks for a profiler" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/profiling/flamegraph/": { "get": { "operationId": "getOrganizationProfilingFlamegraph", "description": "Retrieve an aggregated flamegraph for the organization, built from the\nrequested data source (transactions, profiles, functions, or spans).\n\nPass `expand=metrics` to include aggregated function metrics in the response.\n\nRequires profiling to be enabled for the organization.", "summary": "Retrieve a Flamegraph for an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "fingerprint", "schema": { "type": "integer", "maximum": 4294967295, "minimum": 0, "format": "int64" }, "description": "A UInt32 function fingerprint. Only valid when `dataSource=functions`." }, { "in": "query", "name": "dataSource", "schema": { "enum": [ "transactions", "profiles", "functions", "spans" ], "type": "string", "minLength": 1 }, "description": "Source dataset to build the flamegraph from. Defaults to `functions` when `fingerprint` is set and `transactions` otherwise.\n\n* `transactions`\n* `profiles`\n* `functions`\n* `spans`" }, { "in": "query", "name": "query", "schema": { "type": "string", "minLength": 1 }, "description": "Sentry [search syntax](https://docs.sentry.io/concepts/search/) to filter the candidate profiles." }, { "in": "query", "name": "expand", "schema": { "type": "array", "items": { "enum": [ "metrics" ], "type": "string", "description": "* `metrics`" } }, "description": "Optional expansions. Pass `metrics` to include flamegraph metric aggregates in the response." } ], "tags": [ "Profiling" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "additionalProperties": {} }, "examples": { "ReturnAFlamegraphForTheOrganization": { "value": { "activeProfileIndex": 0, "metadata": { "deviceClassification": "", "deviceLocale": "", "deviceManufacturer": "", "deviceModel": "", "deviceOSName": "", "deviceOSVersion": "", "durationNS": 0, "organizationID": 0, "platform": "python", "profileID": "", "projectID": 0, "received": "2026-04-15T18:22:31Z", "sampled": false, "timestamp": "2026-04-15T18:22:31Z", "traceID": "", "transactionID": "", "transactionName": "GET /api/0/projects/{org}/{proj}/files/dsyms/", "version": "" }, "platform": "python", "transactionName": "GET /api/0/projects/{org}/{proj}/files/dsyms/", "projectID": 1, "shared": { "frames": [ { "name": "handle_request", "file": "app/web.py", "is_application": true, "line": 88, "fingerprint": 1111111111 }, { "name": "do_work", "file": "app/worker.py", "is_application": true, "line": 42, "fingerprint": 2222222222 }, { "name": "loads", "file": "json/__init__.py", "is_application": false, "line": 299, "fingerprint": 3333333333 } ], "frame_infos": [ { "count": 40, "weight": 40, "sumDuration": 4000000000, "sumSelfTime": 0, "p75Duration": 110000000, "p95Duration": 180000000, "p99Duration": 240000000 }, { "count": 40, "weight": 40, "sumDuration": 4000000000, "sumSelfTime": 1000000000, "p75Duration": 95000000, "p95Duration": 150000000, "p99Duration": 210000000 }, { "count": 30, "weight": 30, "sumDuration": 3000000000, "sumSelfTime": 3000000000, "p75Duration": 81000000, "p95Duration": 120000000, "p99Duration": 160000000 } ], "profiles": [ { "project_id": 1, "profile_id": "a1b2c3d4e5f60718293a4b5c6d7e8f90", "start": 1780084617.323, "end": 1780084617.8065438 } ] }, "profiles": [ { "endValue": 40, "isMainThread": true, "name": "MainThread", "samples": [ [ 0, 1, 2 ], [ 0, 1 ] ], "sample_counts": [ 30, 10 ], "samples_examples": [ [ 0 ], [ 0 ] ], "sample_durations_ns": [ 3000000000, 1000000000 ], "startValue": 0, "threadID": 1, "type": "sampled", "unit": "count", "weights": [ 30, 10 ] } ], "metrics": null }, "summary": "Return a flamegraph for the organization" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/project-keys/": { "get": { "operationId": "listOrganizationProjectKeys", "description": "Return a list of client keys (DSNs) for all projects in an organization.\n\nThis paginated endpoint lists client keys across all projects in an organization. Each key includes the project ID\nto identify which project it belongs to.\n\nQuery Parameters:\n- team: Filter by team slug or ID to get keys only for that team's projects\n- status: Filter by 'active' or 'inactive' to get keys with specific status", "summary": "List an Organization's Client Keys", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "team", "schema": { "type": "string", "minLength": 1 }, "description": "Filter keys by team slug or ID. If provided, only keys for projects belonging to this team will be returned." }, { "in": "query", "name": "status", "schema": { "enum": [ "active", "inactive" ], "type": "string", "minLength": 1 }, "description": "Filter keys by status. Options are 'active' or 'inactive'.\n\n* `active`\n* `inactive`" } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "description": "This represents a Sentry Project Client Key.", "properties": { "id": { "type": "string", "description": "ID of the client key, same as its public key" }, "name": { "type": "string", "description": "Name of the client key" }, "label": { "type": "string", "description": "Name of the client key, same as name" }, "public": { "type": "string", "nullable": true, "description": "Public key" }, "secret": { "type": "string", "nullable": true, "description": "Secret key" }, "projectId": { "type": "integer", "description": "ID of the project the key belongs to" }, "isActive": { "type": "boolean", "description": "Whether the client key accepts events" }, "rateLimit": { "type": "object", "properties": { "window": { "type": "integer", "description": "Rate limit window in seconds" }, "count": { "type": "integer", "description": "Number of events accepted per window" } }, "required": [ "count", "window" ], "nullable": true, "description": "Rate limit for events sent with the key. Null when there's none" }, "dsn": { "type": "object", "properties": { "secret": { "type": "string", "format": "uri", "description": "DSN that includes the secret key" }, "public": { "type": "string", "format": "uri", "description": "Public DSN to configure SDKs with" }, "csp": { "type": "string", "format": "uri", "description": "Endpoint for Content Security Policy reports" }, "security": { "type": "string", "format": "uri", "description": "Endpoint for security reports" }, "minidump": { "type": "string", "format": "uri", "description": "Endpoint for minidump crash reports" }, "nel": { "type": "string", "format": "uri", "description": "Endpoint for Network Error Logging reports" }, "unreal": { "type": "string", "format": "uri", "description": "Endpoint for Unreal Engine crash reports" }, "crons": { "type": "string", "format": "uri", "description": "Endpoint for cron monitor check-ins" }, "cdn": { "type": "string", "format": "uri", "description": "URL of the JavaScript SDK Loader script" }, "playstation": { "type": "string", "format": "uri", "description": "Endpoint for PlayStation crash reports" }, "integration": { "type": "string", "format": "uri", "description": "Base URL for integration endpoints, such as the OpenTelemetry endpoints" }, "otlp_traces": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for traces" }, "otlp_logs": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for logs" } }, "required": [ "cdn", "crons", "csp", "integration", "minidump", "nel", "otlp_logs", "otlp_traces", "playstation", "public", "secret", "security", "unreal" ], "description": "DSN and ingestion endpoints for the key" }, "browserSdkVersion": { "type": "string", "description": "JavaScript SDK version the Loader serves" }, "browserSdk": { "type": "object", "properties": { "choices": { "type": "array", "items": { "type": "array", "items": { "type": "string" } }, "description": "JavaScript SDK versions the Loader can serve, as [value, label] pairs" } }, "required": [ "choices" ], "description": "JavaScript SDK versions the Loader can serve" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the client key was created (ISO 8601)" }, "dynamicSdkLoaderOptions": { "type": "object", "properties": { "hasReplay": { "type": "boolean", "description": "Whether the Loader enables Session Replay" }, "hasPerformance": { "type": "boolean", "description": "Whether the Loader enables tracing" }, "hasDebug": { "type": "boolean", "description": "Whether the Loader loads the debug bundle" }, "hasFeedback": { "type": "boolean", "description": "Whether the Loader enables User Feedback" }, "hasLogsAndMetrics": { "type": "boolean", "description": "Whether the Loader enables logs and metrics" } }, "required": [ "hasDebug", "hasFeedback", "hasLogsAndMetrics", "hasPerformance", "hasReplay" ], "description": "Features the JavaScript SDK Loader enables" }, "useCase": { "type": "string", "description": "What the key is used for, such as user or profiling. Only included for superusers" } }, "required": [ "browserSdk", "browserSdkVersion", "dateCreated", "dsn", "dynamicSdkLoaderOptions", "id", "isActive", "label", "name", "projectId", "public", "rateLimit", "secret" ] } }, "examples": { "ListClientKeysForAllProjectsInAnOrganization": { "value": [ { "id": "60120449b6b1d5e45f75561e6dabd80b", "name": "Liked Pegasus", "label": "Liked Pegasus", "public": "60120449b6b1d5e45f75561e6dabd80b", "secret": "189485c3b8ccf582bf5e12c530ef8858", "projectId": 4505281256090153, "isActive": true, "rateLimit": { "window": 7200, "count": 1000 }, "dsn": { "secret": "https://a785682ddda742d7a8a4088810e67701:bcd99b3790b3441c85ce4b1eaa854f66@o4504765715316736.ingest.sentry.io/4505281256090153", "public": "https://a785682ddda742d7a8a4088810e67791@o4504765715316736.ingest.sentry.io/4505281256090153", "csp": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/csp-report/?sentry_key=a785682ddda719b7a8a4011110d75598", "security": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/security/?sentry_key=a785682ddda719b7a8a4011110d75598", "minidump": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/minidump/?sentry_key=a785682ddda719b7a8a4011110d75598", "playstation": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/playstation/?sentry_key=a785682ddda719b7a8a4011110d75598", "integration": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/", "otlp_traces": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/traces", "otlp_logs": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/logs", "nel": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/nel/?sentry_key=a785682ddda719b7a8a4011110d75598", "unreal": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/unreal/a785682ddda719b7a8a4011110d75598/", "cdn": "https://js.sentry-cdn.com/a785682ddda719b7a8a4011110d75598.min.js", "crons": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/crons/___MONITOR_SLUG___/a785682ddda719b7a8a4011110d75598/" }, "browserSdkVersion": "7.x", "browserSdk": { "choices": [ [ "latest", "latest" ], [ "7.x", "7.x" ] ] }, "dateCreated": "2023-06-21T19:50:26.036254Z", "dynamicSdkLoaderOptions": { "hasReplay": true, "hasPerformance": true, "hasDebug": true, "hasFeedback": false, "hasLogsAndMetrics": false } }, { "id": "da8d69cb17e80677b76e08fde4656b93", "name": "Bold Oarfish", "label": "Bold Oarfish", "public": "da8d69cb17e80677b76e08fde4656b93", "secret": "5c241ebc42ccfbec281cbefbedc7ab96", "projectId": 4505281256090153, "isActive": true, "rateLimit": null, "dsn": { "secret": "https://a785682ddda742d7a8a4088810e67701:bcd99b3790b3441c85ce4b1eaa854f66@o4504765715316736.ingest.sentry.io/4505281256090153", "public": "https://a785682ddda742d7a8a4088810e67791@o4504765715316736.ingest.sentry.io/4505281256090153", "csp": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/csp-report/?sentry_key=a785682ddda719b7a8a4011110d75598", "security": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/security/?sentry_key=a785682ddda719b7a8a4011110d75598", "minidump": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/minidump/?sentry_key=a785682ddda719b7a8a4011110d75598", "playstation": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/playstation/?sentry_key=a785682ddda719b7a8a4011110d75598", "integration": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/", "otlp_traces": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/traces", "otlp_logs": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/logs", "nel": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/nel/?sentry_key=a785682ddda719b7a8a4011110d75598", "unreal": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/unreal/a785682ddda719b7a8a4011110d75598/", "cdn": "https://js.sentry-cdn.com/a785682ddda719b7a8a4011110d75598.min.js", "crons": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/crons/___MONITOR_SLUG___/a785682ddda719b7a8a4011110d75598/" }, "browserSdkVersion": "7.x", "browserSdk": { "choices": [ [ "latest", "latest" ], [ "7.x", "7.x" ] ] }, "dateCreated": "2023-06-21T19:50:26.036254Z", "dynamicSdkLoaderOptions": { "hasReplay": true, "hasPerformance": true, "hasDebug": true, "hasFeedback": false, "hasLogsAndMetrics": false } } ], "summary": "List client keys for all projects in an organization" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/projects/": { "get": { "operationId": "listOrganizationProjects", "description": "Return a list of projects bound to a organization.", "summary": "List an Organization's Projects", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Filter projects by name or slug." } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "latestDeploys": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed" }, "options": { "type": "object", "additionalProperties": {}, "description": "Requested project options, keyed by option name. Only included when options are requested" }, "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "nullable": true, "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms seen in the project's events" }, "hasUserReports": { "type": "boolean", "description": "Whether the project has received user reports" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments seen in the project's events" }, "latestRelease": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ], "nullable": true, "description": "Latest release of the project" } }, "required": [ "access", "dateCreated", "environments", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "hasUserReports", "id", "isBookmarked", "isMember", "latestRelease", "name", "platform", "platforms", "slug", "team", "teams" ] } }, "examples": { "ListAnOrganization'sProjects": { "value": [ { "slug": "prime-mover", "name": "Prime Mover", "dateCreated": "2018-11-06T21:19:58.536Z", "firstEvent": null, "access": [], "hasAccess": true, "id": "3", "isBookmarked": false, "isMember": true, "platform": "", "platforms": [], "team": { "id": "2", "name": "Powerful Abolitionist", "slug": "powerful-abolitionist" }, "teams": [ { "id": "2", "name": "Powerful Abolitionist", "slug": "powerful-abolitionist" } ], "environments": [ "local" ], "features": [ "releases" ], "firstTransactionEvent": true, "hasSessions": true, "hasProfiles": true, "hasReplays": true, "hasFlags": true, "hasMinifiedStackTrace": false, "hasMonitors": true, "hasFeedbacks": false, "hasNewFeedbacks": false, "hasUserReports": false, "hasInsightsHttp": true, "hasInsightsDb": false, "hasInsightsAssets": true, "hasInsightsAppStart": false, "hasInsightsScreenLoad": false, "hasInsightsVitals": false, "hasInsightsCaches": false, "hasInsightsQueues": false, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "latestRelease": null } ], "summary": "List an organization's projects" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createOrganizationProject", "description": "Create a new project for an organization. A personal team (`team-{username}`) is automatically created for the caller with Team Admin role, and the project is bound to it. If the org has member project creation disabled (`disable_member_project_creation`), `org:write` scope is required.", "summary": "Create a Project for an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "description": "The name for the project.", "maxLength": 50 }, "slug": { "type": "string", "nullable": true, "description": "Uniquely identifies a project and is used for the interface.\n If not provided, it is automatically generated from the name.", "maxLength": 100, "pattern": "^(?![0-9]+$)[a-z0-9_\\-]+$" }, "platform": { "type": "string", "nullable": true, "description": "The platform for the project." }, "default_rules": { "type": "boolean", "description": "\nDefaults to true where the behavior is to alert the user on every new\nissue. Setting this to false will turn this off and the user must create\ntheir own alerts to be notified of new issues.\n " } }, "required": [ "name" ] } } }, "required": true }, "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "latestDeploys": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed" }, "options": { "type": "object", "additionalProperties": {}, "description": "Requested project options, keyed by option name. Only included when options are requested" }, "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "nullable": true, "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms seen in the project's events" }, "hasUserReports": { "type": "boolean", "description": "Whether the project has received user reports" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments seen in the project's events" }, "latestRelease": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ], "nullable": true, "description": "Latest release of the project" } }, "required": [ "access", "dateCreated", "environments", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "hasUserReports", "id", "isBookmarked", "isMember", "latestRelease", "name", "platform", "platforms", "slug", "team", "teams" ] }, "examples": { "ProjectSuccessfullyCreated": { "value": { "team": { "id": "2349234102", "name": "Prime Mover", "slug": "prime-mover" }, "teams": [ { "id": "2349234102", "name": "Prime Mover", "slug": "prime-mover" }, { "id": "47584447", "name": "Powerful Abolitionist", "slug": "powerful-abolitionist" } ], "id": "6758470122493650", "slug": "the-spoiled-yoghurt", "name": "The Spoiled Yoghurt", "isBookmarked": false, "isMember": true, "access": [ "project:read", "event:read", "team:read", "alerts:read", "org:read", "event:write", "project:releases", "member:read" ], "hasAccess": true, "dateCreated": "2023-03-29T15:25:21.344565Z", "environments": [ "production" ], "features": [ "custom-inbound-filters", "discard-groups", "minidump", "rate-limits", "servicehooks", "similarity-indexing", "similarity-indexing-v2", "similarity-view", "similarity-view-v2" ], "firstEvent": null, "firstTransactionEvent": true, "hasSessions": false, "hasProfiles": false, "hasReplays": false, "hasFlags": false, "hasMonitors": false, "hasFeedbacks": false, "hasNewFeedbacks": false, "hasMinifiedStackTrace": false, "hasInsightsHttp": true, "hasInsightsDb": false, "hasInsightsAssets": false, "hasInsightsAppStart": false, "hasInsightsScreenLoad": false, "hasInsightsVitals": false, "hasInsightsCaches": true, "hasInsightsQueues": true, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "platform": "node-express", "platforms": [], "latestRelease": null, "hasUserReports": false, "latestDeploys": null }, "summary": "Project successfully created" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "description": "Conflict" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/projects/{project_id_or_slug}/detectors/": { "post": { "operationId": "createOrganizationProjectDetector", "description": "Create a Monitor for a project", "summary": "Create a Monitor for a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Monitors" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "description": "The type of monitor - `metric_issue`." }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "oneOf": [ { "type": "object", "title": "Errors", "description": "Counts error events or the users they affect.", "properties": { "query_type": { "type": "integer", "enum": [ 0 ] }, "dataset": { "type": "string", "enum": [ "events" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "enum": [ "count()", "count_unique(user)", "count_unique(dist)", "count_unique(release)", "count_unique(tags[sentry:user])", "count_unique(tags[sentry:dist])", "count_unique(tags[sentry:release])" ] }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "error", "default" ] }, "minItems": 1, "maxItems": 2 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Spans", "description": "Aggregates span attributes, such as `p95(span.duration)`. To query transaction spans, add `is_transaction:true` to `query`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|p100|max|min|sum|epm|failure_count|failure_rate|eps|apdex|user_misery|performance_score|opportunity_score)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_span" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Logs", "description": "Aggregates log attributes, such as `count(message)`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_log" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Application Metrics", "description": "Aggregates an application metric. The function arguments name the metric, its type, and its unit, such as `per_second(value,metric_name,counter,-)`. An `equation|` prefix combines several aggregates.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:(?:avg|avg_if|count|count_if|count_unique|count_unique_if|max|max_if|min|min_if|opportunity_score|p50|p50_if|p75|p75_if|p90|p90_if|p95|p95_if|p99|p99_if|per_minute|per_minute_if|per_second|per_second_if|performance_score|sum|sum_if)\\(.*\\)|equation\\|.+)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_metric" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Crash Rate", "description": "Measures the percentage of crashed sessions or users, such as `percentage(sessions_crashed, sessions) AS _crash_rate_alert_aggregate`.", "properties": { "query_type": { "type": "integer", "enum": [ 2 ] }, "dataset": { "type": "string", "enum": [ "metrics" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^percentage\\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\\)" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string" }, "description": "Ignored for this dataset. Send an empty list." }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] } ] }, "description": "\n The data sources for the metric monitor to use based on what you want to measure.\n\n The schema of each data source lists the `aggregate` values that its `dataset` and\n `eventTypes` accept.\n\n `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.\n Legacy metric alert rules expressed this value in minutes, so multiply a legacy value\n by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes\n `\"timeWindow\": 300`.\n\n **Number of Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count()\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n **Users Experiencing Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count_unique(tags[sentry:user])\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n\n **Throughput Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"count(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Duration Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"p95(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Failure Rate Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"failure_rate()\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Largest Contentful Paint Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`.\n\n ```json\n [\n {\n \"aggregate\":\"p95(measurements.lcp)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"is_transaction:true\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Custom Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are:\n `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `failure_rate()`\n `apdex(x)`, where `x` is the value of the Apdex score.\n `count()`\n\n ```json\n [\n {\n \"aggregate\": \"p75(measurements.ttfb)\",\n \"dataset\": \"events_analytics_platform\",\n \"environment\": \"prod\",\n \"queryType\": 1,\n \"eventTypes\": [\"trace_item_span\"],\n \"query\": \"is_transaction:true\",\n \"timeWindow\": 3600,\n \"extrapolationMode\": \"unknown\"\n }\n ]\n ```\n" }, "config": { "type": "object", "additionalProperties": {}, "description": "\n The issue detection type configuration.\n\n\n - `detectionType`\n - `static`: Threshold based monitor\n - `percent`: Change based monitor\n - `dynamic`: Dynamic monitor\n - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period, in seconds, at which to compare against historical data.\n For example, a value of 3600 compares the metric tracked against data 1 hour ago.\n - `300`: 5 minutes\n - `900`: 15 minutes\n - `3600`: 1 hour\n - `86400`: 1 day\n - `604800`: 1 week\n - `2592000`: 1 month\n\n **Threshold**\n ```json\n {\n \"detectionType\": \"static\"\n }\n ```\n **Change**\n ```json\n {\n \"detectionType\": \"percent\",\n \"comparisonDelta\": 3600\n }\n ```\n **Dynamic**\n ```json\n {\n \"detectionType\": \"dynamic\"\n }\n ```\n " }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "required": [ "name", "type" ], "oneOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "metric_issue" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "query_type": { "type": "integer" }, "dataset": { "type": "string" }, "query": { "type": "string" }, "aggregate": { "type": "string" }, "time_window": { "type": "integer" }, "environment": { "type": "string", "nullable": true, "maxLength": 64 }, "event_types": { "type": "array", "items": { "type": "string" } }, "group_by": { "type": "array", "items": { "type": "string", "maxLength": 200 } }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "aggregate", "dataset", "environment", "event_types", "query", "time_window" ] } }, "config": { "oneOf": [ { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ] }, "detectionType": { "type": "string", "enum": [ "static" ] } }, "additionalProperties": false, "title": "Static Detection Config" }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ] }, "detectionType": { "type": "string", "enum": [ "percent" ] } }, "additionalProperties": false, "title": "Percent Detection Config" }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ] }, "detectionType": { "type": "string", "enum": [ "dynamic" ] } }, "additionalProperties": false, "title": "Dynamic Detection Config" } ], "discriminator": { "propertyName": "detectionType" } }, "conditionGroup": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": { "oneOf": [ { "title": "Threshold Condition", "type": "object", "properties": { "id": { "type": "integer" }, "conditionResult": { "type": "integer", "enum": [ 0, 50, 75 ] }, "type": { "type": "string", "enum": [ "gt", "lt", "gte", "lte" ] }, "comparison": { "type": "number" } }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Anomaly Detection Condition", "type": "object", "properties": { "id": { "type": "integer" }, "conditionResult": { "type": "integer", "enum": [ 0, 50, 75 ] }, "type": { "type": "string", "enum": [ "anomaly_detection" ] }, "comparison": { "type": "object", "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ] }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ] }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ] } }, "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false } }, "required": [ "type", "comparison", "conditionResult" ] } ], "discriminator": { "propertyName": "type" } } } }, "required": [ "conditions", "logicType" ] }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "required": [ "conditionGroup", "dataSources", "name", "type" ], "title": "Metric Issue Monitor" }, { "type": "object", "description": "Validator for monitor incident detection configuration.\n\nThis is a lightweight validator that delegates Monitor creation/update to the\ndata_source field (MonitorDataSourceValidator).", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "monitor_check_in_failure" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "type": "object", "description": "Data source validator for cron monitors.\n\nThis handles creating/updating the Monitor when a detector is created/updated.", "properties": { "name": { "type": "string", "description": "Name of the monitor. Used for notifications.", "maxLength": 128 }, "slug": { "type": "string", "description": "Uniquely identifies your monitor within your organization.", "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "status": { "type": "string" }, "owner": { "type": "string", "nullable": true }, "is_muted": { "type": "boolean" }, "config": { "type": "object", "additionalProperties": {} } }, "required": [ "config" ] } }, "config": { "type": "object" }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "required": [ "name", "type" ], "title": "Monitor Check In Failure Monitor" }, { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "preprod_size_analysis" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "oneOf": [ { "type": "object", "title": "Errors", "description": "Counts error events or the users they affect.", "properties": { "query_type": { "type": "integer", "enum": [ 0 ] }, "dataset": { "type": "string", "enum": [ "events" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "enum": [ "count()", "count_unique(user)", "count_unique(dist)", "count_unique(release)", "count_unique(tags[sentry:user])", "count_unique(tags[sentry:dist])", "count_unique(tags[sentry:release])" ] }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "error", "default" ] }, "minItems": 1, "maxItems": 2 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Spans", "description": "Aggregates span attributes, such as `p95(span.duration)`. To query transaction spans, add `is_transaction:true` to `query`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|p100|max|min|sum|epm|failure_count|failure_rate|eps|apdex|user_misery|performance_score|opportunity_score)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_span" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Logs", "description": "Aggregates log attributes, such as `count(message)`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_log" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Application Metrics", "description": "Aggregates an application metric. The function arguments name the metric, its type, and its unit, such as `per_second(value,metric_name,counter,-)`. An `equation|` prefix combines several aggregates.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:(?:avg|avg_if|count|count_if|count_unique|count_unique_if|max|max_if|min|min_if|opportunity_score|p50|p50_if|p75|p75_if|p90|p90_if|p95|p95_if|p99|p99_if|per_minute|per_minute_if|per_second|per_second_if|performance_score|sum|sum_if)\\(.*\\)|equation\\|.+)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_metric" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Crash Rate", "description": "Measures the percentage of crashed sessions or users, such as `percentage(sessions_crashed, sessions) AS _crash_rate_alert_aggregate`.", "properties": { "query_type": { "type": "integer", "enum": [ 2 ] }, "dataset": { "type": "string", "enum": [ "metrics" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^percentage\\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\\)" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string" }, "description": "Ignored for this dataset. Send an empty list." }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] } ] }, "description": "\n The data sources for the metric monitor to use based on what you want to measure.\n\n The schema of each data source lists the `aggregate` values that its `dataset` and\n `eventTypes` accept.\n\n `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.\n Legacy metric alert rules expressed this value in minutes, so multiply a legacy value\n by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes\n `\"timeWindow\": 300`.\n\n **Number of Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count()\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n **Users Experiencing Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count_unique(tags[sentry:user])\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n\n **Throughput Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"count(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Duration Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"p95(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Failure Rate Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"failure_rate()\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Largest Contentful Paint Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`.\n\n ```json\n [\n {\n \"aggregate\":\"p95(measurements.lcp)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"is_transaction:true\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Custom Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are:\n `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `failure_rate()`\n `apdex(x)`, where `x` is the value of the Apdex score.\n `count()`\n\n ```json\n [\n {\n \"aggregate\": \"p75(measurements.ttfb)\",\n \"dataset\": \"events_analytics_platform\",\n \"environment\": \"prod\",\n \"queryType\": 1,\n \"eventTypes\": [\"trace_item_span\"],\n \"query\": \"is_transaction:true\",\n \"timeWindow\": 3600,\n \"extrapolationMode\": \"unknown\"\n }\n ]\n ```\n" }, "config": { "description": "Configuration for preprod static analysis detector", "type": "object", "properties": { "thresholdType": { "type": "string", "enum": [ "absolute_diff", "absolute", "relative_diff" ], "description": "The type of threshold to apply" }, "measurement": { "type": "string", "enum": [ "install_size", "download_size" ], "description": "The measurement to track" }, "query": { "type": "string", "description": "Search query to filter which artifacts are monitored" } }, "required": [ "thresholdType", "measurement" ], "additionalProperties": false }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "required": [ "name", "type" ], "title": "Preprod Size Analysis Monitor" }, { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "uptime_domain_failure" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "url": { "type": "string", "format": "uri", "maxLength": 255 }, "headers": { "type": "object", "additionalProperties": {}, "description": "Additional headers to send with the check request." }, "timeout_ms": { "type": "integer", "maximum": 60000, "minimum": 1000, "description": "The number of milliseconds the request will wait for a response before timing-out." }, "method": { "enum": [ "GET", "POST", "HEAD", "PUT", "DELETE", "PATCH", "OPTIONS" ], "type": "string", "description": "The HTTP method used to make the check request.\n\n* `GET`\n* `POST`\n* `HEAD`\n* `PUT`\n* `DELETE`\n* `PATCH`\n* `OPTIONS`" }, "trace_sampling": { "type": "boolean", "default": false, "description": "When enabled allows check requets to be considered for dowstream performance tracing." }, "response_capture_enabled": { "type": "boolean", "default": true, "description": "When enabled, response body and headers will be captured on check failures." }, "body": { "type": "string", "nullable": true, "description": "The body to send with the check request." }, "interval_seconds": { "enum": [ 60, 300, 600, 1200, 1800, 3600 ], "type": "integer", "description": "Time in seconds between uptime checks.\n\n* `60` - 1 minute\n* `300` - 5 minutes\n* `600` - 10 minutes\n* `1200` - 20 minutes\n* `1800` - 30 minutes\n* `3600` - 1 hour" }, "assertion": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "The assertion to send with the check request." } }, "required": [ "interval_seconds", "timeout_ms", "url" ] } }, "config": { "description": "A representation of an uptime alert", "type": "object", "required": [ "mode", "environment", "recoveryThreshold", "downtimeThreshold" ], "properties": { "mode": { "type": "integer", "enum": [ 1, 2, 3 ] }, "environment": { "type": "string", "nullable": true }, "recoveryThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive successful checks required to mark monitor as recovered" }, "downtimeThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive failed checks required to mark monitor as down" } }, "additionalProperties": false }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "required": [ "name", "type" ], "title": "Uptime Domain Failure Monitor" } ], "discriminator": { "propertyName": "type" } }, "examples": { "CreateAStaticThresholdMonitor": { "value": { "name": "Unresolved errors", "type": "metric_issue", "dataSources": [ { "query_type": 0, "dataset": "events", "query": "is:unresolved", "aggregate": "count()", "time_window": 3600, "environment": "production", "event_types": [ "error", "default" ] } ], "conditionGroup": { "logicType": "any", "conditions": [ { "type": "gt", "comparison": 10, "conditionResult": 75 }, { "type": "lte", "comparison": 10, "conditionResult": 0 } ] }, "config": { "detectionType": "static" } }, "summary": "Create a static threshold monitor" }, "CreateAPercent-changeMonitor": { "value": { "name": "Error volume change", "type": "metric_issue", "dataSources": [ { "query_type": 0, "dataset": "events", "query": "is:unresolved", "aggregate": "count()", "time_window": 3600, "environment": "production", "event_types": [ "error", "default" ] } ], "conditionGroup": { "logicType": "any", "conditions": [ { "type": "gt", "comparison": 10, "conditionResult": 75 }, { "type": "lte", "comparison": 10, "conditionResult": 0 } ] }, "config": { "detectionType": "percent", "comparisonDelta": 3600 } }, "summary": "Create a percent-change monitor" }, "CreateADynamicAnomalyMonitor": { "value": { "name": "Unusual error volume", "type": "metric_issue", "dataSources": [ { "query_type": 0, "dataset": "events", "query": "is:unresolved", "aggregate": "count()", "time_window": 3600, "environment": "production", "event_types": [ "error", "default" ] } ], "conditionGroup": { "logicType": "any", "conditions": [ { "type": "anomaly_detection", "comparison": { "sensitivity": "high", "seasonality": "auto", "thresholdType": 2 }, "conditionResult": 75 } ] }, "config": { "detectionType": "dynamic" } }, "summary": "Create a dynamic anomaly monitor" } } } }, "required": true }, "security": [ { "auth_token": [ "alerts:write", "project:admin", "project:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor" }, "createdBy": { "type": "string", "nullable": true, "description": "ID of the user who created the monitor" }, "latestGroup": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" } }, "required": [ "culprit", "firstSeen", "id", "issueCategory", "issueType", "lastSeen", "level", "metadata", "numComments", "platform", "project", "shortId", "status", "substatus", "title", "type" ], "nullable": true, "description": "Latest issue the monitor created" }, "description": { "type": "string", "nullable": true, "description": "Description of the monitor" }, "id": { "type": "string", "description": "Monitor ID" }, "projectId": { "type": "string", "nullable": true, "description": "ID of the project the monitor belongs to" }, "name": { "type": "string", "description": "Monitor name" }, "type": { "type": "string", "description": "Type of the monitor, such as metric_issue or error" }, "workflowIds": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "IDs of the alerts connected to the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the monitor was last updated (ISO 8601)" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "enum": [ "snuba_query_subscription", "cron_monitor", "uptime_subscription" ], "type": "string", "description": "Type of the data source" }, "sourceId": { "type": "string", "description": "ID of the query subscription, cron monitor or uptime subscription" }, "queryObj": { "anyOf": [ { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ] }, { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] }, { "type": "object", "properties": { "url": { "type": "string", "description": "URL the check requests" }, "method": { "type": "string", "description": "HTTP method of the check request, such as GET" }, "body": { "type": "string", "nullable": true, "description": "Body of the check request. Null when it has none" }, "headers": { "type": "array", "items": { "type": "array", "items": { "type": "string" }, "minLength": 2, "maxLength": 2 }, "description": "Headers of the check request, each a name and value pair" }, "intervalSeconds": { "type": "integer", "description": "How often the check runs, in seconds" }, "timeoutMs": { "type": "integer", "description": "How long the check waits for a response, in milliseconds" }, "traceSampling": { "type": "boolean", "description": "Whether the check request samples a trace" }, "responseCaptureEnabled": { "type": "boolean", "description": "Whether failed checks capture the response body and headers" }, "assertion": { "description": "Assertion the response must pass. Null when the check has none", "type": "object", "properties": { "root": { "description": "All possible assertion operations", "anyOf": [ { "description": "The boolean AND operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "and" ], "description": "Operation, always and" }, "children": { "type": "array", "items": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." }, "description": "Operations that must all pass" } } }, { "description": "The boolean OR operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "or" ], "description": "Operation, always or" }, "children": { "type": "array", "items": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." }, "description": "Operations of which at least one must pass" } } }, { "description": "The negation operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "not" ], "description": "Operation, always not" }, "operand": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." } } }, { "description": "The HTTP status code comparison operation", "type": "object", "properties": { "value": { "type": "integer", "description": "HTTP status code to compare the response status code against" }, "operator": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] } } }, { "description": "The JSONPath query operation", "type": "object", "properties": { "op": { "enum": [ "json_path" ], "description": "Operation, always json_path" }, "value": { "type": "string", "description": "JSONPath query to run on the response body" }, "operator": { "nullable": true, "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ], "type": "string" }, "operand": { "description": "An operand for comparison against json path values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "jsonpath_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the query result against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } }, { "type": "object", "nullable": true, "enum": [ null ] } ] } } }, { "description": "The HTTP header (key and value) comparison operation", "type": "object", "properties": { "key_op": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] }, "key_operand": { "description": "A operand for comparison against HTTP header keys and values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the header key or value against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } } ] }, "value_op": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] }, "value_operand": { "description": "A operand for comparison against HTTP header keys and values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the header key or value against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } } ] } } } ] } }, "nullable": true } }, "required": [ "assertion", "body", "headers", "intervalSeconds", "method", "responseCaptureEnabled", "timeoutMs", "traceSampling", "url" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The query subscription, cron monitor or uptime subscription, which depends on type. Null when it no longer exists" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "nullable": true, "description": "Data sources the monitor evaluates, such as a query subscription" }, "conditionGroup": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } }, "nullable": true, "description": "Conditions that decide the monitor's status" }, "config": { "anyOf": [ { "type": "object", "maxProperties": 0, "description": "Empty for monitor types without configuration" }, { "type": "object", "additionalProperties": false, "properties": { "sentry:fingerprintingRules": { "type": "string", "description": "Fingerprinting rules of the project" }, "sentry:resolveAge": { "type": "integer", "description": "Hours of inactivity after which the project's issues resolve. 0 to never" } } }, { "type": "object", "additionalProperties": false, "properties": { "organizationId": { "type": "integer", "description": "ID of the organization" } } }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "additionalProperties": false, "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ], "description": "For percent detection, how far back the compared window is, in seconds" }, "detectionType": { "type": "string", "enum": [ "static", "percent", "dynamic" ], "description": "How the monitor detects issues: static thresholds, percent change or dynamic anomalies" } } }, { "description": "Configuration for preprod static analysis detector", "type": "object", "required": [ "thresholdType", "measurement" ], "additionalProperties": false, "properties": { "thresholdType": { "type": "string", "enum": [ "absolute_diff", "absolute", "relative_diff" ], "description": "The type of threshold to apply" }, "measurement": { "type": "string", "enum": [ "install_size", "download_size" ], "description": "The measurement to track" }, "query": { "type": "string", "description": "Search query to filter which artifacts are monitored" } } }, { "description": "A representation of an uptime alert", "type": "object", "required": [ "mode", "environment", "recoveryThreshold", "downtimeThreshold" ], "additionalProperties": false, "properties": { "mode": { "type": "integer", "enum": [ 1, 2, 3 ], "description": "How the monitor was created: 1 manually, 2 auto-detected and onboarding, 3 auto-detected and active" }, "environment": { "type": "string", "nullable": true, "description": "Environment of the monitor. Null for none" }, "recoveryThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive successful checks required to mark monitor as recovered" }, "downtimeThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive failed checks required to mark monitor as down" } } } ], "description": "Configuration of the monitor, which depends on its type" }, "enabled": { "type": "boolean", "description": "Whether the monitor is enabled" } }, "required": [ "conditionGroup", "config", "dataSources", "dateCreated", "dateUpdated", "enabled", "id", "name", "projectId", "type", "workflowIds" ] }, "examples": { "MonitorSuccessfullyCreated": { "value": { "id": "12345", "projectId": "1", "name": "Example metric monitor", "description": "Example description", "type": "metric_issue", "workflowIds": [], "owner": { "type": "user", "id": "12345", "name": "Jane Doe", "email": "jane@sentry.io" }, "createdBy": "12345", "dateCreated": "2026-01-08T23:45:13.235259Z", "dateUpdated": "2026-01-08T23:45:13.235243Z", "dataSources": [ { "id": "123456", "organizationId": "1", "type": "snuba_query_subscription", "sourceId": "12345", "queryObj": { "id": "23456", "status": 1, "subscription": null, "snubaQuery": { "id": "45678", "dataset": "events", "query": "is:unresolved", "aggregate": "count()", "timeWindow": 3600, "environment": null, "eventTypes": [ "error", "default" ], "extrapolationMode": "unknown" } } } ], "conditionGroup": { "id": "1234567", "organizationId": "1", "logicType": "any", "conditions": [ { "id": "2345677", "type": "gt", "comparison": 10, "conditionResult": 75 }, { "id": "567891", "type": "lte", "comparison": 10, "conditionResult": 0 } ], "actions": [] }, "config": { "detectionType": "static" }, "enabled": true, "latestGroup": null }, "summary": "Monitor successfully created" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/relay_usage/": { "get": { "operationId": "listOrganizationRelayUsage", "description": "Return a list of trusted relays bound to an organization.", "summary": "List an Organization's trusted Relays", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "relayId": { "type": "string", "description": "ID of the Relay" }, "version": { "type": "string", "description": "Version of the Relay" }, "publicKey": { "type": "string", "nullable": true, "description": "Public key of the Relay" }, "firstSeen": { "type": "string", "format": "date-time", "description": "When the Relay first connected (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "description": "When the Relay last connected (ISO 8601)" } }, "required": [ "firstSeen", "lastSeen", "publicKey", "relayId", "version" ] } }, "examples": { "ListAnOrganization'sTrustedRelays": { "value": [ { "relayId": "0123abcd-4567-efgh-ij89-012aaa456bbb", "version": "23.11.2", "firstSeen": "2023-12-10T00:00:00.000000Z", "lastSeen": "2023-12-20T22:22:22.222222Z", "publicKey": "asdfa54g9987ga9dfha0f8adfhkj324-dafd78321-I" } ], "summary": "List an organization's trusted relays" } } } }, "description": "" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/release-threshold-statuses/": { "get": { "operationId": "listOrganizationReleaseThresholdStatuses", "description": "**Experimental:** This API is under active development and may change.\n\nList all derived statuses of releases that fall within the provided start/end datetimes.\n\nConstructs a response key'd off \\{`release_version`\\}-\\{`project_slug`\\} that lists thresholds with their status for *specified* projects.\nEach returned enriched threshold will contain the full serialized `release_threshold` instance as well as it's derived health statuses.", "summary": "Retrieve Statuses of Release Thresholds (Alpha)", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds. Use along with `end`.", "required": true }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The inclusive end of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds. Use along with `start`.", "required": true }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "A list of environment names to filter your results by." }, { "in": "query", "name": "projectSlug", "schema": { "type": "array", "items": { "type": "string" } }, "description": "A list of project slugs to filter your results by." }, { "in": "query", "name": "release", "schema": { "type": "array", "items": { "type": "string" } }, "description": "A list of release versions to filter your results by." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "A list of project IDs or slugs to filter your results by." } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the threshold" }, "date_added": { "type": "string", "format": "date-time", "description": "When the threshold was created (ISO 8601)" }, "environment": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the environment" }, "name": { "type": "string", "description": "Name of the environment" } }, "required": [ "id", "name" ], "nullable": true, "description": "Environment the threshold applies to. Null for all environments" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the threshold applies to" }, "release": { "type": "string", "description": "Version of the release the threshold was checked against" }, "threshold_type": { "enum": [ "total_error_count", "new_issue_count", "unhandled_issue_count", "regressed_issue_count", "failure_rate", "crash_free_session_rate", "crash_free_user_rate" ], "type": "string", "description": "Metric the threshold checks: total_error_count, new_issue_count, unhandled_issue_count, regressed_issue_count, failure_rate, crash_free_session_rate or crash_free_user_rate" }, "trigger_type": { "enum": [ "over", "under" ], "type": "string", "description": "Whether the threshold fails when the metric goes over or under value" }, "value": { "type": "integer", "description": "Value the metric is compared with" }, "window_in_seconds": { "type": "integer", "description": "Time after the release or deploy during which the threshold is checked, in seconds" }, "end": { "type": "string", "format": "date-time", "description": "End of the window the threshold was checked in (ISO 8601)" }, "is_healthy": { "type": "boolean", "description": "Whether the metric stayed within the threshold" }, "key": { "type": "string", "description": "Key that groups thresholds of the same project and release" }, "project_slug": { "type": "string", "description": "Slug of the project" }, "project_id": { "type": "integer", "description": "ID of the project" }, "start": { "type": "string", "format": "date-time", "description": "Start of the window the threshold was checked in: the latest deploy, or the release date (ISO 8601)" }, "metric_value": { "anyOf": [ { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Value of the metric in the window. Null when it couldn't be computed" } }, "required": [ "end", "is_healthy", "key", "metric_value", "project_id", "project_slug", "start" ] } } }, "examples": { "ClientKeyWithRateLimiting": { "value": { "the-spoiled-yoghurt-v1.0.0": [ { "project_id": 0, "project_slug": "the-spoiled-yoghurt", "environment": { "id": "1", "name": "production" }, "project": { "id": "4505321021243392", "slug": "the-spoiled-yoghurt", "name": "The Spoiled Yoghurt", "platform": "python", "dateCreated": "2023-06-08T00:13:06.004534Z", "isBookmarked": false, "isMember": true, "features": [ "custom-inbound-filters", "discard-groups", "minidump", "rate-limits", "servicehooks", "similarity-indexing", "similarity-indexing-v2", "similarity-view", "similarity-view-v2" ], "firstEvent": null, "firstTransactionEvent": false, "access": [ "member:read", "event:read", "project:admin", "team:write", "project:write", "team:admin", "project:read", "org:integrations", "org:read", "project:releases", "team:read", "alerts:write", "event:admin", "event:write", "alerts:read" ], "hasAccess": true, "hasMinifiedStackTrace": false, "hasFeedbacks": false, "hasMonitors": false, "hasNewFeedbacks": false, "hasProfiles": false, "hasReplays": false, "hasFlags": false, "hasSessions": false, "hasInsightsHttp": true, "hasInsightsDb": false, "hasInsightsAssets": true, "hasInsightsAppStart": false, "hasInsightsScreenLoad": false, "hasInsightsVitals": false, "hasInsightsCaches": false, "hasInsightsQueues": false, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "isInternal": false, "isPublic": false, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "color": "#3f70bf", "status": "active" }, "threshold_type": "total_error_count", "trigger_type": "over", "value": 100, "window_in_seconds": 600, "key": "foobar-v1.0.0", "release": "the-spoiled-yoghurt-v1.0.0", "is_healthy": true, "start": "2022-02-14T19:00:00Z", "end": "2022-02-28T18:03:00Z", "metric_value": 0.1 } ] }, "summary": "Client key with rate limiting" } } } }, "description": "" }, "400": { "description": "Bad Request" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/releases/": { "get": { "operationId": "listOrganizationReleases", "description": "Return a list of releases for a given organization, sorted by most recent.", "summary": "List an Organization's Releases", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Case-insensitive substring match against the release version." }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release started (ISO 8601)" }, "owner": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "Release owner" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its first event (ISO 8601)" }, "lastEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its most recent event (ISO 8601)" }, "currentProjectMeta": { "type": "object", "properties": { "sessionsLowerBound": { "type": "string", "nullable": true, "description": "Start of the release's sessions in the project (ISO 8601)" }, "sessionsUpperBound": { "type": "string", "nullable": true, "description": "End of the release's sessions in the project (ISO 8601)" }, "nextReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the next release in the project" }, "prevReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the previous release in the project" }, "firstReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the first release in the project" }, "lastReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the latest release in the project" } }, "nullable": true, "description": "Session bounds and neighboring release versions in the current project, when a project is requested" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "adoptionStages": { "type": "object", "additionalProperties": { "type": "object", "properties": { "stage": { "enum": [ "adopted", "low_adoption", "replaced" ], "type": "string", "description": "Adoption stage of the release" }, "adopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was adopted (ISO 8601)" }, "unadopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release stopped being adopted (ISO 8601)" } }, "required": [ "adopted", "stage", "unadopted" ] }, "nullable": true, "description": "Adoption stage of the release in each project, keyed by project slug" }, "id": { "type": "integer", "description": "Release ID" }, "version": { "type": "string", "description": "Version of the release" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "shortVersion": { "type": "string", "description": "Shortened release version" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "authors": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] } ] }, "description": "Authors of the release's commits" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "healthData": { "type": "object", "properties": { "durationP50": { "type": "number", "format": "double", "nullable": true, "description": "Median session duration in seconds" }, "durationP90": { "type": "number", "format": "double", "nullable": true, "description": "90th percentile session duration in seconds" }, "crashFreeUsers": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of users who didn't experience a crash" }, "crashFreeSessions": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of sessions that didn't crash" }, "totalUsers": { "type": "integer", "nullable": true, "description": "Total number of users in the release" }, "totalUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the release over the last 24 hours" }, "totalProjectUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the project over the last 24 hours" }, "totalSessions": { "type": "integer", "nullable": true, "description": "Total number of sessions in the release" }, "totalSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the release over the last 24 hours" }, "totalProjectSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the project over the last 24 hours" }, "adoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's users over the last 24 hours that were on the release" }, "sessionsAdoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's sessions over the last 24 hours that were on the release" }, "sessionsCrashed": { "type": "integer", "description": "Number of crashed sessions" }, "sessionsErrored": { "type": "integer", "description": "Number of sessions with errors" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "description": "Session or user counts over time, keyed by stats period" } }, "required": [ "hasHealthData", "sessionsCrashed", "sessionsErrored", "stats" ], "nullable": true, "description": "Release health data for the project. Only included when health data is requested" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released in the project (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When work on the release started (ISO 8601)" }, "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Platforms of the project" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data in the project" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release in the project" } }, "required": [ "hasHealthData", "id", "name", "newGroups", "platform", "platforms", "slug" ] }, "description": "Projects in the release" } }, "required": [ "authors", "commitCount", "data", "deployCount", "id", "newGroups", "projects", "shortVersion", "status", "version", "versionInfo" ] } }, "examples": { "ReturnAListOfReleasesForAnOrganization": { "value": [ { "id": 1, "version": "frontend@1.0.0", "shortVersion": "frontend@1.0.0", "status": "open", "versionInfo": { "package": "frontend", "version": { "raw": "1.0.0", "major": 1, "minor": 0, "patch": 0, "pre": null, "buildCode": null, "components": 3 }, "description": "1.0.0", "buildHash": null }, "ref": null, "url": null, "dateReleased": null, "dateCreated": "2024-01-01T00:00:00Z", "data": {}, "newGroups": 0, "owner": null, "commitCount": 0, "lastCommit": null, "deployCount": 0, "lastDeploy": null, "authors": [], "projects": [ { "id": 1, "slug": "sentry", "name": "sentry", "newGroups": 0, "platform": "javascript", "platforms": [ "javascript" ], "hasHealthData": false } ], "firstEvent": null, "lastEvent": null, "currentProjectMeta": {}, "userAgent": null } ], "summary": "Return a list of releases for an organization" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createOrganizationRelease", "description": "Create a new release for the given organization. Releases are used by Sentry to\nimprove error reporting by correlating first-seen events with the release that may\nhave introduced them, and are required for source maps and other debug features.\n\nRelease versions that are the same across multiple projects within an organization\nare treated as the same release in Sentry.", "summary": "Create a New Release for an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Releases" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "version": { "type": "string", "description": "A version identifier for this release. Can be a version number, a commit hash, and so on.", "maxLength": 200 }, "projects": { "type": "array", "items": { "type": "string" }, "description": "A list of project slugs that are involved in this release." }, "ref": { "type": "string", "nullable": true, "description": "An optional commit reference. This is useful if a tagged version has been provided.", "maxLength": 200 }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "A URL that points to the release. For instance, this can be the path to an online interface to the source code, such as a GitHub URL." }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "An optional date that indicates when the release went live. If not provided the current time is used." }, "commits": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "maxLength": 64 }, "repository": { "type": "string", "nullable": true, "maxLength": 64 }, "message": { "type": "string", "nullable": true }, "author_name": { "type": "string", "nullable": true, "maxLength": 128 }, "author_email": { "type": "string", "nullable": true, "maxLength": 200 }, "timestamp": { "type": "string", "format": "date-time", "nullable": true }, "patch_set": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 510 }, "type": { "type": "string", "maxLength": 1 } }, "required": [ "path", "type" ] }, "nullable": true } }, "required": [ "id" ] }, "description": "An optional list of commit data to be associated. Very long lists are truncated to the most recent commits." }, "status": { "type": "string", "description": "The status of the release. Can be `open` or `archived`." }, "owner": { "type": "string", "description": "The username of the user to set as the release owner." }, "headCommits": { "type": "array", "items": { "type": "object", "properties": { "currentId": { "type": "string", "maxLength": 64 }, "repository": { "type": "string", "maxLength": 64 }, "previousId": { "type": "string", "nullable": true, "maxLength": 64 } }, "required": [ "currentId", "repository" ] }, "description": "(Deprecated) Use `refs` instead. An optional list of head commits to associate with the release, one per repository." }, "refs": { "type": "array", "items": { "type": "object", "properties": { "commit": { "type": "string" }, "repository": { "type": "string", "maxLength": 200 }, "previousCommit": { "type": "string", "nullable": true, "maxLength": 64 } }, "required": [ "commit", "repository" ] }, "description": "An optional list of commit references, one per repository, used to associate commits with the release." } }, "required": [ "projects", "version" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release started (ISO 8601)" }, "owner": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "Release owner" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its first event (ISO 8601)" }, "lastEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its most recent event (ISO 8601)" }, "currentProjectMeta": { "type": "object", "properties": { "sessionsLowerBound": { "type": "string", "nullable": true, "description": "Start of the release's sessions in the project (ISO 8601)" }, "sessionsUpperBound": { "type": "string", "nullable": true, "description": "End of the release's sessions in the project (ISO 8601)" }, "nextReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the next release in the project" }, "prevReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the previous release in the project" }, "firstReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the first release in the project" }, "lastReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the latest release in the project" } }, "nullable": true, "description": "Session bounds and neighboring release versions in the current project, when a project is requested" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "adoptionStages": { "type": "object", "additionalProperties": { "type": "object", "properties": { "stage": { "enum": [ "adopted", "low_adoption", "replaced" ], "type": "string", "description": "Adoption stage of the release" }, "adopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was adopted (ISO 8601)" }, "unadopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release stopped being adopted (ISO 8601)" } }, "required": [ "adopted", "stage", "unadopted" ] }, "nullable": true, "description": "Adoption stage of the release in each project, keyed by project slug" }, "id": { "type": "integer", "description": "Release ID" }, "version": { "type": "string", "description": "Version of the release" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "shortVersion": { "type": "string", "description": "Shortened release version" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "authors": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] } ] }, "description": "Authors of the release's commits" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "healthData": { "type": "object", "properties": { "durationP50": { "type": "number", "format": "double", "nullable": true, "description": "Median session duration in seconds" }, "durationP90": { "type": "number", "format": "double", "nullable": true, "description": "90th percentile session duration in seconds" }, "crashFreeUsers": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of users who didn't experience a crash" }, "crashFreeSessions": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of sessions that didn't crash" }, "totalUsers": { "type": "integer", "nullable": true, "description": "Total number of users in the release" }, "totalUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the release over the last 24 hours" }, "totalProjectUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the project over the last 24 hours" }, "totalSessions": { "type": "integer", "nullable": true, "description": "Total number of sessions in the release" }, "totalSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the release over the last 24 hours" }, "totalProjectSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the project over the last 24 hours" }, "adoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's users over the last 24 hours that were on the release" }, "sessionsAdoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's sessions over the last 24 hours that were on the release" }, "sessionsCrashed": { "type": "integer", "description": "Number of crashed sessions" }, "sessionsErrored": { "type": "integer", "description": "Number of sessions with errors" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "description": "Session or user counts over time, keyed by stats period" } }, "required": [ "hasHealthData", "sessionsCrashed", "sessionsErrored", "stats" ], "nullable": true, "description": "Release health data for the project. Only included when health data is requested" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released in the project (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When work on the release started (ISO 8601)" }, "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Platforms of the project" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data in the project" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release in the project" } }, "required": [ "hasHealthData", "id", "name", "newGroups", "platform", "platforms", "slug" ] }, "description": "Projects in the release" } }, "required": [ "authors", "commitCount", "data", "deployCount", "id", "newGroups", "projects", "shortVersion", "status", "version", "versionInfo" ] }, "examples": { "CreateARelease": { "value": { "id": 1, "version": "frontend@1.0.0", "shortVersion": "frontend@1.0.0", "status": "open", "versionInfo": { "package": "frontend", "version": { "raw": "1.0.0", "major": 1, "minor": 0, "patch": 0, "pre": null, "buildCode": null, "components": 3 }, "description": "1.0.0", "buildHash": null }, "ref": null, "url": null, "dateReleased": null, "dateCreated": "2024-01-01T00:00:00Z", "data": {}, "newGroups": 0, "owner": null, "commitCount": 0, "lastCommit": null, "deployCount": 0, "lastDeploy": null, "authors": [], "projects": [ { "id": 1, "slug": "sentry", "name": "sentry", "newGroups": 0, "platform": "javascript", "platforms": [ "javascript" ], "hasHealthData": false } ], "firstEvent": null, "lastEvent": null, "currentProjectMeta": {}, "userAgent": null }, "summary": "Create a release" } } } }, "description": "" }, "208": { "description": "Already Reported" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/releases/{version}/": { "get": { "operationId": "getOrganizationRelease", "description": "Return details on an individual release.", "summary": "Retrieve an Organization's Release", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true }, { "in": "query", "name": "project_id", "schema": { "type": "string" }, "description": "Deprecated. Use project instead.", "deprecated": true }, { "in": "query", "name": "project", "schema": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] }, "description": "The project ID or slug to filter by. Overrides project_id when both are sent." }, { "in": "query", "name": "health", "schema": { "type": "boolean" }, "description": "Whether or not to include health data with the release. By default, this is false." }, { "in": "query", "name": "adoptionStages", "schema": { "type": "boolean" }, "description": "Whether or not to include adoption stages with the release. By default, this is false." }, { "in": "query", "name": "summaryStatsPeriod", "schema": { "type": "string", "enum": [ "14d", "1d", "1h", "24h", "2d", "30d", "48h", "7d", "90d" ] }, "description": "The period of time used to query summary stats for the release. By default, this is 14d." }, { "in": "query", "name": "healthStatsPeriod", "schema": { "type": "string", "enum": [ "14d", "1d", "1h", "24h", "2d", "30d", "48h", "7d", "90d" ] }, "description": "The period of time used to query health stats for the release. By default, this is 24h if health is enabled." }, { "in": "query", "name": "sort", "schema": { "type": "string", "enum": [ "date" ] }, "description": "The field used to sort results by. By default, this is `date`." }, { "in": "query", "name": "status", "schema": { "type": "string", "enum": [ "archived", "open" ] }, "description": "Release statuses that you can filter by." }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Filters results by using [query syntax](/product/sentry-basics/search/).\n\nExample: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)`\n" } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release started (ISO 8601)" }, "owner": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "Release owner" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its first event (ISO 8601)" }, "lastEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its most recent event (ISO 8601)" }, "currentProjectMeta": { "type": "object", "properties": { "sessionsLowerBound": { "type": "string", "nullable": true, "description": "Start of the release's sessions in the project (ISO 8601)" }, "sessionsUpperBound": { "type": "string", "nullable": true, "description": "End of the release's sessions in the project (ISO 8601)" }, "nextReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the next release in the project" }, "prevReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the previous release in the project" }, "firstReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the first release in the project" }, "lastReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the latest release in the project" } }, "nullable": true, "description": "Session bounds and neighboring release versions in the current project, when a project is requested" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "adoptionStages": { "type": "object", "additionalProperties": { "type": "object", "properties": { "stage": { "enum": [ "adopted", "low_adoption", "replaced" ], "type": "string", "description": "Adoption stage of the release" }, "adopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was adopted (ISO 8601)" }, "unadopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release stopped being adopted (ISO 8601)" } }, "required": [ "adopted", "stage", "unadopted" ] }, "nullable": true, "description": "Adoption stage of the release in each project, keyed by project slug" }, "id": { "type": "integer", "description": "Release ID" }, "version": { "type": "string", "description": "Version of the release" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "shortVersion": { "type": "string", "description": "Shortened release version" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "authors": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] } ] }, "description": "Authors of the release's commits" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "healthData": { "type": "object", "properties": { "durationP50": { "type": "number", "format": "double", "nullable": true, "description": "Median session duration in seconds" }, "durationP90": { "type": "number", "format": "double", "nullable": true, "description": "90th percentile session duration in seconds" }, "crashFreeUsers": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of users who didn't experience a crash" }, "crashFreeSessions": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of sessions that didn't crash" }, "totalUsers": { "type": "integer", "nullable": true, "description": "Total number of users in the release" }, "totalUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the release over the last 24 hours" }, "totalProjectUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the project over the last 24 hours" }, "totalSessions": { "type": "integer", "nullable": true, "description": "Total number of sessions in the release" }, "totalSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the release over the last 24 hours" }, "totalProjectSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the project over the last 24 hours" }, "adoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's users over the last 24 hours that were on the release" }, "sessionsAdoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's sessions over the last 24 hours that were on the release" }, "sessionsCrashed": { "type": "integer", "description": "Number of crashed sessions" }, "sessionsErrored": { "type": "integer", "description": "Number of sessions with errors" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "description": "Session or user counts over time, keyed by stats period" } }, "required": [ "hasHealthData", "sessionsCrashed", "sessionsErrored", "stats" ], "nullable": true, "description": "Release health data for the project. Only included when health data is requested" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released in the project (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When work on the release started (ISO 8601)" }, "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Platforms of the project" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data in the project" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release in the project" } }, "required": [ "hasHealthData", "id", "name", "newGroups", "platform", "platforms", "slug" ] }, "description": "Projects in the release" } }, "required": [ "authors", "commitCount", "data", "deployCount", "id", "newGroups", "projects", "shortVersion", "status", "version", "versionInfo" ] }, "examples": { "RetrieveReleaseDetails": { "value": { "id": 1122684517, "version": "control@abc123", "status": "open", "shortVersion": "control@abc123", "versionInfo": { "package": "control", "version": { "raw": "abc123" }, "description": "abc123", "buildHash": "abc123" }, "ref": null, "url": null, "dateReleased": null, "dateCreated": "2024-05-21T11:26:16.190281Z", "data": {}, "newGroups": 0, "owner": null, "commitCount": 2, "lastCommit": { "id": "xyz123", "message": "feat(raspberries): Made raspberries even more delicious", "dateCreated": "2024-05-21T11:04:55Z", "pullRequest": { "id": "70214", "title": "feat(raspberries): Made raspberries even more delicious", "message": "Made raspberries even more delicious", "dateCreated": "2024-05-03T07:32:28.205043Z", "mergedAt": "2024-05-03T09:12:44.104571Z", "status": "merged", "repository": { "id": "1", "name": "raj/raspberries", "url": "https://raspberries.raspberries/raj/raspberries", "provider": { "id": "integrations:github", "name": "GitHub" }, "status": "active", "dateCreated": "2016-10-10T21:36:42.414678Z", "integrationId": "2933", "externalSlug": "raj/raspberries", "externalId": "873328" }, "author": { "id": "2837091", "name": "Raj's Raspberries", "username": "rajraspberry", "email": "raj@raspberries", "avatarUrl": "https://gravatar.com/avatar/bf99685de539465db9208ab3a888843ba0e5e85b1f156084484c7c6c31312be5?s=32&d=mm", "isActive": true, "isSuspended": false, "hasPasswordAuth": false, "isManaged": false, "dateJoined": "2023-08-07T12:32:09.091427Z", "lastLogin": "2024-05-21T05:46:23.824074Z", "has2fa": true, "lastActive": "2024-05-21T13:59:10.614891Z", "isSuperuser": true, "isStaff": true, "experiments": {}, "emails": [ { "id": "2972219", "email": "raj@raspberries", "is_verified": true } ], "avatar": { "avatarType": "upload", "avatarUuid": "2d641b5d3c8c4b6aa3b14c4d0e7f9c3a", "avatarUrl": "https://sentry.io/avatar/2d641b5d3c8c4b6aa3b14c4d0e7f9c3a/" } }, "externalUrl": "https://github.com/raj/raspberries/pull/70214" }, "suspectCommitType": "", "repository": { "id": "1", "name": "raj/raspberries", "url": "https://github.com/raj/raspberries", "provider": { "id": "integrations:github", "name": "GitHub" }, "status": "active", "dateCreated": "2016-10-10T21:36:42.414678Z", "integrationId": "2933", "externalSlug": "raj/raspberries", "externalId": "873328" }, "author": { "id": "2837091", "name": "Raj's Raspberries", "username": "rajraspberry", "email": "raj@raspberries", "avatarUrl": "https://gravatar.com/avatar/bf99685de539465db9208ab3a888843ba0e5e85b1f156084484c7c6c31312be5?s=32&d=mm", "isActive": true, "isSuspended": false, "hasPasswordAuth": false, "isManaged": false, "dateJoined": "2023-08-07T12:32:09.091427Z", "lastLogin": "2024-05-21T05:46:23.824074Z", "has2fa": true, "lastActive": "2024-05-21T13:59:10.614891Z", "isSuperuser": true, "isStaff": true, "experiments": {}, "emails": [ { "id": "2972219", "email": "raj@raspberries", "is_verified": true } ], "avatar": { "avatarType": "upload", "avatarUuid": "2d641b5d3c8c4b6aa3b14c4d0e7f9c3a", "avatarUrl": "https://sentry.io/avatar/2d641b5d3c8c4b6aa3b14c4d0e7f9c3a/" } } }, "deployCount": 1, "lastDeploy": { "id": "53070941", "environment": "canary-test-control", "dateStarted": null, "dateFinished": "2024-05-21T11:26:17.597793Z", "name": "control@abc123 to canary-test-", "url": null }, "authors": [ { "id": "2837091", "name": "Raj's Raspberries", "username": "rajraspberry", "email": "raj@raspberries", "avatarUrl": "https://gravatar.com/avatar/bf99685de539465db9208ab3a888843ba0e5e85b1f156084484c7c6c31312be5?s=32&d=mm", "isActive": true, "isSuspended": false, "hasPasswordAuth": false, "isManaged": false, "dateJoined": "2023-08-07T12:32:09.091427Z", "lastLogin": "2024-05-21T05:46:23.824074Z", "has2fa": true, "lastActive": "2024-05-21T13:59:10.614891Z", "isSuperuser": true, "isStaff": true, "experiments": {}, "emails": [ { "id": "2972219", "email": "raj@raspberries", "is_verified": true } ], "avatar": { "avatarType": "upload", "avatarUuid": "xyz123", "avatarUrl": "https://sentry.io/avatar/xyz123/" } } ], "projects": [ { "id": 1, "slug": "sentry", "name": "Backend", "newGroups": 0, "platform": "python", "platforms": [ "native", "other", "python" ], "hasHealthData": false, "healthData": { "durationP50": null, "durationP90": null, "crashFreeUsers": null, "crashFreeSessions": null, "sessionsCrashed": 0, "sessionsErrored": 0, "totalUsers": null, "totalUsers24h": null, "totalProjectUsers24h": null, "totalSessions": null, "totalSessions24h": null, "totalProjectSessions24h": null, "adoption": null, "sessionsAdoption": null, "stats": { "24h": [ [ 1715126400, 0 ], [ 1715212800, 0 ], [ 1715299200, 0 ], [ 1715385600, 0 ], [ 1715472000, 0 ], [ 1715558400, 0 ], [ 1715644800, 0 ], [ 1715731200, 0 ], [ 1715817600, 0 ], [ 1715904000, 0 ], [ 1715990400, 0 ], [ 1716076800, 0 ], [ 1716163200, 0 ], [ 1716249600, 0 ] ] }, "hasHealthData": false } } ], "firstEvent": null, "lastEvent": null, "currentProjectMeta": {}, "userAgent": "Python-urllib/3.11", "adoptionStages": { "sentry": { "stage": "low_adoption", "adopted": null, "unadopted": null } } }, "summary": "Retrieve release details" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateOrganizationRelease", "description": "Update a release. This can change some metadata associated with\nthe release (the ref, url, and dates).", "summary": "Update an Organization's Release", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true } ], "tags": [ "Releases" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "An optional commit reference. This is useful if a tagged version has been provided.", "maxLength": 200 }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "A URL that points to the release. For instance, this can be the path to an online interface to the source code, such as a GitHub URL." }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "An optional date that indicates when the release went live. If not provided the current time is used." }, "commits": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "maxLength": 64 }, "repository": { "type": "string", "nullable": true, "maxLength": 64 }, "message": { "type": "string", "nullable": true }, "author_name": { "type": "string", "nullable": true, "maxLength": 128 }, "author_email": { "type": "string", "nullable": true, "maxLength": 200 }, "timestamp": { "type": "string", "format": "date-time", "nullable": true }, "patch_set": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 510 }, "type": { "type": "string", "maxLength": 1 } }, "required": [ "path", "type" ] }, "nullable": true } }, "required": [ "id" ] }, "description": "An optional list of commit data to be associated. Very long lists are truncated to the most recent commits." }, "status": { "type": "string", "description": "The status of the release. Can be `open` or `archived`." }, "headCommits": { "type": "array", "items": { "type": "object", "properties": { "currentId": { "type": "string", "maxLength": 64 }, "repository": { "type": "string", "maxLength": 64 }, "previousId": { "type": "string", "nullable": true, "maxLength": 64 } }, "required": [ "currentId", "repository" ] }, "description": "Deprecated, use `commits`. Head commits to associate with the release." }, "refs": { "type": "array", "items": { "type": "object", "properties": { "commit": { "type": "string" }, "repository": { "type": "string", "maxLength": 200 }, "previousCommit": { "type": "string", "nullable": true, "maxLength": 64 } }, "required": [ "commit", "repository" ] }, "description": "An optional way to indicate the start and end commits for each repository included in a release. Head commits must include parameters ``repository`` and ``commit`` (the HEAD SHA). For GitLab repositories, please use the Group name instead of the slug. They can optionally include ``previousCommit`` (the SHA of the HEAD of the previous release), which should be specified if this is the first time you've sent commit data." } } } } } }, "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release started (ISO 8601)" }, "owner": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "Release owner" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its first event (ISO 8601)" }, "lastEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its most recent event (ISO 8601)" }, "currentProjectMeta": { "type": "object", "properties": { "sessionsLowerBound": { "type": "string", "nullable": true, "description": "Start of the release's sessions in the project (ISO 8601)" }, "sessionsUpperBound": { "type": "string", "nullable": true, "description": "End of the release's sessions in the project (ISO 8601)" }, "nextReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the next release in the project" }, "prevReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the previous release in the project" }, "firstReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the first release in the project" }, "lastReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the latest release in the project" } }, "nullable": true, "description": "Session bounds and neighboring release versions in the current project, when a project is requested" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "adoptionStages": { "type": "object", "additionalProperties": { "type": "object", "properties": { "stage": { "enum": [ "adopted", "low_adoption", "replaced" ], "type": "string", "description": "Adoption stage of the release" }, "adopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was adopted (ISO 8601)" }, "unadopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release stopped being adopted (ISO 8601)" } }, "required": [ "adopted", "stage", "unadopted" ] }, "nullable": true, "description": "Adoption stage of the release in each project, keyed by project slug" }, "id": { "type": "integer", "description": "Release ID" }, "version": { "type": "string", "description": "Version of the release" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "shortVersion": { "type": "string", "description": "Shortened release version" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "authors": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] } ] }, "description": "Authors of the release's commits" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "healthData": { "type": "object", "properties": { "durationP50": { "type": "number", "format": "double", "nullable": true, "description": "Median session duration in seconds" }, "durationP90": { "type": "number", "format": "double", "nullable": true, "description": "90th percentile session duration in seconds" }, "crashFreeUsers": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of users who didn't experience a crash" }, "crashFreeSessions": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of sessions that didn't crash" }, "totalUsers": { "type": "integer", "nullable": true, "description": "Total number of users in the release" }, "totalUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the release over the last 24 hours" }, "totalProjectUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the project over the last 24 hours" }, "totalSessions": { "type": "integer", "nullable": true, "description": "Total number of sessions in the release" }, "totalSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the release over the last 24 hours" }, "totalProjectSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the project over the last 24 hours" }, "adoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's users over the last 24 hours that were on the release" }, "sessionsAdoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's sessions over the last 24 hours that were on the release" }, "sessionsCrashed": { "type": "integer", "description": "Number of crashed sessions" }, "sessionsErrored": { "type": "integer", "description": "Number of sessions with errors" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "description": "Session or user counts over time, keyed by stats period" } }, "required": [ "hasHealthData", "sessionsCrashed", "sessionsErrored", "stats" ], "nullable": true, "description": "Release health data for the project. Only included when health data is requested" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released in the project (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When work on the release started (ISO 8601)" }, "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Platforms of the project" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data in the project" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release in the project" } }, "required": [ "hasHealthData", "id", "name", "newGroups", "platform", "platforms", "slug" ] }, "description": "Projects in the release" } }, "required": [ "authors", "commitCount", "data", "deployCount", "id", "newGroups", "projects", "shortVersion", "status", "version", "versionInfo" ] }, "examples": { "RetrieveReleaseDetails": { "value": { "id": 1122684517, "version": "control@abc123", "status": "open", "shortVersion": "control@abc123", "versionInfo": { "package": "control", "version": { "raw": "abc123" }, "description": "abc123", "buildHash": "abc123" }, "ref": null, "url": null, "dateReleased": null, "dateCreated": "2024-05-21T11:26:16.190281Z", "data": {}, "newGroups": 0, "owner": null, "commitCount": 2, "lastCommit": { "id": "xyz123", "message": "feat(raspberries): Made raspberries even more delicious", "dateCreated": "2024-05-21T11:04:55Z", "pullRequest": { "id": "70214", "title": "feat(raspberries): Made raspberries even more delicious", "message": "Made raspberries even more delicious", "dateCreated": "2024-05-03T07:32:28.205043Z", "mergedAt": "2024-05-03T09:12:44.104571Z", "status": "merged", "repository": { "id": "1", "name": "raj/raspberries", "url": "https://raspberries.raspberries/raj/raspberries", "provider": { "id": "integrations:github", "name": "GitHub" }, "status": "active", "dateCreated": "2016-10-10T21:36:42.414678Z", "integrationId": "2933", "externalSlug": "raj/raspberries", "externalId": "873328" }, "author": { "id": "2837091", "name": "Raj's Raspberries", "username": "rajraspberry", "email": "raj@raspberries", "avatarUrl": "https://gravatar.com/avatar/bf99685de539465db9208ab3a888843ba0e5e85b1f156084484c7c6c31312be5?s=32&d=mm", "isActive": true, "isSuspended": false, "hasPasswordAuth": false, "isManaged": false, "dateJoined": "2023-08-07T12:32:09.091427Z", "lastLogin": "2024-05-21T05:46:23.824074Z", "has2fa": true, "lastActive": "2024-05-21T13:59:10.614891Z", "isSuperuser": true, "isStaff": true, "experiments": {}, "emails": [ { "id": "2972219", "email": "raj@raspberries", "is_verified": true } ], "avatar": { "avatarType": "upload", "avatarUuid": "2d641b5d3c8c4b6aa3b14c4d0e7f9c3a", "avatarUrl": "https://sentry.io/avatar/2d641b5d3c8c4b6aa3b14c4d0e7f9c3a/" } }, "externalUrl": "https://github.com/raj/raspberries/pull/70214" }, "suspectCommitType": "", "repository": { "id": "1", "name": "raj/raspberries", "url": "https://github.com/raj/raspberries", "provider": { "id": "integrations:github", "name": "GitHub" }, "status": "active", "dateCreated": "2016-10-10T21:36:42.414678Z", "integrationId": "2933", "externalSlug": "raj/raspberries", "externalId": "873328" }, "author": { "id": "2837091", "name": "Raj's Raspberries", "username": "rajraspberry", "email": "raj@raspberries", "avatarUrl": "https://gravatar.com/avatar/bf99685de539465db9208ab3a888843ba0e5e85b1f156084484c7c6c31312be5?s=32&d=mm", "isActive": true, "isSuspended": false, "hasPasswordAuth": false, "isManaged": false, "dateJoined": "2023-08-07T12:32:09.091427Z", "lastLogin": "2024-05-21T05:46:23.824074Z", "has2fa": true, "lastActive": "2024-05-21T13:59:10.614891Z", "isSuperuser": true, "isStaff": true, "experiments": {}, "emails": [ { "id": "2972219", "email": "raj@raspberries", "is_verified": true } ], "avatar": { "avatarType": "upload", "avatarUuid": "2d641b5d3c8c4b6aa3b14c4d0e7f9c3a", "avatarUrl": "https://sentry.io/avatar/2d641b5d3c8c4b6aa3b14c4d0e7f9c3a/" } } }, "deployCount": 1, "lastDeploy": { "id": "53070941", "environment": "canary-test-control", "dateStarted": null, "dateFinished": "2024-05-21T11:26:17.597793Z", "name": "control@abc123 to canary-test-", "url": null }, "authors": [ { "id": "2837091", "name": "Raj's Raspberries", "username": "rajraspberry", "email": "raj@raspberries", "avatarUrl": "https://gravatar.com/avatar/bf99685de539465db9208ab3a888843ba0e5e85b1f156084484c7c6c31312be5?s=32&d=mm", "isActive": true, "isSuspended": false, "hasPasswordAuth": false, "isManaged": false, "dateJoined": "2023-08-07T12:32:09.091427Z", "lastLogin": "2024-05-21T05:46:23.824074Z", "has2fa": true, "lastActive": "2024-05-21T13:59:10.614891Z", "isSuperuser": true, "isStaff": true, "experiments": {}, "emails": [ { "id": "2972219", "email": "raj@raspberries", "is_verified": true } ], "avatar": { "avatarType": "upload", "avatarUuid": "xyz123", "avatarUrl": "https://sentry.io/avatar/xyz123/" } } ], "projects": [ { "id": 1, "slug": "sentry", "name": "Backend", "newGroups": 0, "platform": "python", "platforms": [ "native", "other", "python" ], "hasHealthData": false, "healthData": { "durationP50": null, "durationP90": null, "crashFreeUsers": null, "crashFreeSessions": null, "sessionsCrashed": 0, "sessionsErrored": 0, "totalUsers": null, "totalUsers24h": null, "totalProjectUsers24h": null, "totalSessions": null, "totalSessions24h": null, "totalProjectSessions24h": null, "adoption": null, "sessionsAdoption": null, "stats": { "24h": [ [ 1715126400, 0 ], [ 1715212800, 0 ], [ 1715299200, 0 ], [ 1715385600, 0 ], [ 1715472000, 0 ], [ 1715558400, 0 ], [ 1715644800, 0 ], [ 1715731200, 0 ], [ 1715817600, 0 ], [ 1715904000, 0 ], [ 1715990400, 0 ], [ 1716076800, 0 ], [ 1716163200, 0 ], [ 1716249600, 0 ] ] }, "hasHealthData": false } } ], "firstEvent": null, "lastEvent": null, "currentProjectMeta": {}, "userAgent": "Python-urllib/3.11", "adoptionStages": { "sentry": { "stage": "low_adoption", "adopted": null, "unadopted": null } } }, "summary": "Retrieve release details" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteOrganizationRelease", "description": "Permanently remove a release and all of its files.", "summary": "Delete an Organization's Release", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "project:admin", "project:releases" ] } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/releases/{version}/commits/": { "get": { "operationId": "listOrganizationReleaseCommits", "description": "Retrieve a list of commits for a given release.", "summary": "List an Organization Release's Commits", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" }, "releases": { "type": "array", "items": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" }, "shortVersion": { "type": "string", "description": "Short version of the release" }, "ref": { "type": "string", "nullable": true, "description": "Commit ref of the release" }, "url": { "type": "string", "nullable": true, "description": "URL of the release" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the release was created (ISO 8601)" } }, "required": [ "dateCreated", "dateReleased", "ref", "shortVersion", "url", "version" ] }, "description": "Releases that contain the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "releases", "suspectCommitType" ] } }, "examples": { "ReturnAListOfCommitsForARelease": { "value": [ { "id": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2", "message": "fix: handle empty release version", "dateCreated": "2024-01-01T00:00:00Z", "pullRequest": null, "suspectCommitType": "", "releases": [ { "version": "frontend@1.0.0", "shortVersion": "1.0.0", "ref": null, "url": null, "dateReleased": null, "dateCreated": "2024-01-01T00:00:00Z" } ] } ], "summary": "Return a list of commits for a release" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/releases/{version}/deploys/": { "get": { "operationId": "listOrganizationReleaseDeploys", "description": "Returns a list of deploys based on the organization, version, and project.", "summary": "List a Release's Deploys", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "description": "Serializer for Deploy response objects", "properties": { "id": { "type": "string", "description": "The ID of the deploy" }, "environment": { "type": "string", "description": "The environment name" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "An optional date that indicates when the deploy started" }, "dateFinished": { "type": "string", "format": "date-time", "description": "An optional date that indicates when the deploy ended" }, "name": { "type": "string", "nullable": true, "description": "The optional name of the deploy" }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "The optional URL that points to the deploy" } }, "required": [ "dateFinished", "dateStarted", "environment", "id", "name", "url" ] } } } }, "description": "" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createOrganizationReleaseDeploy", "description": "Create a deploy for a given release.", "summary": "Create a Deploy", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true } ], "tags": [ "Releases" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "environment": { "type": "string", "description": "The environment you're deploying to", "maxLength": 64 }, "name": { "type": "string", "nullable": true, "description": "The optional name of the deploy", "maxLength": 64 }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "The optional URL that points to the deploy" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "An optional date that indicates when the deploy started" }, "dateFinished": { "type": "string", "format": "date-time", "nullable": true, "description": "An optional date that indicates when the deploy ended. If not provided, the current time is used." }, "projects": { "type": "array", "items": { "type": "string" }, "description": "The optional list of project slugs to create a deploy within. If not provided, deploys are created for all of the release's projects." } }, "required": [ "environment" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "description": "Serializer for Deploy response objects", "properties": { "id": { "type": "string", "description": "The ID of the deploy" }, "environment": { "type": "string", "description": "The environment name" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "An optional date that indicates when the deploy started" }, "dateFinished": { "type": "string", "format": "date-time", "description": "An optional date that indicates when the deploy ended" }, "name": { "type": "string", "nullable": true, "description": "The optional name of the deploy" }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "The optional URL that points to the deploy" } }, "required": [ "dateFinished", "dateStarted", "environment", "id", "name", "url" ] } } }, "description": "" }, "400": { "description": "Bad Request" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/releases/{version}/files/": { "get": { "operationId": "listOrganizationReleaseFiles", "description": "Retrieve a list of files for a given release.", "summary": "List an Organization's Release Files", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true }, { "in": "query", "name": "query", "schema": { "type": "array", "items": { "type": "string" } }, "description": "If set, only files with these partial names will be returned." }, { "in": "query", "name": "checksum", "schema": { "type": "array", "items": { "type": "string" } }, "description": "If set, only files with these exact checksums will be returned." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "binary" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name" }, "name": { "type": "string", "description": "Name of the file, usually its URL" }, "dist": { "type": "string", "nullable": true, "description": "Name of the distribution the file belongs to" }, "headers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "HTTP headers stored with the file, such as Content-Type and Sourcemap" }, "size": { "type": "integer", "nullable": true, "description": "Size of the file in bytes" }, "sha1": { "type": "string", "nullable": true, "description": "SHA-1 checksum of the file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the file was uploaded (ISO 8601)" } }, "required": [ "dateCreated", "dist", "headers", "id", "name", "sha1", "size" ] } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "uploadOrganizationReleaseFile", "description": "Upload a new file for the given release.\n\nFiles must be uploaded using the `multipart/form-data` content type, against the\nregion-specific domain (e.g. `us.sentry.io` or `de.sentry.io`).", "summary": "Upload a New Organization Release File", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true } ], "tags": [ "Releases" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "description": "Documents the multipart/form-data body of the release file upload endpoints.\n\nThe endpoints read the upload directly off ``request.data``; this serializer\nexists to describe the request body in the OpenAPI schema.", "properties": { "file": { "type": "string", "format": "uri", "description": "The multipart-encoded file contents to upload." }, "name": { "type": "string", "description": "The name (full path) the file will be referenced as, e.g. the full web URI of a JavaScript file. Defaults to the uploaded file's name." }, "dist": { "type": "string", "description": "The name of the distribution to associate the file with." }, "header": { "type": "array", "items": { "type": "string" }, "description": "Headers to attach to the file, each formatted as a `\"key:value\"` string (for example, to define a content type). May be supplied multiple times." } }, "required": [ "file" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "binary" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name" }, "name": { "type": "string", "description": "Name of the file, usually its URL" }, "dist": { "type": "string", "nullable": true, "description": "Name of the distribution the file belongs to" }, "headers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "HTTP headers stored with the file, such as Content-Type and Sourcemap" }, "size": { "type": "integer", "nullable": true, "description": "Size of the file in bytes" }, "sha1": { "type": "string", "nullable": true, "description": "SHA-1 checksum of the file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the file was uploaded (ISO 8601)" } }, "required": [ "dateCreated", "dist", "headers", "id", "name", "sha1", "size" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "description": "Conflict" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/releases/{version}/files/{file_id}/": { "get": { "operationId": "getOrganizationReleaseFile", "description": "Return metadata for an individual file within a release. Does not return the file\ncontents unless `download` is set.", "summary": "Retrieve an Organization Release's File", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true }, { "in": "path", "name": "file_id", "schema": { "type": "string" }, "description": "The ID of the release file.", "required": true }, { "in": "query", "name": "download", "schema": { "type": "string" }, "description": "If set, download the file contents instead of returning metadata." } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "binary" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name" }, "name": { "type": "string", "description": "Name of the file, usually its URL" }, "dist": { "type": "string", "nullable": true, "description": "Name of the distribution the file belongs to" }, "headers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "HTTP headers stored with the file, such as Content-Type and Sourcemap" }, "size": { "type": "integer", "nullable": true, "description": "Size of the file in bytes" }, "sha1": { "type": "string", "nullable": true, "description": "SHA-1 checksum of the file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the file was uploaded (ISO 8601)" } }, "required": [ "dateCreated", "dist", "headers", "id", "name", "sha1", "size" ] } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateOrganizationReleaseFile", "description": "Update metadata of an existing release file. Currently only the name of the file\ncan be changed.", "summary": "Update an Organization Release File", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true }, { "in": "path", "name": "file_id", "schema": { "type": "string" }, "description": "The ID of the release file.", "required": true } ], "tags": [ "Releases" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "description": "The new name (full path) of the file.", "maxLength": 200 } }, "required": [ "name" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "binary" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name" }, "name": { "type": "string", "description": "Name of the file, usually its URL" }, "dist": { "type": "string", "nullable": true, "description": "Name of the distribution the file belongs to" }, "headers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "HTTP headers stored with the file, such as Content-Type and Sourcemap" }, "size": { "type": "integer", "nullable": true, "description": "Size of the file in bytes" }, "sha1": { "type": "string", "nullable": true, "description": "SHA-1 checksum of the file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the file was uploaded (ISO 8601)" } }, "required": [ "dateCreated", "dist", "headers", "id", "name", "sha1", "size" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true }, "delete": { "operationId": "deleteOrganizationReleaseFile", "description": "Permanently remove a file from a release. Also removes the physical file from\nstorage.", "summary": "Delete an Organization Release's File", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true }, { "in": "path", "name": "file_id", "schema": { "type": "string" }, "description": "The ID of the release file.", "required": true } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "project:admin", "project:releases" ] } ], "responses": { "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/releases/{version}/previous-with-commits/": { "get": { "operationId": "getOrganizationPreviousReleaseWithCommits", "description": "Return the most recent release with commits that was released at or before the given\nrelease, in the same projects. The given release is returned when it has commits\nitself. Pass `project` to narrow the search to some of the release's projects.\n\nReturns an empty object when there's no such release, or when none of the requested\nprojects are accessible. `firstEvent` and `lastEvent` are always null.", "summary": "Retrieve an Organization's Previous Release with Commits", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release started (ISO 8601)" }, "owner": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "Release owner" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its first event (ISO 8601)" }, "lastEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its most recent event (ISO 8601)" }, "currentProjectMeta": { "type": "object", "properties": { "sessionsLowerBound": { "type": "string", "nullable": true, "description": "Start of the release's sessions in the project (ISO 8601)" }, "sessionsUpperBound": { "type": "string", "nullable": true, "description": "End of the release's sessions in the project (ISO 8601)" }, "nextReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the next release in the project" }, "prevReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the previous release in the project" }, "firstReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the first release in the project" }, "lastReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the latest release in the project" } }, "nullable": true, "description": "Session bounds and neighboring release versions in the current project, when a project is requested" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "adoptionStages": { "type": "object", "additionalProperties": { "type": "object", "properties": { "stage": { "enum": [ "adopted", "low_adoption", "replaced" ], "type": "string", "description": "Adoption stage of the release" }, "adopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was adopted (ISO 8601)" }, "unadopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release stopped being adopted (ISO 8601)" } }, "required": [ "adopted", "stage", "unadopted" ] }, "nullable": true, "description": "Adoption stage of the release in each project, keyed by project slug" }, "id": { "type": "integer", "description": "Release ID" }, "version": { "type": "string", "description": "Version of the release" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "shortVersion": { "type": "string", "description": "Shortened release version" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "authors": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] } ] }, "description": "Authors of the release's commits" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "healthData": { "type": "object", "properties": { "durationP50": { "type": "number", "format": "double", "nullable": true, "description": "Median session duration in seconds" }, "durationP90": { "type": "number", "format": "double", "nullable": true, "description": "90th percentile session duration in seconds" }, "crashFreeUsers": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of users who didn't experience a crash" }, "crashFreeSessions": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of sessions that didn't crash" }, "totalUsers": { "type": "integer", "nullable": true, "description": "Total number of users in the release" }, "totalUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the release over the last 24 hours" }, "totalProjectUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the project over the last 24 hours" }, "totalSessions": { "type": "integer", "nullable": true, "description": "Total number of sessions in the release" }, "totalSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the release over the last 24 hours" }, "totalProjectSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the project over the last 24 hours" }, "adoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's users over the last 24 hours that were on the release" }, "sessionsAdoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's sessions over the last 24 hours that were on the release" }, "sessionsCrashed": { "type": "integer", "description": "Number of crashed sessions" }, "sessionsErrored": { "type": "integer", "description": "Number of sessions with errors" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "description": "Session or user counts over time, keyed by stats period" } }, "required": [ "hasHealthData", "sessionsCrashed", "sessionsErrored", "stats" ], "nullable": true, "description": "Release health data for the project. Only included when health data is requested" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released in the project (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When work on the release started (ISO 8601)" }, "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Platforms of the project" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data in the project" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release in the project" } }, "required": [ "hasHealthData", "id", "name", "newGroups", "platform", "platforms", "slug" ] }, "description": "Projects in the release" } }, "required": [ "authors", "commitCount", "data", "deployCount", "id", "newGroups", "projects", "shortVersion", "status", "version", "versionInfo" ] }, { "type": "object", "description": "No release with commits was found.", "maxProperties": 0 } ] }, "examples": { "RetrieveThePreviousReleaseWithCommits": { "value": { "id": 2, "version": "frontend@0.9.0", "shortVersion": "frontend@0.9.0", "status": "open", "versionInfo": { "package": "frontend", "version": { "raw": "1.0.0", "major": 1, "minor": 0, "patch": 0, "pre": null, "buildCode": null, "components": 3 }, "description": "1.0.0", "buildHash": null }, "ref": null, "url": null, "dateReleased": null, "dateCreated": "2024-01-01T00:00:00Z", "data": {}, "newGroups": 0, "owner": null, "commitCount": 1, "lastCommit": { "id": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2", "message": "fix: handle empty release version", "dateCreated": "2024-01-01T00:00:00Z", "pullRequest": null, "suspectCommitType": "" }, "deployCount": 0, "lastDeploy": null, "authors": [], "projects": [ { "id": 1, "slug": "sentry", "name": "sentry", "newGroups": 0, "platform": "javascript", "platforms": [ "javascript" ], "hasHealthData": false } ], "firstEvent": null, "lastEvent": null, "currentProjectMeta": {}, "userAgent": null }, "summary": "Retrieve the previous release with commits" }, "NoPreviousReleaseWithCommits": { "value": {}, "summary": "No previous release with commits" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/replay-count/": { "get": { "operationId": "getOrganizationReplayCount", "description": "Return a count of replays for a list of issue or transaction IDs.\n\nThe `query` parameter is required. It is a search query that includes exactly one of `issue.id`, `transaction`, or `replay_id` (string or list of strings).", "summary": "Retrieve a Count of Replays for a Given Issue or Transaction", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "query", "schema": { "type": "string", "minLength": 1 }, "description": "Filters results by using [query syntax](/product/sentry-basics/search/).\n\nExample: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)`\n", "required": true }, { "in": "query", "name": "data_source", "schema": { "enum": [ "errors", "search_issues", "spans" ], "type": "string", "minLength": 1 }, "description": "The data source to query replays from.\n\n* `errors`\n* `search_issues`\n* `spans`", "required": true }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "project_id_or_slug", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The legacy project slug filter. Prefer `project`, which accepts project IDs or slugs. Use `$all` to include all available projects. For example, the following are valid parameters:\n- `/?projectSlug=$all`\n- `/?projectSlug=android&projectSlug=javascript-react`\n" }, { "in": "query", "name": "returnIds", "schema": { "type": "boolean", "default": false }, "description": "If true, return issue IDs rather than counts." } ], "tags": [ "Replays" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "integer" } }, "examples": { "QueryReplayCountByIssueOrTransactionId": { "value": { "1": 9, "2": 0, "5": 0, "9": 1, "10": 29 }, "summary": "Query replay count by issue or transaction id" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/replay-selectors/": { "get": { "operationId": "listOrganizationReplaySelectors", "description": "Return a list of selectors for a given organization.", "summary": "List an Organization's Selectors", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The environment to filter by." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string", "minLength": 1 }, "description": "This defines the range of the time series, relative to now. The range is given in a `` format. For example `1d` for a one day range. Possible units are `m` for minutes, `h` for hours, `d` for days and `w` for weeks.You must either provide a `statsPeriod`, or a `start` and `end`." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "This defines the start of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds.Use along with `end` instead of `statsPeriod`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "This defines the inclusive end of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds.Use along with `start` instead of `statsPeriod`." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "A list of project IDs or slugs to filter by." }, { "in": "query", "name": "projectSlug", "schema": { "type": "array", "items": { "type": "string" } }, "description": "A list of project slugs to filter your results by." }, { "in": "query", "name": "sort", "schema": { "type": "string", "minLength": 1 }, "description": "The field to sort the output by." }, { "in": "query", "name": "sortBy", "schema": { "type": "string", "minLength": 1 }, "description": "The field to sort the output by." }, { "in": "query", "name": "orderBy", "schema": { "type": "string", "minLength": 1 }, "description": "The field to sort the output by." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Filters results by using [query syntax](/product/sentry-basics/search/).\n\nExample: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)`\n" } ], "tags": [ "Replays" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "count_dead_clicks": { "type": "integer", "description": "Number of dead clicks on the element" }, "count_rage_clicks": { "type": "integer", "description": "Number of rage clicks on the element" }, "dom_element": { "type": "string", "description": "CSS selector of the element, built from its tag, ID and classes" }, "element": { "type": "object", "properties": { "alt": { "type": "string", "description": "`alt` attribute of the element" }, "aria_label": { "type": "string", "description": "`aria-label` attribute of the element" }, "class": { "type": "array", "items": { "type": "string" }, "description": "CSS classes of the element" }, "component_name": { "type": "string", "description": "`data-sentry-component` attribute of the element" }, "id": { "type": "string", "description": "`id` attribute of the element" }, "role": { "type": "string", "description": "`role` attribute of the element" }, "tag": { "type": "string", "description": "HTML tag of the element" }, "testid": { "type": "string", "description": "`data-testid` attribute of the element" }, "title": { "type": "string", "description": "`title` attribute of the element" } }, "required": [ "alt", "aria_label", "class", "component_name", "id", "role", "tag", "testid", "title" ], "description": "Attributes of the clicked element" }, "project_id": { "type": "string", "description": "ID of the project the clicks were recorded in" } } }, "description": "Selectors of clicked elements that match the query" } }, "required": [ "data" ] }, "examples": { "RetrieveACollectionOfSelectorsForAnOrganization.": { "value": { "data": [ { "count_dead_clicks": 2, "count_rage_clicks": 1, "dom_element": "div#myid.class1.class2", "element": { "alt": "", "aria_label": "", "class": [ "class1", "class2" ], "component_name": "", "id": "myid", "role": "", "tag": "div", "testid": "", "title": "" }, "project_id": "1" } ] }, "summary": "Retrieve a collection of selectors for an organization." } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/replays/": { "get": { "operationId": "listOrganizationReplays", "description": "Return a list of replays belonging to an organization.", "summary": "List an Organization's Replays", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string", "minLength": 1 }, "description": "\nThis defines the range of the time series, relative to now. The range is given in a\n`` format. For example `1d` for a one day range. Possible units are `m` for\nminutes, `h` for hours, `d` for days and `w` for weeks. You must either provide a\n`statsPeriod`, or a `start` and `end`.\n" }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "\nThis defines the start of the time series range as an explicit datetime, either in UTC\nISO8601 or epoch seconds. Use along with `end` instead of `statsPeriod`.\n" }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "\nThis defines the inclusive end of the time series range as an explicit datetime, either in\nUTC ISO8601 or epoch seconds. Use along with `start` instead of `statsPeriod`.\n" }, { "in": "query", "name": "field", "schema": { "type": "array", "items": { "enum": [ "activity", "browser", "clicks", "count_dead_clicks", "count_errors", "count_infos", "count_rage_clicks", "count_segments", "count_urls", "count_warnings", "device", "dist", "duration", "environment", "error_ids", "finished_at", "has_viewed", "id", "is_archived", "os", "ota_updates", "platform", "project_id", "releases", "replay_type", "sdk", "segment_names", "started_at", "tags", "trace_ids", "urls", "user" ], "type": "string", "description": "* `activity`\n* `browser`\n* `clicks`\n* `count_dead_clicks`\n* `count_errors`\n* `count_infos`\n* `count_rage_clicks`\n* `count_segments`\n* `count_urls`\n* `count_warnings`\n* `device`\n* `dist`\n* `duration`\n* `environment`\n* `error_ids`\n* `finished_at`\n* `has_viewed`\n* `id`\n* `is_archived`\n* `os`\n* `ota_updates`\n* `platform`\n* `project_id`\n* `releases`\n* `replay_type`\n* `sdk`\n* `segment_names`\n* `started_at`\n* `tags`\n* `trace_ids`\n* `urls`\n* `user`" } }, "description": "Specifies a field that should be marshaled in the output. Invalid fields will be rejected." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "A list of project IDs or slugs to filter by." }, { "in": "query", "name": "projectSlug", "schema": { "type": "array", "items": { "type": "string" } }, "description": "A list of project slugs to filter your results by." }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The environments to filter by." }, { "in": "query", "name": "sort", "schema": { "type": "string", "minLength": 1 }, "description": "The field to sort the output by." }, { "in": "query", "name": "sortBy", "schema": { "type": "string", "minLength": 1 }, "description": "The field to sort the output by." }, { "in": "query", "name": "orderBy", "schema": { "type": "string", "minLength": 1 }, "description": "The field to sort the output by." }, { "in": "query", "name": "query", "schema": { "type": "string", "minLength": 1 }, "description": "A structured query string to filter the output by." }, { "in": "query", "name": "queryReferrer", "schema": { "type": "string", "minLength": 1 }, "description": "Internal referrer identifier used for query tracing." }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "The cursor parameter is used to paginate results. See [here](https://docs.sentry.io/api/pagination/) for how to use this query parameter" } ], "tags": [ "Replays" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Replay ID" }, "project_id": { "type": "string", "description": "ID of the project the replay belongs to" }, "trace_ids": { "type": "array", "items": { "type": "string" }, "description": "IDs of traces linked to the replay" }, "error_ids": { "type": "array", "items": { "type": "string" }, "description": "IDs of errors linked to the replay" }, "environment": { "type": "string", "nullable": true, "description": "Environment of the replay" }, "tags": { "anyOf": [ { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, { "type": "array", "items": { "type": "string" } } ], "description": "Replay tags" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "ip": { "type": "string", "nullable": true, "description": "IP address of the user" }, "display_name": { "type": "string", "nullable": true, "description": "Name to display for the user: the username, email, ID or IP address, whichever is set first" }, "geo": { "type": "object", "properties": { "city": { "type": "string", "nullable": true, "description": "City of the user" }, "country_code": { "type": "string", "nullable": true, "description": "Country code of the user" }, "region": { "type": "string", "nullable": true, "description": "Region of the user" }, "subdivision": { "type": "string", "nullable": true, "description": "Subdivision of the user's country, such as a state or province" } }, "description": "Geographic location of the user" } }, "description": "User metadata" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the SDK that recorded the replay" }, "version": { "type": "string", "nullable": true, "description": "Version of the SDK that recorded the replay" } }, "description": "SDK metadata" }, "os": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the operating system" }, "version": { "type": "string", "nullable": true, "description": "Version of the operating system" } }, "description": "Operating system metadata" }, "browser": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the browser" }, "version": { "type": "string", "nullable": true, "description": "Version of the browser" } }, "description": "Browser metadata" }, "device": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the device" }, "brand": { "type": "string", "nullable": true, "description": "Brand of the device" }, "model": { "type": "string", "nullable": true, "description": "Model of the device" }, "family": { "type": "string", "nullable": true, "description": "Family of the device" } }, "description": "Device metadata" }, "ota_updates": { "type": "object", "properties": { "channel": { "type": "string", "nullable": true, "description": "Channel of the over-the-air update" }, "runtime_version": { "type": "string", "nullable": true, "description": "Runtime version of the over-the-air update" }, "update_id": { "type": "string", "nullable": true, "description": "ID of the over-the-air update" } }, "description": "Over-the-air update metadata" }, "is_archived": { "type": "boolean", "nullable": true, "description": "Whether the replay is archived" }, "urls": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "URLs visited during the replay" }, "segment_names": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Names of the replay's segments" }, "clicks": { "type": "array", "items": { "type": "object", "properties": { "click.alt": { "type": "string", "nullable": true, "description": "Alt text of the clicked element" }, "click.label": { "type": "string", "nullable": true, "description": "ARIA label of the clicked element" }, "click.classes": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "CSS classes of the clicked element" }, "click.component_name": { "type": "string", "nullable": true, "description": "Name of the frontend component that was clicked" }, "click.id": { "type": "string", "nullable": true, "description": "ID of the clicked element" }, "click.role": { "type": "string", "nullable": true, "description": "Role of the clicked element" }, "click.tag": { "type": "string", "nullable": true, "description": "HTML tag of the clicked element" }, "click.testid": { "type": "string", "nullable": true, "description": "Test ID of the clicked element" }, "click.text": { "type": "string", "nullable": true, "description": "Text of the clicked element" }, "click.title": { "type": "string", "nullable": true, "description": "Title of the clicked element" } }, "required": [ "click.alt", "click.classes", "click.component_name", "click.id", "click.label", "click.role", "click.tag", "click.testid", "click.text", "click.title" ] }, "description": "Clicks recorded during the replay, one object per click" }, "count_dead_clicks": { "type": "integer", "nullable": true, "description": "Number of dead clicks" }, "count_rage_clicks": { "type": "integer", "nullable": true, "description": "Number of rage clicks" }, "count_errors": { "type": "integer", "nullable": true, "description": "Number of errors linked to the replay" }, "duration": { "type": "integer", "nullable": true, "description": "Replay duration in seconds" }, "finished_at": { "type": "string", "nullable": true, "description": "When the replay finished (ISO 8601)" }, "started_at": { "type": "string", "nullable": true, "description": "When the replay started (ISO 8601)" }, "activity": { "type": "integer", "nullable": true, "description": "Replay activity score" }, "count_urls": { "type": "integer", "nullable": true, "description": "Number of URLs visited during the replay" }, "replay_type": { "type": "string", "description": "Recording mode of the replay, such as session or buffer" }, "count_segments": { "type": "integer", "nullable": true, "description": "Number of recording segments" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the replay" }, "releases": { "type": "array", "items": { "type": "string" }, "description": "Releases associated with the replay" }, "dist": { "type": "string", "nullable": true, "description": "Distribution of the replay" }, "count_warnings": { "type": "integer", "nullable": true, "description": "Number of warning events linked to the replay" }, "count_infos": { "type": "integer", "nullable": true, "description": "Number of info events linked to the replay" }, "has_viewed": { "type": "boolean", "description": "Whether the requesting user has viewed the replay" } } }, "description": "Replays that match the query" } }, "required": [ "data" ] }, "examples": { "GetListOfReplays": { "value": { "data": [ { "activity": 5, "browser": { "name": "Chome", "version": "103.0.38" }, "count_dead_clicks": 6, "count_rage_clicks": 1, "count_errors": 1, "count_segments": 0, "count_urls": 1, "device": { "brand": "Apple", "family": "iPhone", "model": "11", "name": "iPhone 11" }, "dist": null, "duration": 576, "environment": "production", "error_ids": [ "7e07485f-12f9-416b-8b14-26260799b51f" ], "finished_at": "2022-07-07T14:15:33.201019", "has_viewed": true, "id": "7e07485f-12f9-416b-8b14-26260799b51f", "is_archived": null, "os": { "name": "iOS", "version": "16.2" }, "platform": "Sentry", "project_id": "639195", "releases": [ "version@1.4" ], "sdk": { "name": "Thundercat", "version": "27.1" }, "started_at": "2022-07-07T14:05:57.909921", "tags": { "hello": [ "world", "Lionel Richie" ] }, "trace_ids": [ "7e07485f-12f9-416b-8b14-26260799b51f" ], "urls": [ "/organizations/abc123/issues" ], "user": { "display_name": "John Doe", "email": "john.doe@example.com", "id": "30246326", "ip": "213.164.1.114", "username": "John Doe" } } ] }, "summary": "Get list of replays" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/replays/{replay_id}/": { "get": { "operationId": "getOrganizationReplay", "description": "Return details on an individual replay.", "summary": "Retrieve a Replay Instance", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "replay_id", "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "description": "The ID of the replay you'd like to retrieve. It is a 32-character hexadecimal string.", "required": true }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string", "minLength": 1 }, "description": "\nThis defines the range of the time series, relative to now. The range is given in a\n`` format. For example `1d` for a one day range. Possible units are `m` for\nminutes, `h` for hours, `d` for days and `w` for weeks. You must either provide a\n`statsPeriod`, or a `start` and `end`.\n" }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "\nThis defines the start of the time series range as an explicit datetime, either in UTC\nISO8601 or epoch seconds. Use along with `end` instead of `statsPeriod`.\n" }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "\nThis defines the inclusive end of the time series range as an explicit datetime, either in\nUTC ISO8601 or epoch seconds. Use along with `start` instead of `statsPeriod`.\n" }, { "in": "query", "name": "field", "schema": { "type": "array", "items": { "enum": [ "activity", "browser", "clicks", "count_dead_clicks", "count_errors", "count_infos", "count_rage_clicks", "count_segments", "count_urls", "count_warnings", "device", "dist", "duration", "environment", "error_ids", "finished_at", "has_viewed", "id", "is_archived", "os", "ota_updates", "platform", "project_id", "releases", "replay_type", "sdk", "segment_names", "started_at", "tags", "trace_ids", "urls", "user" ], "type": "string", "description": "* `activity`\n* `browser`\n* `clicks`\n* `count_dead_clicks`\n* `count_errors`\n* `count_infos`\n* `count_rage_clicks`\n* `count_segments`\n* `count_urls`\n* `count_warnings`\n* `device`\n* `dist`\n* `duration`\n* `environment`\n* `error_ids`\n* `finished_at`\n* `has_viewed`\n* `id`\n* `is_archived`\n* `os`\n* `ota_updates`\n* `platform`\n* `project_id`\n* `releases`\n* `replay_type`\n* `sdk`\n* `segment_names`\n* `started_at`\n* `tags`\n* `trace_ids`\n* `urls`\n* `user`" } }, "description": "Specifies a field that should be marshaled in the output. Invalid fields will be rejected." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "A list of project IDs or slugs to filter by." }, { "in": "query", "name": "projectSlug", "schema": { "type": "array", "items": { "type": "string" } }, "description": "A list of project slugs to filter your results by." }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The environments to filter by." }, { "in": "query", "name": "sort", "schema": { "type": "string", "minLength": 1 }, "description": "The field to sort the output by." }, { "in": "query", "name": "sortBy", "schema": { "type": "string", "minLength": 1 }, "description": "The field to sort the output by." }, { "in": "query", "name": "orderBy", "schema": { "type": "string", "minLength": 1 }, "description": "The field to sort the output by." }, { "in": "query", "name": "query", "schema": { "type": "string", "minLength": 1 }, "description": "A structured query string to filter the output by." }, { "in": "query", "name": "queryReferrer", "schema": { "type": "string", "minLength": 1 }, "description": "Internal referrer identifier used for query tracing." }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "The cursor parameter is used to paginate results. See [here](https://docs.sentry.io/api/pagination/) for how to use this query parameter" } ], "tags": [ "Replays" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string", "description": "Replay ID" }, "project_id": { "type": "string", "description": "ID of the project the replay belongs to" }, "trace_ids": { "type": "array", "items": { "type": "string" }, "description": "IDs of traces linked to the replay" }, "error_ids": { "type": "array", "items": { "type": "string" }, "description": "IDs of errors linked to the replay" }, "environment": { "type": "string", "nullable": true, "description": "Environment of the replay" }, "tags": { "anyOf": [ { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, { "type": "array", "items": { "type": "string" } } ], "description": "Replay tags" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "ip": { "type": "string", "nullable": true, "description": "IP address of the user" }, "display_name": { "type": "string", "nullable": true, "description": "Name to display for the user: the username, email, ID or IP address, whichever is set first" }, "geo": { "type": "object", "properties": { "city": { "type": "string", "nullable": true, "description": "City of the user" }, "country_code": { "type": "string", "nullable": true, "description": "Country code of the user" }, "region": { "type": "string", "nullable": true, "description": "Region of the user" }, "subdivision": { "type": "string", "nullable": true, "description": "Subdivision of the user's country, such as a state or province" } }, "description": "Geographic location of the user" } }, "description": "User metadata" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the SDK that recorded the replay" }, "version": { "type": "string", "nullable": true, "description": "Version of the SDK that recorded the replay" } }, "description": "SDK metadata" }, "os": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the operating system" }, "version": { "type": "string", "nullable": true, "description": "Version of the operating system" } }, "description": "Operating system metadata" }, "browser": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the browser" }, "version": { "type": "string", "nullable": true, "description": "Version of the browser" } }, "description": "Browser metadata" }, "device": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the device" }, "brand": { "type": "string", "nullable": true, "description": "Brand of the device" }, "model": { "type": "string", "nullable": true, "description": "Model of the device" }, "family": { "type": "string", "nullable": true, "description": "Family of the device" } }, "description": "Device metadata" }, "ota_updates": { "type": "object", "properties": { "channel": { "type": "string", "nullable": true, "description": "Channel of the over-the-air update" }, "runtime_version": { "type": "string", "nullable": true, "description": "Runtime version of the over-the-air update" }, "update_id": { "type": "string", "nullable": true, "description": "ID of the over-the-air update" } }, "description": "Over-the-air update metadata" }, "is_archived": { "type": "boolean", "nullable": true, "description": "Whether the replay is archived" }, "urls": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "URLs visited during the replay" }, "segment_names": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Names of the replay's segments" }, "clicks": { "type": "array", "items": { "type": "object", "properties": { "click.alt": { "type": "string", "nullable": true, "description": "Alt text of the clicked element" }, "click.label": { "type": "string", "nullable": true, "description": "ARIA label of the clicked element" }, "click.classes": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "CSS classes of the clicked element" }, "click.component_name": { "type": "string", "nullable": true, "description": "Name of the frontend component that was clicked" }, "click.id": { "type": "string", "nullable": true, "description": "ID of the clicked element" }, "click.role": { "type": "string", "nullable": true, "description": "Role of the clicked element" }, "click.tag": { "type": "string", "nullable": true, "description": "HTML tag of the clicked element" }, "click.testid": { "type": "string", "nullable": true, "description": "Test ID of the clicked element" }, "click.text": { "type": "string", "nullable": true, "description": "Text of the clicked element" }, "click.title": { "type": "string", "nullable": true, "description": "Title of the clicked element" } }, "required": [ "click.alt", "click.classes", "click.component_name", "click.id", "click.label", "click.role", "click.tag", "click.testid", "click.text", "click.title" ] }, "description": "Clicks recorded during the replay, one object per click" }, "count_dead_clicks": { "type": "integer", "nullable": true, "description": "Number of dead clicks" }, "count_rage_clicks": { "type": "integer", "nullable": true, "description": "Number of rage clicks" }, "count_errors": { "type": "integer", "nullable": true, "description": "Number of errors linked to the replay" }, "duration": { "type": "integer", "nullable": true, "description": "Replay duration in seconds" }, "finished_at": { "type": "string", "nullable": true, "description": "When the replay finished (ISO 8601)" }, "started_at": { "type": "string", "nullable": true, "description": "When the replay started (ISO 8601)" }, "activity": { "type": "integer", "nullable": true, "description": "Replay activity score" }, "count_urls": { "type": "integer", "nullable": true, "description": "Number of URLs visited during the replay" }, "replay_type": { "type": "string", "description": "Recording mode of the replay, such as session or buffer" }, "count_segments": { "type": "integer", "nullable": true, "description": "Number of recording segments" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the replay" }, "releases": { "type": "array", "items": { "type": "string" }, "description": "Releases associated with the replay" }, "dist": { "type": "string", "nullable": true, "description": "Distribution of the replay" }, "count_warnings": { "type": "integer", "nullable": true, "description": "Number of warning events linked to the replay" }, "count_infos": { "type": "integer", "nullable": true, "description": "Number of info events linked to the replay" }, "has_viewed": { "type": "boolean", "description": "Whether the requesting user has viewed the replay" } }, "description": "The replay" } }, "required": [ "data" ] }, "examples": { "GetSingleReplayDetails": { "value": { "data": { "activity": 5, "browser": { "name": "Chome", "version": "103.0.38" }, "count_dead_clicks": 6, "count_rage_clicks": 1, "count_errors": 1, "count_segments": 0, "count_urls": 1, "device": { "brand": "Apple", "family": "iPhone", "model": "11", "name": "iPhone 11" }, "dist": null, "duration": 576, "environment": "production", "error_ids": [ "7e07485f-12f9-416b-8b14-26260799b51f" ], "finished_at": "2022-07-07T14:15:33.201019", "has_viewed": true, "id": "7e07485f-12f9-416b-8b14-26260799b51f", "is_archived": null, "os": { "name": "iOS", "version": "16.2" }, "platform": "Sentry", "project_id": "639195", "releases": [ "version@1.4" ], "sdk": { "name": "Thundercat", "version": "27.1" }, "started_at": "2022-07-07T14:05:57.909921", "tags": { "hello": [ "world", "Lionel Richie" ] }, "trace_ids": [ "7e07485f-12f9-416b-8b14-26260799b51f" ], "urls": [ "/organizations/abc123/issues" ], "user": { "display_name": "John Doe", "email": "john.doe@example.com", "id": "30246326", "ip": "213.164.1.114", "username": "John Doe" } } }, "summary": "Get single replay details" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/repos/": { "get": { "operationId": "listOrganizationRepos", "description": "Return a list of version control repositories for a given organization.", "summary": "List an Organization's Repositories", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Filter repositories by name." }, { "in": "query", "name": "status", "schema": { "type": "string", "enum": [ "active", "deleted" ] }, "description": "Filter repositories by status. Defaults to `active`." }, { "in": "query", "name": "integration_id", "schema": { "type": "string" }, "description": "Filter repositories by integration ID." }, { "in": "query", "name": "expand", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Optional repository fields to expand, such as `settings`." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "The maximum number of repositories to return per page (1–100)." } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "org:admin", "org:ci", "org:integrations", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ] } }, "examples": { "OrganizationRepositories": { "value": [ { "dateCreated": "2018-11-06T21:19:58.536Z", "id": "3", "name": "sentry/sentry" } ], "summary": "Organization Repositories" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/repos/{repo_id}/commits/": { "get": { "operationId": "listOrganizationRepoCommits", "description": "List a Repository's Commits", "summary": "List a Repository's Commits", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "repo_id", "schema": { "type": "string" }, "description": "The repository ID.", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ] } }, "examples": { "RepositoryCommits": { "value": [ { "dateCreated": "2018-11-06T21:19:58.536Z", "id": "acbafc639127fd89d10f474520104517ff1d709e", "message": "Initial commit from Create Next App", "suspectCommitType": "", "pullRequest": null } ], "summary": "Repository Commits" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/repos/settings/": { "put": { "operationId": "updateOrganizationRepositorySettings", "description": "Update code review settings for one or more repositories in the organization. Provide at least one of `enabledCodeReview` or `codeReviewTriggers`.", "summary": "Update Settings for Organization Repositories", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Integrations" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "repositoryIds": { "type": "array", "items": { "type": "integer" }, "description": "List of repository IDs to update settings for. Maximum 1000 repositories.", "maxItems": 1000 }, "enabledCodeReview": { "type": "boolean", "description": "Whether code review is enabled for these repositories" }, "codeReviewTriggers": { "type": "array", "items": { "enum": [ "on_new_commit", "on_ready_for_review" ], "type": "string", "description": "A code review trigger to enable.\n\n* `on_new_commit`\n* `on_ready_for_review`" }, "description": "List of triggers for code review" } }, "required": [ "repositoryIds" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:admin", "org:integrations", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ] } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/scim/v2/Groups": { "get": { "operationId": "listOrganizationScimV2Groups", "description": "Returns a paginated list of teams bound to a organization with a SCIM Groups GET Request.\n\nNote that the members field will only contain up to 10,000 members.", "summary": "List an Organization's Paginated Teams", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "startIndex", "schema": { "type": "integer", "minimum": 1, "default": 1 }, "description": "SCIM 1-offset based index for pagination." }, { "in": "query", "name": "count", "schema": { "type": "integer", "minimum": 0, "default": 100 }, "description": "The maximum number of results the query should return, maximum of 100." }, { "in": "query", "name": "filter", "schema": { "type": "string", "minLength": 1 }, "description": "A SCIM filter expression. The only operator currently supported is `eq`." }, { "in": "query", "name": "excludedAttributes", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Fields that should be left off of return values. Right now the only supported field for this query is members." } ], "tags": [ "SCIM" ], "security": [ { "auth_token": [ "team:admin", "team:read", "team:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs of the response, always the ListResponse message schema" }, "totalResults": { "type": "integer", "description": "Total number of resources that match the query" }, "startIndex": { "type": "integer", "description": "1-based index of the first resource in this page" }, "itemsPerPage": { "type": "integer", "description": "Number of resources in this page" }, "Resources": { "type": "array", "items": { "type": "object", "properties": { "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs of the resource" }, "id": { "type": "string", "description": "Team ID" }, "displayName": { "type": "string", "description": "Display name of the team" }, "meta": { "type": "object", "properties": { "resourceType": { "type": "string", "description": "SCIM resource type, such as User or Group" } }, "required": [ "resourceType" ], "description": "SCIM resource metadata" }, "members": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "description": "Organization member ID" }, "display": { "type": "string", "description": "Email address of the member" } }, "required": [ "display", "value" ] }, "description": "Members of the team. Included only when members are requested" } }, "required": [ "displayName", "id", "meta", "schemas" ] }, "description": "Teams in this page, as SCIM groups" } }, "required": [ "Resources", "itemsPerPage", "schemas", "startIndex", "totalResults" ] }, "examples": { "ListAnOrgs'sPaginatedTeams": { "value": { "schemas": [ "urn:ietf:params:scim:api:messages:2.0:ListResponse" ], "totalResults": 1, "startIndex": 1, "itemsPerPage": 1, "Resources": [ { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:Group" ], "id": "23232", "displayName": "test-scimv2", "members": [], "meta": { "resourceType": "Group" } } ] }, "summary": "List an orgs's paginated teams" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "provisionOrganizationScimV2Group", "description": "Create a new team bound to an organization via a SCIM Groups POST\nRequest. The slug will have a normalization of uppercases/spaces to\nlowercases and dashes.\n\nNote that teams are always created with an empty member set.", "summary": "Provision a New Team", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "SCIM" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "displayName": { "type": "string", "description": "The slug of the team that is shown in the UI." } }, "required": [ "displayName" ] } } }, "required": true }, "security": [ { "auth_token": [ "team:admin", "team:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs of the resource" }, "id": { "type": "string", "description": "Team ID" }, "displayName": { "type": "string", "description": "Display name of the team" }, "meta": { "type": "object", "properties": { "resourceType": { "type": "string", "description": "SCIM resource type, such as User or Group" } }, "required": [ "resourceType" ], "description": "SCIM resource metadata" }, "members": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "description": "Organization member ID" }, "display": { "type": "string", "description": "Email address of the member" } }, "required": [ "display", "value" ] }, "description": "Members of the team. Included only when members are requested" } }, "required": [ "displayName", "id", "meta", "schemas" ] }, "examples": { "ProvisionTeam": { "value": { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:Group" ], "displayName": "Test SCIMv2", "members": [], "meta": { "resourceType": "Group" }, "id": "123" }, "summary": "provisionTeam" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/scim/v2/Groups/{team_id_or_slug}": { "get": { "operationId": "getOrganizationScimV2Group", "description": "Query an individual team with a SCIM Group GET Request.\n- Note that the members field will only contain up to 10000 members.", "summary": "Query an Individual Team", "parameters": [ { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true }, { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "SCIM" ], "security": [ { "auth_token": [ "team:admin", "team:read", "team:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs of the resource" }, "id": { "type": "string", "description": "Team ID" }, "displayName": { "type": "string", "description": "Display name of the team" }, "meta": { "type": "object", "properties": { "resourceType": { "type": "string", "description": "SCIM resource type, such as User or Group" } }, "required": [ "resourceType" ], "description": "SCIM resource metadata" }, "members": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "description": "Organization member ID" }, "display": { "type": "string", "description": "Email address of the member" } }, "required": [ "display", "value" ] }, "description": "Members of the team. Included only when members are requested" } }, "required": [ "displayName", "id", "meta", "schemas" ] }, "examples": { "QueryIndividualTeam": { "value": { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:Group" ], "id": "23232", "displayName": "test-scimv2", "members": [], "meta": { "resourceType": "Group" } }, "summary": "Query individual team" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "patch": { "operationId": "updateOrganizationScimV2Group", "description": "Update a team's attributes with a SCIM Group PATCH Request.", "summary": "Update a Team's Attributes", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true } ], "tags": [ "SCIM" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs identifying the request format. Must be the PatchOp schema." }, "Operations": { "type": "array", "items": { "type": "object", "properties": { "op": { "type": "string" }, "value": { "type": "object", "additionalProperties": {} }, "path": { "type": "string" } }, "required": [ "op" ] }, "description": "The list of operations to perform. Valid operations are:\n* Renaming a team:\n```json\n{\n \"Operations\": [{\n \"op\": \"replace\",\n \"value\": {\n \"id\": 23,\n \"displayName\": \"newName\"\n }\n }]\n}\n```\n* Adding a member to a team:\n```json\n{\n \"Operations\": [{\n \"op\": \"add\",\n \"path\": \"members\",\n \"value\": [\n {\n \"value\": 23,\n \"display\": \"testexample@example.com\"\n }\n ]\n }]\n}\n```\n* Removing a member from a team:\n```json\n{\n \"Operations\": [{\n \"op\": \"remove\",\n \"path\": \"members[value eq \"23\"]\"\n }]\n}\n```\n* Replacing an entire member set of a team:\n```json\n{\n \"Operations\": [{\n \"op\": \"replace\",\n \"path\": \"members\",\n \"value\": [\n {\n \"value\": 23,\n \"display\": \"testexample2@sentry.io\"\n },\n {\n \"value\": 24,\n \"display\": \"testexample3@sentry.io\"\n }\n ]\n }]\n}\n```\n" } }, "required": [ "Operations", "schemas" ] } } }, "required": true }, "security": [ { "auth_token": [ "team:admin", "team:write" ] } ], "responses": { "204": { "description": "Success" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteOrganizationScimV2Group", "description": "Delete a team with a SCIM Group DELETE Request.", "summary": "Delete an Individual Team", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true } ], "tags": [ "SCIM" ], "security": [ { "auth_token": [ "team:admin" ] } ], "responses": { "204": { "description": "Success" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/scim/v2/ResourceTypes": { "get": { "operationId": "listOrganizationScimV2ResourceTypes", "description": "List the resource types available via SCIM: User (organization\nmembers) and Group (teams). Pagination parameters are ignored per\nRFC 7644 section 4; both resource types are always returned.", "summary": "List the SCIM Resource Types", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "SCIM" ], "security": [ { "auth_token": [ "member:admin", "member:read", "member:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs of the response, always the ListResponse message schema" }, "totalResults": { "type": "integer", "description": "Total number of resources that match the query" }, "startIndex": { "type": "integer", "description": "1-based index of the first resource in this page" }, "itemsPerPage": { "type": "integer", "description": "Number of resources in this page" }, "Resources": { "type": "array", "items": { "type": "object", "properties": { "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs of the resource type, always the ResourceType schema" }, "id": { "type": "string", "description": "ID of the resource type: User or Group" }, "name": { "type": "string", "description": "Name of the resource type: User or Group" }, "description": { "type": "string", "description": "What the resource type maps to in Sentry" }, "endpoint": { "type": "string", "description": "Path of the resource type's endpoint, relative to the SCIM base URL" }, "schema": { "type": "string", "description": "URI of the resource type's core schema" }, "meta": { "type": "object", "properties": { "resourceType": { "type": "string", "description": "SCIM resource type of the resource, such as Schema or ResourceType" }, "location": { "type": "string", "description": "Absolute URL of the resource" } }, "required": [ "location", "resourceType" ], "description": "Resource type and location of the resource type" } }, "required": [ "description", "endpoint", "id", "meta", "name", "schema", "schemas" ] }, "description": "SCIM resource types Sentry supports" } }, "required": [ "Resources", "itemsPerPage", "schemas", "startIndex", "totalResults" ] }, "examples": { "ListTheResourceTypes": { "value": { "schemas": [ "urn:ietf:params:scim:api:messages:2.0:ListResponse" ], "totalResults": 2, "startIndex": 1, "itemsPerPage": 2, "Resources": [ { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:ResourceType" ], "id": "User", "name": "User", "description": "SCIM User maps to Sentry Organization Member", "endpoint": "/Users", "schema": "urn:ietf:params:scim:schemas:core:2.0:User", "meta": { "resourceType": "ResourceType", "location": "https://sentry.io/api/0/organizations/example-org/scim/v2/ResourceTypes/User" } }, { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:ResourceType" ], "id": "Group", "name": "Group", "description": "SCIM Group maps to Sentry Team", "endpoint": "/Groups", "schema": "urn:ietf:params:scim:schemas:core:2.0:Group", "meta": { "resourceType": "ResourceType", "location": "https://sentry.io/api/0/organizations/example-org/scim/v2/ResourceTypes/Group" } } ] }, "summary": "List the resource types" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/scim/v2/ResourceTypes/{resource_type_name}": { "get": { "operationId": "getOrganizationScimV2ResourceType", "description": "Return a single SCIM resource type by name (`User` or `Group`).", "summary": "Query an Individual SCIM Resource Type", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "resource_type_name", "schema": { "type": "string" }, "description": "The SCIM resource type name: `User` or `Group`.", "required": true } ], "tags": [ "SCIM" ], "security": [ { "auth_token": [ "member:admin", "member:read", "member:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs of the resource type, always the ResourceType schema" }, "id": { "type": "string", "description": "ID of the resource type: User or Group" }, "name": { "type": "string", "description": "Name of the resource type: User or Group" }, "description": { "type": "string", "description": "What the resource type maps to in Sentry" }, "endpoint": { "type": "string", "description": "Path of the resource type's endpoint, relative to the SCIM base URL" }, "schema": { "type": "string", "description": "URI of the resource type's core schema" }, "meta": { "type": "object", "properties": { "resourceType": { "type": "string", "description": "SCIM resource type of the resource, such as Schema or ResourceType" }, "location": { "type": "string", "description": "Absolute URL of the resource" } }, "required": [ "location", "resourceType" ], "description": "Resource type and location of the resource type" } }, "required": [ "description", "endpoint", "id", "meta", "name", "schema", "schemas" ] }, "examples": { "QueryAnIndividualResourceType": { "value": { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:ResourceType" ], "id": "User", "name": "User", "description": "SCIM User maps to Sentry Organization Member", "endpoint": "/Users", "schema": "urn:ietf:params:scim:schemas:core:2.0:User", "meta": { "resourceType": "ResourceType", "location": "https://sentry.io/api/0/organizations/example-org/scim/v2/ResourceTypes/User" } }, "summary": "Query an individual resource type" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/scim/v2/Schemas/{schema_uri}": { "get": { "operationId": "getOrganizationScimV2Schema", "description": "Return a single SCIM schema definition by its URI. Sentry supports the\ncore User and Group schemas.", "summary": "Query an Individual SCIM Schema", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "schema_uri", "schema": { "type": "string" }, "description": "The SCIM schema URI, e.g. `urn:ietf:params:scim:schemas:core:2.0:User`.", "required": true } ], "tags": [ "SCIM" ], "security": [ { "auth_token": [ "member:admin", "member:read", "member:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs of the response, always the Schema schema" }, "id": { "type": "string", "description": "URI of the schema" }, "name": { "type": "string", "description": "Name of the schema: User or Group" }, "description": { "type": "string", "description": "What the schema's resources map to in Sentry" }, "attributes": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the attribute" }, "type": { "enum": [ "string", "boolean", "decimal", "integer", "dateTime", "reference", "complex", "binary" ], "type": "string", "description": "Data type of the attribute" }, "multiValued": { "type": "boolean", "description": "Whether the attribute holds a list of values" }, "description": { "type": "string", "description": "What the attribute holds" }, "required": { "type": "boolean", "description": "Whether the attribute is required" }, "caseExact": { "type": "boolean", "description": "Whether string values are compared case-sensitively" }, "canonicalValues": { "type": "array", "items": { "type": "string" }, "description": "Values the attribute is expected to take" }, "mutability": { "enum": [ "readOnly", "readWrite", "immutable", "writeOnly" ], "type": "string", "description": "Whether and when the attribute can be changed" }, "returned": { "enum": [ "always", "never", "default", "request" ], "type": "string", "description": "When the attribute is returned in a response" }, "uniqueness": { "enum": [ "none", "server", "global" ], "type": "string", "description": "Scope in which values are unique" }, "subAttributes": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the attribute" }, "type": { "enum": [ "string", "boolean", "decimal", "integer", "dateTime", "reference", "complex", "binary" ], "type": "string", "description": "Data type of the attribute" }, "multiValued": { "type": "boolean", "description": "Whether the attribute holds a list of values" }, "description": { "type": "string", "description": "What the attribute holds" }, "required": { "type": "boolean", "description": "Whether the attribute is required" }, "caseExact": { "type": "boolean", "description": "Whether string values are compared case-sensitively" }, "canonicalValues": { "type": "array", "items": { "type": "string" }, "description": "Values the attribute is expected to take" }, "mutability": { "enum": [ "readOnly", "readWrite", "immutable", "writeOnly" ], "type": "string", "description": "Whether and when the attribute can be changed" }, "returned": { "enum": [ "always", "never", "default", "request" ], "type": "string", "description": "When the attribute is returned in a response" }, "uniqueness": { "enum": [ "none", "server", "global" ], "type": "string", "description": "Scope in which values are unique" } }, "required": [ "description", "multiValued", "mutability", "name", "required", "returned", "type" ] }, "description": "Attributes of a complex attribute" } }, "required": [ "description", "multiValued", "mutability", "name", "required", "returned", "type" ] }, "description": "Attributes of the schema, as SCIM attribute definitions" }, "meta": { "type": "object", "properties": { "resourceType": { "type": "string", "description": "SCIM resource type of the resource, such as Schema or ResourceType" }, "location": { "type": "string", "description": "Absolute URL of the resource" } }, "required": [ "location", "resourceType" ], "description": "Resource type and location of the schema" } }, "required": [ "attributes", "description", "id", "meta", "name", "schemas" ] }, "examples": { "QueryAnIndividualSchema": { "value": { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:Schema" ], "id": "urn:ietf:params:scim:schemas:core:2.0:User", "name": "User", "description": "SCIM User maps to Sentry Organization Member", "attributes": [ { "name": "userName", "type": "string", "multiValued": false, "description": "Unique identifier for the User, which for Sentry is an email address.", "required": true, "caseExact": false, "mutability": "immutable", "returned": "default", "uniqueness": "server" } ], "meta": { "resourceType": "Schema", "location": "https://sentry.io/api/0/organizations/example-org/scim/v2/Schemas/urn:ietf:params:scim:schemas:core:2.0:User" } }, "summary": "Query an individual schema" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/scim/v2/ServiceProviderConfig": { "get": { "operationId": "getOrganizationScimV2ServiceProviderConfig", "description": "Return the SCIM Service Provider Configuration, which describes the\nSCIM 2.0 protocol features Sentry supports (RFC 7643 section 5).", "summary": "Retrieve the SCIM Service Provider Configuration", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "SCIM" ], "security": [ { "auth_token": [ "member:admin", "member:read", "member:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs of the response, always the ServiceProviderConfig schema" }, "documentationUri": { "type": "string", "description": "URL of Sentry's SCIM documentation" }, "patch": { "type": "object", "properties": { "supported": { "type": "boolean", "description": "Whether Sentry supports the feature" } }, "required": [ "supported" ], "description": "Whether PATCH operations are supported" }, "bulk": { "type": "object", "properties": { "supported": { "type": "boolean", "description": "Whether Sentry supports bulk operations. Always false" }, "maxOperations": { "type": "integer", "description": "Maximum number of operations in a bulk request. Always 0" }, "maxPayloadSize": { "type": "integer", "description": "Maximum payload size of a bulk request in bytes. Always 0" } }, "required": [ "maxOperations", "maxPayloadSize", "supported" ], "description": "Bulk operation support" }, "filter": { "type": "object", "properties": { "supported": { "type": "boolean", "description": "Whether Sentry supports filtering. Only the eq operator is supported" }, "maxResults": { "type": "integer", "description": "Maximum number of resources returned in a page" } }, "required": [ "maxResults", "supported" ], "description": "Filter support" }, "changePassword": { "type": "object", "properties": { "supported": { "type": "boolean", "description": "Whether Sentry supports the feature" } }, "required": [ "supported" ], "description": "Whether password changes are supported" }, "sort": { "type": "object", "properties": { "supported": { "type": "boolean", "description": "Whether Sentry supports the feature" } }, "required": [ "supported" ], "description": "Whether sorting is supported" }, "etag": { "type": "object", "properties": { "supported": { "type": "boolean", "description": "Whether Sentry supports the feature" } }, "required": [ "supported" ], "description": "Whether ETags are supported" }, "authenticationSchemes": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Type of the authentication scheme, always oauthbearertoken" }, "name": { "type": "string", "description": "Name of the authentication scheme" }, "description": { "type": "string", "description": "How to authenticate with the scheme" }, "specUri": { "type": "string", "description": "URL of the scheme's specification" }, "primary": { "type": "boolean", "description": "Whether this is the preferred authentication scheme" } }, "required": [ "description", "name", "primary", "specUri", "type" ] }, "description": "Authentication schemes the SCIM API accepts" }, "meta": { "type": "object", "properties": { "resourceType": { "type": "string", "description": "SCIM resource type of the resource, such as Schema or ResourceType" }, "location": { "type": "string", "description": "Absolute URL of the resource" } }, "required": [ "location", "resourceType" ], "description": "Resource type and location of the configuration" } }, "required": [ "authenticationSchemes", "bulk", "changePassword", "documentationUri", "etag", "filter", "meta", "patch", "schemas", "sort" ] }, "examples": { "RetrieveTheServiceProviderConfiguration": { "value": { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig" ], "documentationUri": "https://docs.sentry.io/organization/authentication/sso/", "patch": { "supported": true }, "bulk": { "supported": false, "maxOperations": 0, "maxPayloadSize": 0 }, "filter": { "supported": true, "maxResults": 100 }, "changePassword": { "supported": false }, "sort": { "supported": false }, "etag": { "supported": false }, "authenticationSchemes": [ { "type": "oauthbearertoken", "name": "OAuth Bearer Token", "description": "Authentication scheme using the OAuth Bearer Token standard. Use the SCIM token generated for your organization.", "specUri": "https://www.rfc-editor.org/info/rfc6750", "primary": true } ], "meta": { "resourceType": "ServiceProviderConfig", "location": "https://sentry.io/api/0/organizations/example-org/scim/v2/ServiceProviderConfig" } }, "summary": "Retrieve the service provider configuration" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/scim/v2/Users": { "get": { "operationId": "listOrganizationScimV2Users", "description": "Returns a paginated list of members bound to a organization with a SCIM Users GET Request.", "summary": "List an Organization's SCIM Members", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "startIndex", "schema": { "type": "integer", "minimum": 1, "default": 1 }, "description": "SCIM 1-offset based index for pagination." }, { "in": "query", "name": "count", "schema": { "type": "integer", "minimum": 0, "default": 100 }, "description": "The maximum number of results the query should return, maximum of 100." }, { "in": "query", "name": "filter", "schema": { "type": "string", "minLength": 1 }, "description": "A SCIM filter expression. The only operator currently supported is `eq`." }, { "in": "query", "name": "excludedAttributes", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Fields that should be left off of return values. Right now the only supported field for this query is members." } ], "tags": [ "SCIM" ], "security": [ { "auth_token": [ "member:admin", "member:read", "member:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs of the response, always the ListResponse message schema" }, "totalResults": { "type": "integer", "description": "Total number of resources that match the query" }, "startIndex": { "type": "integer", "description": "1-based index of the first resource in this page" }, "itemsPerPage": { "type": "integer", "description": "Number of resources in this page" }, "Resources": { "type": "array", "items": { "type": "object", "description": "Conforming to the SCIM RFC, this represents a Sentry Org Member\nas a SCIM user object.", "properties": { "active": { "type": "boolean", "description": "Always true when included. Sentry doesn't use this field, but SCIM expects it" }, "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs of the resource" }, "id": { "type": "string", "description": "Organization member ID" }, "userName": { "type": "string", "description": "Email address of the member" }, "name": { "type": "object", "properties": { "givenName": { "type": "string", "description": "Given name. Always N/A, because Sentry doesn't store it" }, "familyName": { "type": "string", "description": "Family name. Always N/A, because Sentry doesn't store it" } }, "required": [ "familyName", "givenName" ], "description": "Name of the member" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "primary": { "type": "boolean", "description": "Whether this is the primary email address. Always true" }, "value": { "type": "string", "description": "Email address" }, "type": { "type": "string", "description": "Email type. Always work" } }, "required": [ "primary", "type", "value" ] }, "description": "Email addresses of the member" }, "meta": { "type": "object", "properties": { "resourceType": { "type": "string", "description": "SCIM resource type, such as User or Group" } }, "required": [ "resourceType" ], "description": "SCIM resource metadata" }, "sentryOrgRole": { "type": "string", "description": "ID of the member's organization role" } }, "required": [ "emails", "id", "meta", "name", "schemas", "sentryOrgRole", "userName" ] }, "description": "Organization members in this page, as SCIM users" } }, "required": [ "Resources", "itemsPerPage", "schemas", "startIndex", "totalResults" ] }, "examples": { "ListAnOrganization'sMembers": { "value": { "schemas": [ "urn:ietf:params:scim:api:messages:2.0:ListResponse" ], "totalResults": 1, "startIndex": 1, "itemsPerPage": 1, "Resources": [ { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User" ], "id": "102", "userName": "test.user@okta.local", "emails": [ { "primary": true, "value": "test.user@okta.local", "type": "work" } ], "name": { "familyName": "N/A", "givenName": "N/A" }, "active": true, "meta": { "resourceType": "User" }, "sentryOrgRole": "member" } ] }, "summary": "List an Organization's Members" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "provisionOrganizationScimV2User", "description": "Create a new Organization Member via a SCIM Users POST Request.\n\nNote that this API does not support setting secondary emails.", "summary": "Provision a New Organization Member", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "SCIM" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "userName": { "type": "string", "format": "email", "description": "The SAML field used for email." }, "sentryOrgRole": { "enum": [ "billing", "member", "manager", "admin" ], "type": "string", "description": "The organization role of the member. If unspecified, this will be\n set to the organization's default role. The options are:\n\n* `billing` - Can manage payment and compliance details.\n* `member` - Can view and act on events, as well as view most other data within the organization.\n* `manager` - Has full management access to all teams and projects. Can also manage\n the organization's membership.\n* `admin` - Can edit global integrations, manage projects, and add/remove teams.\n They automatically assume the Team Admin role for teams they join.\n Note: This role can no longer be assigned in Business and Enterprise plans. Use `TeamRoles` instead.\n " } }, "required": [ "userName" ] } } }, "required": true }, "security": [ { "auth_token": [ "member:admin", "member:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "description": "Conforming to the SCIM RFC, this represents a Sentry Org Member\nas a SCIM user object.", "properties": { "active": { "type": "boolean", "description": "Always true when included. Sentry doesn't use this field, but SCIM expects it" }, "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs of the resource" }, "id": { "type": "string", "description": "Organization member ID" }, "userName": { "type": "string", "description": "Email address of the member" }, "name": { "type": "object", "properties": { "givenName": { "type": "string", "description": "Given name. Always N/A, because Sentry doesn't store it" }, "familyName": { "type": "string", "description": "Family name. Always N/A, because Sentry doesn't store it" } }, "required": [ "familyName", "givenName" ], "description": "Name of the member" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "primary": { "type": "boolean", "description": "Whether this is the primary email address. Always true" }, "value": { "type": "string", "description": "Email address" }, "type": { "type": "string", "description": "Email type. Always work" } }, "required": [ "primary", "type", "value" ] }, "description": "Email addresses of the member" }, "meta": { "type": "object", "properties": { "resourceType": { "type": "string", "description": "SCIM resource type, such as User or Group" } }, "required": [ "resourceType" ], "description": "SCIM resource metadata" }, "sentryOrgRole": { "type": "string", "description": "ID of the member's organization role" } }, "required": [ "emails", "id", "meta", "name", "schemas", "sentryOrgRole", "userName" ] }, "examples": { "ProvisionNewMember": { "value": { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User" ], "id": "242", "userName": "test.user@okta.local", "emails": [ { "primary": true, "value": "test.user@okta.local", "type": "work" } ], "active": true, "name": { "familyName": "N/A", "givenName": "N/A" }, "meta": { "resourceType": "User" }, "sentryOrgRole": "member" }, "summary": "Provision new member" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/scim/v2/Users/{member_id}": { "get": { "operationId": "getOrganizationScimV2User", "description": "Query an individual organization member with a SCIM User GET Request.\n- The `name` object will contain fields `firstName` and `lastName` with the values of `N/A`.\nSentry's SCIM API does not currently support these fields but returns them for compatibility purposes.", "summary": "Query an Individual Organization Member", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "member_id", "schema": { "type": "string" }, "description": "The ID of the member to query.", "required": true } ], "tags": [ "SCIM" ], "security": [ { "auth_token": [ "member:admin", "member:read", "member:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "description": "Conforming to the SCIM RFC, this represents a Sentry Org Member\nas a SCIM user object.", "properties": { "active": { "type": "boolean", "description": "Always true when included. Sentry doesn't use this field, but SCIM expects it" }, "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs of the resource" }, "id": { "type": "string", "description": "Organization member ID" }, "userName": { "type": "string", "description": "Email address of the member" }, "name": { "type": "object", "properties": { "givenName": { "type": "string", "description": "Given name. Always N/A, because Sentry doesn't store it" }, "familyName": { "type": "string", "description": "Family name. Always N/A, because Sentry doesn't store it" } }, "required": [ "familyName", "givenName" ], "description": "Name of the member" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "primary": { "type": "boolean", "description": "Whether this is the primary email address. Always true" }, "value": { "type": "string", "description": "Email address" }, "type": { "type": "string", "description": "Email type. Always work" } }, "required": [ "primary", "type", "value" ] }, "description": "Email addresses of the member" }, "meta": { "type": "object", "properties": { "resourceType": { "type": "string", "description": "SCIM resource type, such as User or Group" } }, "required": [ "resourceType" ], "description": "SCIM resource metadata" }, "sentryOrgRole": { "type": "string", "description": "ID of the member's organization role" } }, "required": [ "emails", "id", "meta", "name", "schemas", "sentryOrgRole", "userName" ] }, "examples": { "QueryOrgMember": { "value": { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User" ], "id": "102", "userName": "test.user@okta.local", "emails": [ { "primary": true, "value": "test.user@okta.local", "type": "work" } ], "name": { "familyName": "N/A", "givenName": "N/A" }, "active": true, "meta": { "resourceType": "User" }, "sentryOrgRole": "member" }, "summary": "Query org member" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "patch": { "operationId": "updateOrganizationScimV2User", "description": "Update an organization member's attributes with a SCIM PATCH Request.", "summary": "Update an Organization Member's Attributes", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "member_id", "schema": { "type": "string" }, "description": "The ID of the member to update.", "required": true } ], "tags": [ "SCIM" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "Operations": { "type": "array", "items": { "type": "object", "properties": { "op": { "type": "string" }, "value": {}, "path": { "type": "string" } }, "required": [ "op", "value" ] }, "description": "A list of operations to perform. Currently, the only valid operation is setting\na member's `active` attribute to false, after which the member will be permanently deleted.\n```json\n{\n \"Operations\": [{\n \"op\": \"replace\",\n \"path\": \"active\",\n \"value\": False\n }]\n}\n```\n", "maxItems": 100 }, "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs identifying the request format. Must be the PatchOp schema." } }, "required": [ "Operations" ] } } }, "required": true }, "security": [ { "auth_token": [ "member:admin", "member:write" ] } ], "responses": { "204": { "description": "Success" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteOrganizationScimV2User", "description": "Delete an organization member with a SCIM User DELETE Request.", "summary": "Delete an Organization Member via SCIM", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "member_id", "schema": { "type": "string" }, "description": "The ID of the member to delete.", "required": true } ], "tags": [ "SCIM" ], "security": [ { "auth_token": [ "member:admin" ] } ], "responses": { "204": { "description": "Success" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/sentry-app-components/": { "get": { "operationId": "listOrganizationSentryAppComponents", "description": "**Experimental:** This API is under active development and may change.\n\nRetrieve prepared UI components for installed custom integrations, including issue-link forms.\n\nAPI clients can use `filter=issue-link` to create or link an external issue through\nan app such as Linear. The `uri` values in `schema` are paths on the app's own server.\nClients never call them directly; Sentry calls the app on their behalf:\n\n- To load a select field's choices, pass the field's `uri` to\n `GET /sentry-app-installations/{installationUuid}/external-requests/`.\n- To create or link the issue, send the form values with the `uri` from\n `schema.create` or `schema.link` to\n `POST /sentry-app-installations/{installationUuid}/external-issue-actions/`.", "summary": "List an Organization's Installed Sentry App Components", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "filter", "schema": { "type": "string" }, "description": "Filter components by type, such as `issue-link`." } ], "tags": [ "Integration" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "uuid": { "type": "string", "format": "uuid", "description": "UUID of the component" }, "type": { "type": "string", "description": "Type of the component, such as issue-link, stacktrace-link or alert-rule-action" }, "schema": { "anyOf": [ { "type": "object", "required": [ "type", "link", "create" ], "properties": { "type": { "type": "string", "enum": [ "issue-link" ], "description": "Type of the element" }, "link": { "type": "object", "required": [ "uri", "required_fields" ], "properties": { "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "required_fields": { "type": "array", "minItems": 1, "items": { "anyOf": [ { "type": "object", "required": [ "type", "name", "label" ], "properties": { "type": { "type": "string", "enum": [ "select" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "async": { "type": "boolean", "description": "Whether the field loads its options from uri as the user types" }, "skip_load_on_open": { "type": "boolean", "description": "Whether to skip loading the options from uri when the form opens" }, "multiple": { "type": "boolean", "description": "Whether more than one option can be selected" }, "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "options": { "type": "array", "minItems": 1, "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, each a two-item array" }, "depends_on": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Names of the fields that this field's options depend on" }, "choices": { "type": "array", "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, loaded from options or from uri. Each is a two-item array" }, "defaultValue": { "type": "string", "description": "Value selected by default, from the options loaded from uri" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "text" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "textarea" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } } ] }, "description": "Fields that the user must fill in" }, "optional_fields": { "type": "array", "minItems": 1, "items": { "anyOf": [ { "type": "object", "required": [ "type", "name", "label" ], "properties": { "type": { "type": "string", "enum": [ "select" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "async": { "type": "boolean", "description": "Whether the field loads its options from uri as the user types" }, "skip_load_on_open": { "type": "boolean", "description": "Whether to skip loading the options from uri when the form opens" }, "multiple": { "type": "boolean", "description": "Whether more than one option can be selected" }, "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "options": { "type": "array", "minItems": 1, "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, each a two-item array" }, "depends_on": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Names of the fields that this field's options depend on" }, "choices": { "type": "array", "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, loaded from options or from uri. Each is a two-item array" }, "defaultValue": { "type": "string", "description": "Value selected by default, from the options loaded from uri" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "text" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "textarea" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } } ] }, "description": "Fields that the user can fill in" } }, "description": "Form for linking an existing issue" }, "create": { "type": "object", "required": [ "uri", "required_fields" ], "properties": { "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "required_fields": { "type": "array", "minItems": 1, "items": { "anyOf": [ { "type": "object", "required": [ "type", "name", "label" ], "properties": { "type": { "type": "string", "enum": [ "select" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "async": { "type": "boolean", "description": "Whether the field loads its options from uri as the user types" }, "skip_load_on_open": { "type": "boolean", "description": "Whether to skip loading the options from uri when the form opens" }, "multiple": { "type": "boolean", "description": "Whether more than one option can be selected" }, "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "options": { "type": "array", "minItems": 1, "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, each a two-item array" }, "depends_on": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Names of the fields that this field's options depend on" }, "choices": { "type": "array", "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, loaded from options or from uri. Each is a two-item array" }, "defaultValue": { "type": "string", "description": "Value selected by default, from the options loaded from uri" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "text" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "textarea" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } } ] }, "description": "Fields that the user must fill in" }, "optional_fields": { "type": "array", "minItems": 1, "items": { "anyOf": [ { "type": "object", "required": [ "type", "name", "label" ], "properties": { "type": { "type": "string", "enum": [ "select" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "async": { "type": "boolean", "description": "Whether the field loads its options from uri as the user types" }, "skip_load_on_open": { "type": "boolean", "description": "Whether to skip loading the options from uri when the form opens" }, "multiple": { "type": "boolean", "description": "Whether more than one option can be selected" }, "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "options": { "type": "array", "minItems": 1, "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, each a two-item array" }, "depends_on": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Names of the fields that this field's options depend on" }, "choices": { "type": "array", "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, loaded from options or from uri. Each is a two-item array" }, "defaultValue": { "type": "string", "description": "Value selected by default, from the options loaded from uri" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "text" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "textarea" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } } ] }, "description": "Fields that the user can fill in" } }, "description": "Form for creating an issue" } } }, { "type": "object", "required": [ "type", "title", "settings" ], "properties": { "type": { "type": "string", "enum": [ "alert-rule-action" ], "description": "Type of the element" }, "title": { "type": "string", "description": "Title of the element" }, "settings": { "type": "object", "required": [ "type", "uri", "required_fields" ], "properties": { "type": { "type": "string", "enum": [ "alert-rule-settings" ], "description": "Type of the element" }, "description": { "type": "string", "maxLength": 140, "minLength": 1, "description": "Text shown above the settings form" }, "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "required_fields": { "type": "array", "minItems": 1, "items": { "anyOf": [ { "type": "object", "required": [ "type", "name", "label" ], "properties": { "type": { "type": "string", "enum": [ "select" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "async": { "type": "boolean", "description": "Whether the field loads its options from uri as the user types" }, "skip_load_on_open": { "type": "boolean", "description": "Whether to skip loading the options from uri when the form opens" }, "multiple": { "type": "boolean", "description": "Whether more than one option can be selected" }, "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "options": { "type": "array", "minItems": 1, "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, each a two-item array" }, "depends_on": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Names of the fields that this field's options depend on" }, "choices": { "type": "array", "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, loaded from options or from uri. Each is a two-item array" }, "defaultValue": { "type": "string", "description": "Value selected by default, from the options loaded from uri" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "text" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "textarea" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } } ] }, "description": "Fields that the user must fill in" }, "optional_fields": { "type": "array", "minItems": 1, "items": { "anyOf": [ { "type": "object", "required": [ "type", "name", "label" ], "properties": { "type": { "type": "string", "enum": [ "select" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "async": { "type": "boolean", "description": "Whether the field loads its options from uri as the user types" }, "skip_load_on_open": { "type": "boolean", "description": "Whether to skip loading the options from uri when the form opens" }, "multiple": { "type": "boolean", "description": "Whether more than one option can be selected" }, "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "options": { "type": "array", "minItems": 1, "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, each a two-item array" }, "depends_on": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Names of the fields that this field's options depend on" }, "choices": { "type": "array", "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, loaded from options or from uri. Each is a two-item array" }, "defaultValue": { "type": "string", "description": "Value selected by default, from the options loaded from uri" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "text" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "textarea" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } } ] }, "description": "Fields that the user can fill in" } }, "description": "Settings form of the alert rule action" } } }, { "type": "object", "required": [ "type", "title", "elements" ], "properties": { "type": { "type": "string", "enum": [ "issue-media" ], "description": "Type of the element" }, "title": { "type": "string", "description": "Title of the element" }, "elements": { "type": "array", "minItems": 1, "items": { "anyOf": [ { "type": "object", "required": [ "type", "text" ], "properties": { "type": { "type": "string", "enum": [ "header" ], "description": "Type of the element" }, "text": { "type": "string", "description": "Text of the header" } } }, { "type": "object", "required": [ "type", "text" ], "properties": { "type": { "type": "string", "enum": [ "markdown" ], "description": "Type of the element" }, "text": { "type": "string", "description": "Markdown text" } } }, { "type": "object", "required": [ "type", "url" ], "properties": { "type": { "type": "string", "enum": [ "image" ], "description": "Type of the element" }, "url": { "type": "string", "format": "uri-reference", "pattern": "^(?:https?|\\/)", "description": "URL of the image" }, "alt": { "type": "string", "description": "Alternative text of the image" } } }, { "type": "object", "required": [ "type", "url" ], "properties": { "type": { "type": "string", "enum": [ "video" ], "description": "Type of the element" }, "url": { "type": "string", "format": "uri-reference", "pattern": "^(?:https?|\\/)", "description": "URL of the video" } } } ] }, "description": "Media elements to show" } } }, { "type": "object", "required": [ "type", "uri" ], "properties": { "type": { "type": "string", "enum": [ "stacktrace-link" ], "description": "Type of the element" }, "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "url": { "type": "string", "format": "uri", "description": "URL of the link, built from uri with the installation and project" } } } ], "description": "UI schema of the component" }, "error": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "detail": { "type": "string", "description": "Error message" }, "context": { "type": "object", "additionalProperties": {}, "description": "Additional public details about the error, if any" } } } ], "description": "Error from loading the component. Empty when there's none" }, "sentryApp": { "type": "object", "properties": { "uuid": { "type": "string", "format": "uuid", "description": "UUID of the custom integration" }, "slug": { "type": "string", "description": "Slug of the custom integration" }, "name": { "type": "string", "description": "Name of the custom integration" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the custom integration" } }, "required": [ "avatars", "name", "slug", "uuid" ], "description": "Custom integration that provides the component" }, "installationUuid": { "type": "string", "format": "uuid", "description": "UUID of the integration installation the component belongs to" } }, "required": [ "error", "schema", "sentryApp", "type", "uuid" ] } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "control", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/sentry-apps/": { "get": { "operationId": "listOrganizationSentryApps", "description": "Retrieve the custom integrations for an organization", "summary": "Retrieve the custom integrations created by an organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Integration" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "allowedOrigins": { "type": "array", "items": { "type": "string" }, "description": "Allowed origins for CORS" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the custom integration" }, "events": { "type": "array", "items": { "type": "string" }, "description": "Resources the integration's webhooks are subscribed to, such as issue" }, "webhookEvents": { "type": "array", "items": { "type": "string" }, "description": "Webhook events the integration is subscribed to, such as issue.resolved" }, "featureData": { "type": "array", "items": { "type": "string" }, "description": "Features the integration supports. Empty for internal integrations" }, "isAlertable": { "type": "boolean", "description": "Whether the integration can be used in alert rules" }, "metadata": { "type": "string", "description": "Metadata of the integration" }, "name": { "type": "string", "description": "Name of the custom integration" }, "schema": { "type": "string", "description": "UI components schema used to render the integration's UI elements" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Permission scopes for API access" }, "slug": { "type": "string", "description": "Slug of the custom integration" }, "status": { "enum": [ "unpublished", "published", "internal", "publish_request_inprogress", "deletion_in_progress" ], "type": "string", "description": "Status of the integration" }, "uuid": { "type": "string", "format": "uuid", "description": "UUID of the custom integration" }, "verifyInstall": { "type": "boolean", "description": "Whether installations of the integration must be verified" }, "webhookHeaders": { "type": "array", "items": { "type": "string" }, "description": "Custom headers sent with every webhook request, as Header-Name: value pairs. Values are masked" }, "isDisabled": { "type": "boolean", "description": "Whether the integration is disabled" }, "author": { "type": "string", "nullable": true, "description": "Author of the integration" }, "overview": { "type": "string", "nullable": true, "description": "Description of the integration" }, "popularity": { "type": "integer", "nullable": true, "description": "Popularity score of the integration" }, "redirectUrl": { "type": "string", "nullable": true, "description": "URL to redirect to after installation" }, "webhookUrl": { "type": "string", "nullable": true, "description": "Webhook destination URL" }, "clientSecret": { "type": "string", "nullable": true, "description": "OAuth client secret. Only shown to authorized users within 5 minutes of creation, and masked otherwise" }, "datePublished": { "type": "string", "format": "date-time", "description": "When the integration was published (ISO 8601). Only set for published integrations" }, "clientId": { "type": "string", "description": "OAuth client ID. Only included for members of the owner organization" }, "owner": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the organization that owns the integration" }, "slug": { "type": "string", "description": "Slug of the organization that owns the integration" } }, "required": [ "id", "slug" ], "description": "Organization that owns the integration. Only included for members of the owner organization" } }, "required": [ "allowedOrigins", "avatars", "events", "featureData", "isAlertable", "metadata", "name", "schema", "scopes", "slug", "status", "uuid", "verifyInstall", "webhookEvents", "webhookHeaders" ] } }, "examples": { "RetrieveTheCustomIntegrationsCreatedByTheGivenOrganization": { "value": [ { "allowedOrigins": [], "author": "ACME Corp", "avatars": [ { "avatarType": "avatar", "avatarUuid": "6c25b771-a576-4c18-a1c3-ab059c1d42ba", "avatarUrl": "https://example.com/avatar.png", "color": false, "photoType": "icon" } ], "events": [ "issue" ], "webhookEvents": [ "issue.assigned", "issue.created", "issue.ignored", "issue.resolved", "issue.unresolved" ], "isAlertable": false, "isDisabled": false, "metadata": "", "name": "ACME Corp Integration", "overview": null, "popularity": 27, "redirectUrl": null, "featureData": [], "schema": "", "scopes": [ "event:read", "org:read" ], "slug": "acme-corp-integration", "status": "unpublished", "uuid": "77cebea3-019e-484d-8673-6c3969698827", "verifyInstall": true, "webhookUrl": "https://example.com/webhook", "webhookHeaders": [ "X-Custom-Header: value" ], "clientId": "ed06141686bb60102d878c607eff449fa9907fa7a8cb70f0d337a8fb0b6566c3", "clientSecret": "**********", "owner": { "id": 42, "slug": "acme-corp" } }, { "allowedOrigins": [], "author": "ACME Corp", "avatars": [], "events": [ "issue" ], "webhookEvents": [ "issue.resolved" ], "isAlertable": false, "isDisabled": false, "metadata": "", "name": "ACME Corp Integration v2", "overview": null, "popularity": 0, "redirectUrl": "example.com", "featureData": [], "schema": "", "scopes": [ "event:admin", "org:admin" ], "slug": "acme-corp-integration-v2", "status": "unpublished", "uuid": "8f3a1c2d-6b4e-4f7a-9c0d-2e5b7a9c1d3f", "verifyInstall": true, "webhookUrl": "https://example.com/webhook", "webhookHeaders": [ "X-Custom-Header: value" ], "clientId": "2730a92919437a7b052e6827cd2c9f119be37101asdasdad123131231231231", "clientSecret": "**********", "owner": { "id": 42, "slug": "acme-corp" } } ], "summary": "Retrieve the custom integrations created by the given organization" } } } }, "description": "" } }, "x-sentry-routing": { "silo": "control", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/sessions/": { "get": { "operationId": "getOrganizationSessions", "description": "Returns a time series of release health session statistics for projects bound to an organization.\n\nThe interval and date range are subject to certain restrictions and rounding rules.\n\nThe date range is rounded to align with the interval, and is rounded to at least one\nhour. The interval can at most be one day and at least one hour currently. It has to cleanly\ndivide one day, for rounding reasons.\n\nBecause of technical limitations, this endpoint returns\nat most 10000 data points. For example, if you select a 90 day window grouped by releases,\nyou will see at most `floor(10k / (90 + 1)) = 109` releases. To get more results, reduce the\n`statsPeriod`.", "summary": "Retrieve Release Health Session Statistics", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "field", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The list of fields to query.\n\nThe available fields are\n- `sum(session)`\n- `count_unique(user)`\n- `avg`, `p50`, `p75`, `p90`, `p95`, `p99`, `max` applied to `session.duration`. For example, `p99(session.duration)`. Session duration is [no longer being recorded](https://github.com/getsentry/sentry/discussions/42716) as of on Jan 12, 2023. Returned data may be incomplete.\n- `crash_rate`, `crash_free_rate` applied to `user` or `session`. For example, `crash_free_rate(user)`\n", "required": true }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "The number of groups to return per request." }, { "in": "query", "name": "interval", "schema": { "type": "string" }, "description": "Resolution of the time series, given in the same format as `statsPeriod`.\n\nThe default and\n the minimum interval is `1h`." }, { "in": "query", "name": "groupBy", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The list of properties to group by.\n\nThe available groupBy conditions are `project`,\n `release`, `environment` and `session.status`." }, { "in": "query", "name": "orderBy", "schema": { "type": "string" }, "description": "An optional field to order by, which must be one of the fields provided in `field`. Use `-`\n for descending order, for example, `-sum(session)`" }, { "in": "query", "name": "includeTotals", "schema": { "type": "integer" }, "description": "Specify `0` to exclude totals from the response. The default is `1`" }, { "in": "query", "name": "includeSeries", "schema": { "type": "integer" }, "description": "Specify `0` to exclude series from the response. The default is `1`" }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Filters results by using [query syntax](/product/sentry-basics/search/).\n\nExample: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)`\n" } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "start": { "type": "string", "format": "date-time", "description": "Start of the queried time range (ISO 8601)" }, "end": { "type": "string", "format": "date-time", "description": "End of the queried time range (ISO 8601)" }, "intervals": { "type": "array", "items": { "type": "string" }, "description": "Start of each interval in the series (ISO 8601)" }, "groups": { "type": "array", "items": { "type": "object", "properties": { "by": { "type": "object", "properties": { "project": { "type": "integer", "description": "ID of the project" }, "release": { "type": "string", "description": "Version of the release" }, "environment": { "type": "string", "description": "Name of the environment" }, "session.status": { "type": "string", "description": "Status of the sessions: healthy, abnormal, crashed or errored" } }, "description": "Values of the group-by columns of the group" }, "series": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "number", "format": "double", "nullable": true } }, "description": "Value of each requested field for each interval, by field" }, "totals": { "type": "object", "additionalProperties": { "type": "number", "format": "double", "nullable": true }, "description": "Value of each requested field over the whole time range, by field" } }, "required": [ "by", "series", "totals" ] }, "description": "Result for each group" }, "query": { "type": "string", "description": "Search query that filtered the sessions" } }, "required": [ "end", "groups", "intervals", "query", "start" ] }, "examples": { "QuerySessions": { "value": { "groups": [ { "by": { "session.status": "errored" }, "totals": { "sum(session)": 1000 }, "series": { "sum(session)": [ 368, 392, 240 ] } }, { "by": { "session.status": "healthy" }, "totals": { "sum(session)": 17905998 }, "series": { "sum(session)": [ 6230841, 6923689, 4751465 ] } } ], "start": "2024-01-29T07:30:00Z", "end": "2024-01-29T09:00:00Z", "intervals": [ "2024-01-29T07:30:00Z", "2024-01-29T08:00:00Z", "2024-01-29T08:30:00Z" ], "query": "" }, "summary": "Query Sessions" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/shortids/{issue_id}/": { "get": { "operationId": "resolveOrganizationShortId", "description": "Resolve a short ID to the project slug and group details.", "summary": "Resolve a Short ID", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The short ID of the issue to resolve.", "required": true }, { "in": "query", "name": "collapse", "schema": { "type": "array", "items": { "type": "string", "enum": [ "base", "filtered", "lifetime", "stats", "unhandled" ] } }, "description": "Fields to remove from the response to improve query performance." } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "event:admin", "event:read", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "organizationSlug": { "type": "string", "description": "Slug of the organization" }, "projectSlug": { "type": "string", "description": "Slug of the issue's project" }, "groupId": { "type": "string", "description": "ID of the issue" }, "group": { "type": "object", "properties": { "isUnhandled": { "type": "boolean", "description": "Whether the issue includes unhandled events" }, "count": { "type": "string", "description": "Total number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "derivedData": { "type": "object", "properties": { "blocker": { "type": "string", "description": "Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr" }, "progress": { "type": "string", "description": "How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied" }, "status": { "type": "string", "description": "Status of the issue from its action log: open or closed" }, "viewCount": { "type": "integer", "description": "Number of times the issue was viewed" }, "hasOpenFixPr": { "type": "boolean", "description": "Whether an open pull request is linked to the issue" }, "isAssigned": { "type": "boolean", "description": "Whether the issue has an assignee" }, "hasRootCause": { "type": "boolean", "description": "Whether a root cause was found for the issue" }, "lastCompletedAutofixStep": { "type": "string", "description": "Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration" }, "lastProgressedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue's progress last advanced (ISO 8601)" }, "impact": { "type": "object", "properties": { "score": { "type": "number", "format": "double", "nullable": true, "description": "Estimated per-occurrence impact on the end user's capability from 0 to 100" }, "level": { "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "type": "string", "nullable": true, "description": "Impact level derived from the assessment score" }, "description": { "type": "string", "description": "Human-readable description of the capability affected by the issue" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string", "description": "Stable identifier for the evidence supporting this claim" }, "claim": { "type": "string", "description": "Concise explanation of what the cited evidence establishes" }, "source": { "type": "string", "description": "The category of evidence cited, such as an event, trace, replay, or log" } }, "required": [ "claim", "reference", "source" ] }, "description": "Evidence-backed claims supporting the impact assessment" }, "sourceEventId": { "type": "string", "description": "ID of the issue event used to generate the impact assessment" } }, "required": [ "citations", "description", "level", "score", "sourceEventId" ], "nullable": true, "description": "The issue's impact assessment, or null when no assessment is available" } }, "required": [ "blocker", "hasOpenFixPr", "hasRootCause", "isAssigned", "lastCompletedAutofixStep", "lastProgressedAt", "progress", "status", "viewCount" ], "description": "Additional data derived for the issue. Only included when requested with expand" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "shareId": { "type": "string", "nullable": true, "description": "ID used in the issue's public share URL. Null when the issue isn't shared" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "permalink": { "type": "string", "format": "uri", "description": "URL of the issue in Sentry" }, "logger": { "type": "string", "nullable": true, "description": "Logger of the issue's events" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "statusDetails": { "type": "object", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored" }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored (ISO 8601)" }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored" }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount" }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount" }, "actor": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who ignored or resolved the issue" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in" }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in" }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed" }, "info": { "type": "object", "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)" }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started" }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum" } }, "required": [ "dateCreated", "syncCount", "totalEvents" ], "nullable": true, "description": "Reprocessing progress details" } }, "description": "Details of the issue's status, such as when an ignore expires or which release resolves it" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "priority": { "enum": [ "low", "medium", "high", null ], "type": "string", "nullable": true, "description": "Priority of the issue: high, medium or low" }, "priorityLockedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the priority was last set manually, which stops automatic priority updates (ISO 8601)" }, "seerFixabilityScore": { "type": "number", "format": "double", "nullable": true, "description": "Seer's score for how likely the issue is to be fixable" }, "seerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When Seer Autofix was last triggered for the issue (ISO 8601)" }, "seerExplorerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601)" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "User or team the issue is assigned to" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "nullable": true, "description": "Why the requesting user is subscribed to the issue" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred" }, "annotations": { "type": "array", "items": { "type": "object", "properties": { "displayName": { "type": "string", "description": "Display name of the linked external issue" }, "url": { "type": "string", "description": "URL of the linked external issue" } }, "required": [ "displayName", "url" ] }, "description": "External issues linked to the issue" } }, "required": [ "annotations", "assignedTo", "culprit", "hasSeen", "id", "isBookmarked", "isPublic", "isSubscribed", "issueCategory", "issueType", "level", "logger", "metadata", "numComments", "permalink", "platform", "priority", "priorityLockedAt", "project", "seerAutofixLastTriggered", "seerExplorerAutofixLastTriggered", "seerFixabilityScore", "shareId", "shortId", "status", "statusDetails", "subscriptionDetails", "substatus", "title", "type" ], "description": "The issue" }, "shortId": { "type": "string", "description": "Short ID of the issue, such as PROJECT-1A" } }, "required": [ "group", "groupId", "organizationSlug", "projectSlug", "shortId" ] }, "examples": { "ShortIDLookup": { "value": { "group": { "annotations": [], "assignedTo": { "id": "1", "name": "John Doe", "email": "john@example.com", "type": "user" }, "count": "1", "culprit": "raven.scripts.runner in main", "firstSeen": "2018-11-06T21:19:55Z", "hasSeen": false, "id": "1", "isBookmarked": false, "isPublic": false, "isSubscribed": true, "lastSeen": "2018-11-06T21:19:55Z", "level": "error", "logger": null, "metadata": { "title": "This is an example Python exception" }, "numComments": 0, "permalink": "https://sentry.io/the-interstellar-jurisdiction/pump-station/issues/1/", "project": { "id": "2", "name": "Pump Station", "slug": "pump-station", "platform": "python" }, "shareId": "abc123", "shortId": "PUMP-STATION-1", "status": "unresolved", "statusDetails": {}, "subscriptionDetails": null, "title": "This is an example Python exception", "type": "default", "userCount": 0, "issueCategory": "error", "issueType": "error", "platform": "python", "priority": "medium", "priorityLockedAt": null, "seerFixabilityScore": 0.5, "seerAutofixLastTriggered": null, "seerExplorerAutofixLastTriggered": null, "substatus": "ongoing" }, "groupId": "1", "organizationSlug": "the-interstellar-jurisdiction", "projectSlug": "pump-station", "shortId": "PUMP-STATION-1" }, "summary": "Short ID Lookup" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/starred-service-spans/": { "post": { "operationId": "starOrganizationServiceSpan", "description": "**Experimental:** This API is under active development and may change.\n\nStar a service span for the requesting user. Span queries expose this as the\n`is_starred_transaction` field. Returns `403` if the user has already starred\nthe service span.", "summary": "Star a Service Span", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Explore" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "service_span": { "type": "string", "description": "The name of the service span to star or unstar." }, "project_id": { "type": "integer", "minimum": 1, "description": "The ID of the project the service span belongs to." } }, "required": [ "project_id", "service_span" ] } } }, "required": true }, "security": [ { "auth_token": [ "member:read", "member:write" ] } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true }, "delete": { "operationId": "unstarOrganizationServiceSpan", "description": "**Experimental:** This API is under active development and may change.\n\nUnstar a service span for the requesting user. Succeeds even if the\nservice span was not starred.", "summary": "Unstar a Service Span", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "service_span", "schema": { "type": "string" }, "description": "The name of the service span to unstar.", "required": true }, { "in": "query", "name": "project_id", "schema": { "type": "integer" }, "description": "The ID of the project the service span belongs to.", "required": true } ], "tags": [ "Explore" ], "security": [ { "auth_token": [ "member:read", "member:write" ] } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/stats-summary/": { "get": { "operationId": "getOrganizationStatsSummary", "description": "Query summarized event counts by project for your Organization. Also see https://docs.sentry.io/api/organizations/retrieve-event-counts-for-an-organization-v2/ for reference.", "summary": "Retrieve an Organization's Events Count by Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "field", "schema": { "enum": [ "sum(quantity)", "sum(times_seen)" ], "type": "string", "minLength": 1 }, "description": "the `sum(quantity)` field is bytes for attachments, and all others the 'event' count for those types of events.\n\n`sum(times_seen)` sums the number of times an event has been seen. For 'normal' event types, this will be equal to `sum(quantity)` for now. For sessions, quantity will sum the total number of events seen in a session, while `times_seen` will be the unique number of sessions. and for attachments, `times_seen` will be the total number of attachments, while quantity will be the total sum of attachment bytes.\n\n* `sum(quantity)`\n* `sum(times_seen)`", "required": true }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string", "minLength": 1 }, "description": "This defines the range of the time series, relative to now. The range is given in a `` format. For example `1d` for a one day range. Possible units are `m` for minutes, `h` for hours, `d` for days and `w` for weeks. You must either provide a `statsPeriod`, or a `start` and `end`." }, { "in": "query", "name": "interval", "schema": { "type": "string", "minLength": 1 }, "description": "This is the resolution of the time series, given in the same format as `statsPeriod`. The default resolution is `1h` and the minimum resolution is currently restricted to `1h` as well. Intervals larger than `1d` are not supported, and the interval has to cleanly divide one day." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "This defines the start of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds. Use along with `end` instead of `statsPeriod`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "This defines the inclusive end of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds. Use along with `start` instead of `statsPeriod`." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": {} }, "description": "The ID of the projects to filter by." }, { "in": "query", "name": "category", "schema": { "enum": [ "error", "transaction", "attachment", "replays", "profiles" ], "type": "string", "minLength": 1 }, "description": "If filtering by attachments, you cannot filter by any other category due to quantity values becoming nonsensical (combining bytes and event counts).\n\nIf filtering by `error`, it will automatically add `default` and `security` as we currently roll those two categories into `error` for displaying.\n\n* `error`\n* `transaction`\n* `attachment`\n* `replays`\n* `profiles`" }, { "in": "query", "name": "outcome", "schema": { "enum": [ "accepted", "filtered", "rate_limited", "invalid", "abuse", "client_discard", "cardinality_limited" ], "type": "string", "minLength": 1 }, "description": "See https://docs.sentry.io/product/stats/ for more information on outcome statuses.\n\n* `accepted`\n* `filtered`\n* `rate_limited`\n* `invalid`\n* `abuse`\n* `client_discard`\n* `cardinality_limited`" }, { "in": "query", "name": "reason", "schema": { "type": "string", "minLength": 1 }, "description": "The reason field will contain why an event was filtered/dropped." }, { "in": "query", "name": "download", "schema": { "type": "boolean" }, "description": "Download the API response in as a csv file" } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "start": { "type": "string", "description": "Start of the queried time range (ISO 8601)" }, "end": { "type": "string", "description": "End of the queried time range (ISO 8601)" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "stats": { "type": "array", "items": { "type": "object", "properties": { "category": { "type": "string", "description": "Data category of the counts, such as error" }, "outcomes": { "type": "object", "additionalProperties": { "type": "integer" }, "description": "Quantity of each outcome, such as accepted or rate_limited" }, "totals": { "type": "object", "additionalProperties": { "type": "integer" }, "description": "Totals of the requested fields, such as sum(quantity). Also has dropped, the quantity of the dropped outcomes, unless the outcome filter leaves them all out" }, "reason": { "type": "string", "description": "Reason for the outcomes. Only present when grouped by reason" } }, "required": [ "category", "outcomes", "totals" ] }, "description": "Outcome counts of the project by data category" } }, "required": [ "id", "slug", "stats" ] }, "description": "Outcome stats of each project" } }, "required": [ "end", "projects", "start" ] }, "examples": { "GetEventCountsForProjectsInAnOrganization": { "value": { "start": "2023-09-19T13:00:00Z", "end": "2023-09-19T12:28:00Z", "projects": [ { "id": 1, "slug": "android-project", "stats": [ { "category": "error", "outcomes": { "accepted": 1930571, "filtered": 1934881, "rate_limited": 2506132, "invalid": 0, "abuse": 1938113, "client_discard": 1942414, "cardinality_limited": 0 }, "totals": { "dropped": 2506132, "sum(quantity)": 10252111 } }, { "category": "transaction", "outcomes": { "accepted": 1909849, "filtered": 1947142, "rate_limited": 2458946, "invalid": 0, "abuse": 1927179, "client_discard": 1931595, "cardinality_limited": 0 }, "totals": { "dropped": 2458946, "sum(quantity)": 10174711 } } ] } ] }, "summary": "Get event counts for projects in an organization" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/stats_v2/": { "get": { "operationId": "listOrganizationStatsV2", "description": "Query event counts for your Organization.\nSelect a field, define a date range, and group or filter by columns.", "summary": "Retrieve Event Counts for an Organization (v2)", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "groupBy", "schema": { "type": "array", "items": { "enum": [ "outcome", "category", "reason", "project" ], "type": "string", "description": "* `outcome`\n* `category`\n* `reason`\n* `project`" } }, "description": "can pass multiple groupBy parameters to group by multiple, e.g. `groupBy=project&groupBy=outcome` to group by multiple dimensions. Note that grouping by project can cause missing rows if the number of projects / interval is large. If you have a large number of projects, we recommend filtering and querying by them individually.Also note that grouping by projects does not currently support timeseries interval responses and will instead be a sum of the projectover the entire period specified.", "required": true }, { "in": "query", "name": "field", "schema": { "enum": [ "sum(quantity)", "sum(times_seen)" ], "type": "string", "minLength": 1 }, "description": "the `sum(quantity)` field is bytes for attachments, and all others the 'event' count for those types of events.\n\n`sum(times_seen)` sums the number of times an event has been seen. For 'normal' event types, this will be equal to `sum(quantity)` for now. For sessions, quantity will sum the total number of events seen in a session, while `times_seen` will be the unique number of sessions. and for attachments, `times_seen` will be the total number of attachments, while quantity will be the total sum of attachment bytes.\n\n* `sum(quantity)`\n* `sum(times_seen)`", "required": true }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string", "minLength": 1 }, "description": "This defines the range of the time series, relative to now. The range is given in a `` format. For example `1d` for a one day range. Possible units are `m` for minutes, `h` for hours, `d` for days and `w` for weeks. You must either provide a `statsPeriod`, or a `start` and `end`." }, { "in": "query", "name": "interval", "schema": { "type": "string", "minLength": 1 }, "description": "This is the resolution of the time series, given in the same format as `statsPeriod`. The default resolution is `1h` and the minimum resolution is currently restricted to `1h` as well. Intervals larger than `1d` are not supported, and the interval has to cleanly divide one day." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "This defines the start of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds. Use along with `end` instead of `statsPeriod`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "This defines the inclusive end of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds. Use along with `start` instead of `statsPeriod`." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": {} }, "description": "The ID of the projects to filter by.\n\nUse `-1` to include all accessible projects." }, { "in": "query", "name": "category", "schema": { "enum": [ "error", "transaction", "attachment", "replay", "profile", "profile_duration", "profile_duration_ui", "profile_chunk", "profile_chunk_ui", "monitor" ], "type": "string", "minLength": 1 }, "description": "Filter by data category. Each category represents a different type of data:\n\n- `error`: Error events (includes `default` and `security` categories)\n- `transaction`: Transaction events\n- `attachment`: File attachments (note: cannot be combined with other categories since quantity represents bytes)\n- `replay`: Session replay events\n- `profile`: Performance profiles\n- `profile_duration`: Profile duration data (note: cannot be combined with other categories since quantity represents milliseconds)\n- `profile_duration_ui`: Profile duration (UI) data (note: cannot be combined with other categories since quantity represents milliseconds)\n- `profile_chunk`: Profile chunk data\n- `profile_chunk_ui`: Profile chunk (UI) data\n- `monitor`: Cron monitor events\n\n* `error`\n* `transaction`\n* `attachment`\n* `replay`\n* `profile`\n* `profile_duration`\n* `profile_duration_ui`\n* `profile_chunk`\n* `profile_chunk_ui`\n* `monitor`" }, { "in": "query", "name": "outcome", "schema": { "enum": [ "accepted", "filtered", "rate_limited", "invalid", "abuse", "client_discard", "cardinality_limited" ], "type": "string", "minLength": 1 }, "description": "See https://docs.sentry.io/product/stats/ for more information on outcome statuses.\n\n* `accepted`\n* `filtered`\n* `rate_limited`\n* `invalid`\n* `abuse`\n* `client_discard`\n* `cardinality_limited`" }, { "in": "query", "name": "reason", "schema": { "type": "string", "minLength": 1 }, "description": "The reason field will contain why an event was filtered/dropped." } ], "tags": [ "Organizations" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "start": { "type": "string", "description": "Start of the queried time range (ISO 8601)" }, "end": { "type": "string", "description": "End of the queried time range (ISO 8601)" }, "intervals": { "type": "array", "items": { "type": "string" }, "description": "Start of each interval in the series (ISO 8601)" }, "groups": { "type": "array", "items": { "type": "object", "properties": { "by": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "description": "Values of the group-by columns of the group" }, "totals": { "type": "object", "additionalProperties": { "type": "integer" }, "description": "Value of each requested field over the whole time range, by field" }, "series": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "integer" } }, "description": "Value of each requested field for each interval, by field" } }, "required": [ "by", "totals" ] }, "description": "Result for each group" } }, "required": [ "end", "groups", "start" ] }, "examples": { "RetrieveEventCountsV2": { "value": { "start": "2022-02-14T19:00:00Z", "end": "2022-02-28T18:03:00Z", "intervals": [ "2022-02-28T00:00:00Z" ], "groups": [ { "by": { "outcome": "invalid" }, "totals": { "sum(quantity)": 165665 }, "series": { "sum(quantity)": [ 165665 ] } } ] }, "summary": "Retrieve event counts v2" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/tags/": { "get": { "operationId": "listOrganizationTags", "description": "Return a list of tag keys for the given organization.", "summary": "List an Organization's Tags", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "dataset", "schema": { "type": "string", "enum": [ "discover", "events", "replays", "search_issues" ] }, "description": "The dataset to query. Defaults to `discover`." }, { "in": "query", "name": "use_cache", "schema": { "type": "string", "enum": [ "0", "1" ] }, "description": "Set to `\"1\"` to enable caching for the tag key query." }, { "in": "query", "name": "useFlagsBackend", "schema": { "type": "string", "enum": [ "0", "1" ] }, "description": "Set to `\"1\"` to query feature flags instead of tags." } ], "tags": [ "Discover" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "uniqueValues": { "type": "integer", "nullable": true, "description": "Number of distinct values seen for the tag key" }, "totalValues": { "type": "integer", "nullable": true, "description": "Number of events counted for the tag key. For an issue tag, this is the issue's retained event count, including events without the tag" }, "topValues": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "nullable": true, "description": "Search query that matches events with the tag value. Only set for the user tag" }, "key": { "type": "string", "description": "Tag key, with the `sentry:` prefix removed from built-in keys" }, "name": { "type": "string", "nullable": true, "description": "Display label of the tag value. For the user tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed" }, "value": { "type": "string", "nullable": true, "description": "Tag value" }, "count": { "type": "integer", "nullable": true, "description": "Number of events with the tag value. Null for an empty value" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the tag value was last seen (ISO 8601). Null for an empty value" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the tag value was first seen (ISO 8601). Null for an empty value" } }, "required": [ "count", "firstSeen", "key", "lastSeen", "name", "value" ] }, "nullable": true, "description": "Most frequent values of the tag key, ordered by count" }, "key": { "type": "string", "description": "Tag key, with the `sentry:` prefix removed from built-in keys" }, "name": { "type": "string", "description": "Display label of the tag key" } }, "required": [ "key", "name" ] } }, "examples": { "ReturnAListOfTagKeysForAnOrganization": { "value": [ { "key": "browser", "name": "Browser", "totalValues": 350 }, { "key": "browser.name", "name": "Browser Name", "totalValues": 350 }, { "key": "environment", "name": "Environment", "totalValues": 500 }, { "key": "level", "name": "Level", "totalValues": 500 }, { "key": "os", "name": "OS", "totalValues": 420 }, { "key": "release", "name": "Release", "totalValues": 100 } ], "summary": "Return a list of tag keys for an organization" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/teams/": { "get": { "operationId": "listOrganizationTeams", "description": "Returns a list of teams bound to a organization.", "summary": "List an Organization's Teams", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "detailed", "schema": { "type": "string" }, "description": "\nSpecify `\"0\"` to return team details that do not include projects.\n" }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Filter teams by name or slug." } ], "tags": [ "Teams" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Team ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Team slug, unique within the organization" }, "name": { "type": "string", "description": "Display name of the team" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the team was created (ISO 8601)" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of the team" }, "teamRole": { "type": "string", "nullable": true, "description": "The requesting user's role in the team" }, "flags": { "type": "object", "additionalProperties": { "type": "boolean" }, "description": "Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the team through their team role. Empty if the user has no access" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams" }, "isPending": { "type": "boolean", "description": "Whether the requesting user has a pending request to join the team" }, "memberCount": { "type": "integer", "description": "Number of members in the team" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Team avatar" }, "externalTeams": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Teams in external providers, such as Slack or GitHub, that are linked to this team" }, "organization": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ], "description": "Organization the team belongs to" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ] }, "description": "Projects the team has access to" } }, "required": [ "access", "avatar", "dateCreated", "flags", "hasAccess", "id", "isMember", "isPending", "memberCount", "name", "slug", "teamRole" ] } }, "examples": { "GetListOfOrganization'sTeams": { "value": [ { "id": "48531", "slug": "ancient-gabelers", "name": "Ancient Gabelers", "dateCreated": "2018-11-06T21:20:08.115Z", "isMember": false, "teamRole": null, "flags": { "idp:provisioned": false }, "access": [ "member:read", "alerts:read", "org:read", "event:read", "project:read", "project:releases", "event:write", "team:read" ], "hasAccess": true, "isPending": false, "memberCount": 2, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null } }, { "id": "100253", "slug": "powerful-abolitionist", "name": "Powerful Abolitionist", "dateCreated": "2018-10-03T17:47:50.745447Z", "isMember": false, "teamRole": null, "flags": { "idp:provisioned": false }, "access": [ "member:read", "alerts:read", "org:read", "event:read", "project:read", "project:releases", "event:write", "team:read" ], "hasAccess": true, "isPending": false, "memberCount": 5, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null }, "projects": [ { "id": "6403534", "slug": "prime-mover", "name": "Prime Mover", "platform": null, "dateCreated": "2019-04-06T00:02:40.468175Z", "isBookmarked": false, "isMember": false, "features": [ "custom-inbound-filters", "discard-groups", "minidump", "rate-limits", "servicehooks", "similarity-indexing", "similarity-indexing-v2", "similarity-view", "similarity-view-v2", "releases" ], "firstEvent": "2019-04-06T02:00:21Z", "firstTransactionEvent": true, "access": [ "alerts:read", "event:write", "org:read", "project:read", "member:read", "team:read", "event:read", "project:releases" ], "hasAccess": true, "hasMinifiedStackTrace": false, "hasMonitors": true, "hasProfiles": false, "hasReplays": false, "hasFlags": false, "hasFeedbacks": false, "hasNewFeedbacks": false, "hasSessions": true, "hasInsightsHttp": true, "hasInsightsDb": false, "hasInsightsAssets": true, "hasInsightsAppStart": false, "hasInsightsScreenLoad": false, "hasInsightsVitals": false, "hasInsightsCaches": false, "hasInsightsQueues": false, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "isInternal": false, "isPublic": false, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null }, "color": "#6d3fbf", "status": "active" }, { "id": "6403599", "slug": "the-spoiled-yoghurt", "name": "The Spoiled Yoghurt", "platform": "", "dateCreated": "2022-06-24T17:55:27.304367Z", "isBookmarked": false, "isMember": false, "features": [ "custom-inbound-filters", "discard-groups", "minidump", "rate-limits", "servicehooks", "similarity-indexing", "similarity-indexing-v2", "similarity-view", "similarity-view-v2" ], "firstEvent": "2022-07-13T18:17:56.197351Z", "firstTransactionEvent": false, "access": [ "alerts:read", "event:write", "org:read", "project:read", "member:read", "team:read", "event:read", "project:releases" ], "hasAccess": true, "hasMinifiedStackTrace": false, "hasMonitors": true, "hasProfiles": false, "hasReplays": false, "hasFlags": false, "hasFeedbacks": false, "hasNewFeedbacks": false, "hasSessions": false, "hasInsightsHttp": false, "hasInsightsDb": true, "hasInsightsAssets": true, "hasInsightsAppStart": true, "hasInsightsScreenLoad": true, "hasInsightsVitals": false, "hasInsightsCaches": false, "hasInsightsQueues": false, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "isInternal": false, "isPublic": false, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null }, "color": "#6e3fbf", "status": "active" } ] } ], "summary": "Get list of organization's teams" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createOrganizationTeam", "description": "Create a new team bound to an organization. Requires at least one of the `name`\nor `slug` body params to be set.", "summary": "Create a New Team", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Teams" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "slug": { "type": "string", "nullable": true, "description": "Uniquely identifies a team and is used for the interface. If not\n provided, it is automatically generated from the name.", "maxLength": 50, "pattern": "^(?![0-9]+$)[a-z0-9_\\-]+$" }, "name": { "type": "string", "nullable": true, "description": "**`[DEPRECATED]`** The name for the team. If not provided, it is\n automatically generated from the slug", "maxLength": 64, "deprecated": true } } } } } }, "security": [ { "auth_token": [ "org:admin", "org:write", "team:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Team ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Team slug, unique within the organization" }, "name": { "type": "string", "description": "Display name of the team" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the team was created (ISO 8601)" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of the team" }, "teamRole": { "type": "string", "nullable": true, "description": "The requesting user's role in the team" }, "flags": { "type": "object", "additionalProperties": { "type": "boolean" }, "description": "Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the team through their team role. Empty if the user has no access" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams" }, "isPending": { "type": "boolean", "description": "Whether the requesting user has a pending request to join the team" }, "memberCount": { "type": "integer", "description": "Number of members in the team" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Team avatar" }, "externalTeams": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Teams in external providers, such as Slack or GitHub, that are linked to this team" }, "organization": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ], "description": "Organization the team belongs to" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ] }, "description": "Projects the team has access to" } }, "required": [ "access", "avatar", "dateCreated", "flags", "hasAccess", "id", "isMember", "isPending", "memberCount", "name", "slug", "teamRole" ] }, "examples": { "CreateANewTeam": { "value": { "id": "5151492858", "slug": "ancient-gabelers", "name": "Ancient Gabelers", "dateCreated": "2021-06-12T23:38:54.168307Z", "isMember": true, "teamRole": "admin", "flags": { "idp:provisioned": false }, "access": [ "project:write", "member:read", "event:write", "team:admin", "alerts:read", "project:releases", "alerts:write", "org:read", "team:read", "project:admin", "project:read", "org:integrations", "event:read", "event:admin", "team:write" ], "hasAccess": true, "isPending": false, "memberCount": 1, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null } }, "summary": "Create a new team" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "A team with this slug already exists." }, "409": { "description": "Conflict" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/trace-items/attributes/": { "get": { "operationId": "listOrganizationTraceItemAttributes", "description": "List the attribute keys available on a given trace item dataset (spans, logs,\ntrace metrics, etc.), with optional substring and structured filtering.\n\nPass `expand=context` (experimental) to include each attribute's metadata:\na brief description, examples, and deprecation details.", "summary": "List Trace Item Attributes", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "dataset", "schema": { "type": "string", "enum": [ "logs", "preprod", "processing_errors", "spans", "tracemetrics" ] }, "description": "The trace item dataset to list attributes for. One of `itemType` or `dataset` is required." }, { "in": "query", "name": "itemType", "schema": { "type": "string", "enum": [ "logs", "preprod", "processing_errors", "spans", "tracemetrics" ] }, "description": "Deprecated alias of `dataset`. Use `dataset` instead.", "deprecated": true }, { "in": "query", "name": "attributeType", "schema": { "type": "array", "items": { "type": "string", "enum": [ "array", "boolean", "number", "string" ] } }, "description": "Filter to attributes of one or more types. Defaults to all types." }, { "in": "query", "name": "substringMatch", "schema": { "type": "string" }, "description": "Restrict results to attribute names containing this substring (case-sensitive)." }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Sentry [search syntax](https://docs.sentry.io/concepts/search/) to filter trace items before computing attributes." }, { "in": "query", "name": "expand", "schema": { "type": "array", "items": { "type": "string", "enum": [ "context" ] } }, "description": "**Experimental:** This parameter is under active development and may change.\n\nOptional fields to expand. Pass `context` to include attribute metadata (brief, examples, deprecation, etc.).", "x-sentry-experimental": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Discover" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "description": "Key to use when querying the attribute" }, "name": { "type": "string", "description": "Display name of the attribute" }, "secondaryAliases": { "type": "array", "items": { "type": "string" }, "description": "Other names the attribute can be queried by" }, "attributeSource": { "type": "object", "properties": { "source_type": { "enum": [ "sentry", "user" ], "type": "string", "description": "Who set the attribute: `sentry` for attributes Sentry defines, or `user` for custom attributes" }, "is_transformed_alias": { "type": "boolean", "description": "Whether the attribute name is an alias Sentry maps to an internal column" } }, "required": [ "source_type" ], "description": "Where the attribute comes from" }, "attributeType": { "enum": [ "string", "number", "boolean", "array" ], "type": "string", "description": "Type of the attribute: `string`, `number`, `boolean` or `array`" }, "context": { "type": "object", "description": "Additional, mostly-static metadata about an attribute.\n\nWhen ``expand=context`` is requested, context is attached to every attribute.\nMetadata comes from the sentry conventions, Sentry's own column definitions,\nor user-authored context (gated behind ``data-browsing-attribute-context``),\nin that precedence order. Only the fields available are included, so an\nattribute with no metadata gets an empty context.", "properties": { "isConvention": { "type": "boolean", "description": "Whether this context comes from a known Sentry convention" }, "isCustom": { "type": "boolean", "description": "Whether this context was written by a user" }, "brief": { "type": "string", "description": "Short description of the attribute" }, "isDeprecated": { "type": "boolean", "description": "Whether the convention is deprecated" }, "details": { "type": "array", "items": { "type": "string" }, "description": "Longer notes about the attribute, such as caveats" }, "examples": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "boolean" } ] }, "description": "Example values for the attribute" }, "replacementAttribute": { "type": "string", "description": "Attribute that replaces this one, when it is deprecated" }, "isInOtel": { "type": "boolean", "description": "Whether this Sentry convention is part of the OpenTelemetry semantic conventions. Present (and true) only for such conventions; OpenTelemetry attributes that aren't Sentry conventions are never marked" }, "unit": { "enum": [ "byte", "currency", "millisecond", "percentage", "second" ], "type": "string", "description": "Unit of a number attribute, from the dataset's Sentry-defined attributes or from Sentry conventions, which apply in every dataset" } } } }, "required": [ "attributeSource", "attributeType", "key", "name" ] } }, "examples": { "ReturnAListOfTraceItemAttributeKeys": { "value": [ { "key": "device.class", "name": "device.class", "attributeSource": { "source_type": "sentry" }, "attributeType": "string" }, { "key": "tags[Batch Size,number]", "name": "Batch Size", "attributeSource": { "source_type": "user" }, "attributeType": "number" } ], "summary": "Return a list of trace item attribute keys" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/trace-items/metrics/": { "get": { "operationId": "listOrganizationTraceMetrics", "description": "**Experimental:** This API is under active development and may change.\n\nList trace metrics (name, type, unit, count, last seen) with optional context.", "summary": "List an Organization's Trace Metrics", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Search query to filter metrics, using the same syntax as the metrics dataset." }, { "in": "query", "name": "sort", "schema": { "type": "string", "enum": [ "-count", "-lastSeen", "-name", "-type", "-unit", "count", "lastSeen", "name", "type", "unit" ] }, "description": "Response field to sort by, prefixed with `-` for descending. Defaults to metric name ascending." }, { "in": "query", "name": "expand", "schema": { "type": "array", "items": { "type": "string", "enum": [ "context" ] } }, "description": "Optional fields to expand. Pass `context` to include each metric's authored context (brief and details), which describes what the metric measures. Requires the `data-browsing-attribute-context` feature; without it the `context` field is omitted." }, { "in": "query", "name": "contextOnly", "schema": { "type": "boolean" }, "description": "Return only metrics that have authored context, and include that context in the response. Use this to discover the metrics that are described well enough to query confidently. Requires the `data-browsing-attribute-context` feature; without it this is a no-op." } ], "tags": [ "Explore" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the metric" }, "type": { "enum": [ "counter", "gauge", "distribution" ], "type": "string", "description": "Type of the metric: counter, gauge or distribution" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the metric. Null when it has none" }, "count": { "type": "number", "format": "double", "description": "Number of data points of the metric in the time range" }, "lastSeen": { "type": "number", "format": "double", "nullable": true, "description": "When the metric was last seen, as a Unix timestamp. Null when not known" }, "context": { "type": "object", "properties": { "brief": { "type": "string", "description": "Short description of the metric" }, "details": { "type": "array", "items": { "type": "string" }, "description": "Longer notes about the metric" } }, "description": "Description of the metric. Only set when expand includes context" } }, "required": [ "count", "lastSeen", "name", "type", "unit" ] } }, "examples": { "ListTheTraceMetricsForAnOrganization": { "value": [ { "name": "checkout.latency", "type": "distribution", "unit": "millisecond", "count": 1432, "lastSeen": 1735689600, "context": { "brief": "End-to-end latency of the checkout flow.", "details": [ "Recorded once per completed checkout, from cart submit to receipt." ] } }, { "name": "cart.items", "type": "gauge", "unit": null, "count": 87, "lastSeen": 1735686000 } ], "summary": "List the trace metrics for an organization" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/trace-items/stats/": { "get": { "operationId": "Retrieve Trace Item Statistics", "description": "Compute statistics, such as attribute value distributions, over the trace\nitems (spans or occurrences) matching the given query within the requested\ntime range.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "statsType", "schema": { "type": "array", "items": { "enum": [ "attributeDistributions" ], "type": "string", "description": "* `attributeDistributions`" } }, "description": "The statistics to compute over the matching trace items.", "required": true }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "query", "schema": { "type": "string", "minLength": 1 }, "description": "Sentry [search syntax](https://docs.sentry.io/concepts/search/) to filter trace items before computing statistics." }, { "in": "query", "name": "substringMatch", "schema": { "type": "string", "minLength": 1 }, "description": "Restrict results to attribute names containing this substring (case-sensitive)." }, { "in": "query", "name": "traceItemsLimit", "schema": { "type": "integer", "maximum": 1000, "default": 1000 }, "description": "Maximum number of trace items to sample when computing statistics. Defaults to `1000`, which is also the maximum." }, { "in": "query", "name": "itemType", "schema": { "enum": [ "spans", "occurrences" ], "type": "string", "default": "spans", "minLength": 1 }, "description": "The trace item dataset to compute statistics for. Defaults to `spans`.\n\n* `spans`\n* `occurrences`" }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Explore" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "attributeDistributions": { "type": "object", "properties": { "data": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "object", "properties": { "label": { "type": "string", "description": "Value of the attribute" }, "value": { "type": "number", "format": "double", "description": "Number of items with the value" } }, "required": [ "label", "value" ] } }, "description": "Value distribution of each attribute, by attribute name" } }, "required": [ "data" ], "description": "Value distributions of the attributes" } }, "required": [ "attributeDistributions" ] }, "description": "Requested stats" } }, "required": [ "data" ] }, "examples": { "AttributeDistributionsForTheMatchingTraceItems": { "value": { "data": [ { "attributeDistributions": { "data": { "sentry.device": [ { "label": "mobile", "value": 3 }, { "label": "desktop", "value": 1 } ], "browser.name": [ { "label": "chrome", "value": 3 }, { "label": "safari", "value": 1 } ] } } } ] }, "summary": "Attribute distributions for the matching trace items" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/trace-logs/": { "get": { "operationId": "listOrganizationTraceLogs", "description": "List the logs belonging to one or more traces, or to a replay, across all projects\nin the organization the caller can access. A trace can span many projects, so the\n`project` filter is ignored.", "summary": "List Logs for Traces or a Replay", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "traceId", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The 32-character ID of a trace to list logs for. Can be repeated. At least one `traceId` or a `replayId` is required." }, { "in": "query", "name": "replayId", "schema": { "type": "string" }, "description": "The 32-character ID of a replay to list logs for. Logs matching either a `traceId` or the `replayId` are returned." }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Additional [search query](https://docs.sentry.io/concepts/search/) to filter the logs." }, { "in": "query", "name": "sort", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Columns to sort by, prefixed with `-` for descending. Must be one of `id`, `project.id`, `trace`, `severity_number`, `severity`, `timestamp`, `timestamp_precise`, `message`. Defaults to `-timestamp` then `-timestamp_precise`." }, { "in": "query", "name": "timestamp", "schema": { "type": "string" }, "description": "An ISO 8601 timestamp of an event in the trace. When passed, the query is narrowed to a window around this time, which is faster than searching the full time range." }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "The number of logs to return per page, up to 9999." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Explore" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "The ID of the log" }, "project.id": { "type": "integer", "description": "The ID of the project the log belongs to" }, "trace": { "type": "string", "description": "The ID of the trace the log belongs to" }, "severity_number": { "type": "integer", "description": "The OpenTelemetry severity number of the log, from 1 to 24, or 0 if unset" }, "severity": { "type": "string", "description": "The severity text of the log, such as `info` or `error`" }, "timestamp": { "type": "string", "format": "date-time", "description": "When the log was recorded" }, "timestamp_precise": { "type": "integer", "description": "When the log was recorded, in nanoseconds since the Unix epoch" }, "message": { "type": "string", "description": "The body of the log" } }, "required": [ "id", "message", "project.id", "severity", "severity_number", "timestamp", "timestamp_precise", "trace" ] }, "description": "The logs, sorted by the `sort` parameter" }, "meta": { "type": "object", "properties": { "fields": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Type of each returned field, keyed by field name" }, "full_scan": { "type": "boolean", "description": "Whether the query scanned the full data set rather than a downsampled sample" }, "bytes_scanned": { "type": "integer", "nullable": true, "description": "Number of bytes the query scanned, or null if it wasn't reported" }, "routingHint": { "type": "string", "description": "Opaque routing hint of the query. Pass it unchanged as routing_hint when fetching the details of a log" } }, "required": [ "fields" ], "description": "Metadata about the query and its fields" }, "confidence": { "type": "array", "items": { "type": "object", "additionalProperties": { "enum": [ "low", "high", null ], "type": "string", "nullable": true } }, "description": "Sampling confidence of each row in `data`, keyed by field. Logs are not aggregated, so each entry is an empty object" } }, "required": [ "confidence", "data", "meta" ] }, "examples": { "ListTheLogsInATrace": { "value": { "data": [ { "id": "99083e5c2ee246be1242ee264d20fd58", "project.id": 4505281256090153, "trace": "a9f3c1e2b4d5467890abcdef12345678", "severity_number": 9, "severity": "INFO", "timestamp": "2026-09-01T12:00:00+00:00", "timestamp_precise": 1756728000123000000, "message": "Payment processed" } ], "meta": { "fields": { "id": "string", "project.id": "string", "trace": "string", "severity_number": "integer", "severity": "string", "timestamp": "string", "timestamp_precise": "number", "message": "string" }, "full_scan": true, "bytes_scanned": 255, "routingHint": "eyJ2IjogMSwgInRpZXIiOiAxfQ==" }, "confidence": [ {} ] }, "summary": "List the logs in a trace" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/trace-meta/{trace_id}/": { "get": { "operationId": "getOrganizationTraceMeta", "description": "Retrieve aggregate metadata for a single trace, including counts of spans,\nerrors, performance issues, logs, and metrics, along with per-span-operation\nand per-transaction child-count breakdowns.", "summary": "Retrieve Trace Metadata", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "trace_id", "schema": { "type": "string" }, "description": "The ID of the trace, a 32-character hexadecimal string.", "required": true }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "timestamp", "schema": { "type": "string" }, "description": "The timestamp of an event in the trace, as an ISO 8601 string or Unix timestamp in\nseconds. When passed, the query is narrowed to a window around this time, which is faster than\nsearching the full time range." }, { "in": "query", "name": "include_uptime", "schema": { "type": "string", "enum": [ "0", "1" ] }, "description": "Set to `1` to include uptime check counts in the response. Defaults to `0` (disabled)." } ], "tags": [ "Discover" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "uptimeCount": { "type": "integer", "description": "Number of uptime checks in the trace. Only present when `include_uptime=1`" }, "errorsCount": { "type": "integer", "description": "Number of errors in the trace" }, "logsCount": { "type": "number", "format": "double", "description": "Number of logs in the trace" }, "metricsCount": { "type": "number", "format": "double", "description": "Number of metric samples in the trace, excluding metrics derived from spans" }, "performanceIssuesCount": { "type": "integer", "description": "Number of performance issues in the trace" }, "spansCount": { "type": "number", "format": "double", "description": "Number of spans in the trace" }, "transactionChildCountMap": { "type": "array", "items": { "type": "object", "properties": { "transaction.event_id": { "type": "string", "nullable": true, "description": "ID of the transaction. Null for spans that belong to no transaction" }, "count()": { "type": "number", "format": "double", "description": "Number of child spans of the transaction" } }, "required": [ "count()", "transaction.event_id" ] }, "description": "Number of child spans of each transaction" }, "spansCountMap": { "type": "object", "additionalProperties": { "type": "number", "format": "double" }, "description": "Number of spans in the trace for each span operation, keyed by `span.op`" } }, "required": [ "errorsCount", "logsCount", "metricsCount", "performanceIssuesCount", "spansCount", "spansCountMap", "transactionChildCountMap" ] }, "examples": { "ReturnAggregateMetadataForATrace": { "value": { "errorsCount": 0, "logsCount": 5, "metricsCount": 0, "performanceIssuesCount": 0, "spansCount": 195, "transactionChildCountMap": [ { "transaction.event_id": "280027d94f30428c83a2de46f932612a", "count()": 7 }, { "transaction.event_id": "66087f4e87c847759db67fd62e32829c", "count()": 38 } ], "spansCountMap": { "db": 58, "cache.get": 56, "http.server": 6 } }, "summary": "Return aggregate metadata for a trace" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/trace/{trace_id}/": { "get": { "operationId": "getOrganizationTrace", "description": "Retrieve the spans, errors, and (optionally) uptime checks that make up a single trace.\n\nThe response is a list of top-level events; each item may have nested `children`, `errors`,\nand `occurrences` arrays representing related items. Top-level entries are spans by default\nand may also be uptime checks when `include_uptime=1` is passed.", "summary": "Retrieve a Trace", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "trace_id", "schema": { "type": "string" }, "description": "The ID of the trace, a 32-character hexadecimal string.", "required": true }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "referrer", "schema": { "type": "string" }, "description": "Internal referrer identifier used for query tracing. Most clients can omit this." }, { "in": "query", "name": "timestamp", "schema": { "type": "string" }, "description": "The timestamp of an event in the trace, as an ISO 8601 string or Unix timestamp in\nseconds. When passed, the query is narrowed to a window around this time, which is faster than\nsearching the full time range." }, { "in": "query", "name": "errorId", "schema": { "type": "string" }, "description": "A 32-character hexadecimal event ID to bias the trace results toward including." }, { "in": "query", "name": "additional_attributes", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Additional span attributes to include on each event. Repeat to request multiple." }, { "in": "query", "name": "include_uptime", "schema": { "type": "string", "enum": [ "0", "1" ] }, "description": "Set to `1` to include uptime check results in the trace. Defaults to `0`." } ], "tags": [ "Discover" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" }, "event_type": { "enum": [ "span" ], "type": "string", "description": "Kind of item, always span" }, "children": { "type": "array", "items": { "type": "object", "description": "Fields shared by every item in a trace. Entries in `children` are full\nspans at runtime; only the shared fields are documented here.", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" } }, "required": [ "description", "event_id", "project_id", "project_slug", "transaction" ] }, "description": "Child items of the item, such as spans" }, "errors": { "type": "array", "items": { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" }, "event_type": { "enum": [ "error", "occurrence" ], "type": "string", "description": "Kind of issue item: error or occurrence" }, "issue_id": { "type": "integer", "description": "ID of the issue" }, "level": { "type": "string", "description": "Level of the issue, such as error or warning" }, "start_timestamp": { "type": "number", "format": "double", "description": "When the error or occurrence started, as a Unix timestamp in seconds" }, "end_timestamp": { "type": "number", "format": "double", "description": "When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "short_id": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "issue_type": { "type": "integer", "description": "Numeric issue type ID" } }, "required": [ "culprit", "description", "event_id", "event_type", "issue_id", "issue_type", "level", "project_id", "project_slug", "short_id", "start_timestamp", "transaction" ] }, "description": "Errors linked to the item" }, "occurrences": { "type": "array", "items": { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" }, "event_type": { "enum": [ "error", "occurrence" ], "type": "string", "description": "Kind of issue item: error or occurrence" }, "issue_id": { "type": "integer", "description": "ID of the issue" }, "level": { "type": "string", "description": "Level of the issue, such as error or warning" }, "start_timestamp": { "type": "number", "format": "double", "description": "When the error or occurrence started, as a Unix timestamp in seconds" }, "end_timestamp": { "type": "number", "format": "double", "description": "When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "short_id": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "issue_type": { "type": "integer", "description": "Numeric issue type ID" } }, "required": [ "culprit", "description", "event_id", "event_type", "issue_id", "issue_type", "level", "project_id", "project_slug", "short_id", "start_timestamp", "transaction" ] }, "description": "Non-error issue occurrences, such as performance issues, linked to the item" }, "duration": { "type": "number", "format": "double", "description": "Duration of the span in milliseconds" }, "end_timestamp": { "type": "number", "format": "double", "description": "When the span ended, as a Unix timestamp in seconds" }, "measurements": { "type": "object", "additionalProperties": { "type": "number", "format": "double" }, "description": "Measurements recorded on the span, keyed by measurements." }, "browser_web_vital": { "type": "object", "additionalProperties": { "type": "number", "format": "double" }, "description": "Browser web vitals recorded on the span, keyed by browser.web_vital." }, "mobile_app_vital": { "type": "object", "additionalProperties": { "type": "number", "format": "double" }, "description": "Mobile app vitals recorded on the span, keyed by app.vitals." }, "op": { "type": "string", "description": "Operation of the span, such as http.client or db" }, "name": { "type": "string", "description": "Name of the span" }, "parent_span_id": { "type": "string", "nullable": true, "description": "ID of the parent span. Null for root spans" }, "profile_id": { "type": "string", "description": "ID of the transaction profile linked to the span" }, "profiler_id": { "type": "string", "description": "ID of the continuous profiling session linked to the span" }, "sdk_name": { "type": "string", "description": "Name of the SDK that sent the span" }, "start_timestamp": { "type": "number", "format": "double", "description": "When the span started, as a Unix timestamp in seconds" }, "is_transaction": { "type": "boolean", "description": "Whether the span is a transaction (segment) span" }, "transaction_id": { "type": "string", "description": "ID of the transaction event the span belongs to" }, "additional_attributes": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "boolean" } ] }, "description": "Extra span attributes requested with additional_attributes, keyed by attribute name" } }, "required": [ "browser_web_vital", "children", "description", "duration", "end_timestamp", "errors", "event_id", "event_type", "is_transaction", "measurements", "mobile_app_vital", "name", "occurrences", "op", "parent_span_id", "profile_id", "profiler_id", "project_id", "project_slug", "sdk_name", "start_timestamp", "transaction", "transaction_id" ] }, { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" }, "event_type": { "enum": [ "error", "occurrence" ], "type": "string", "description": "Kind of issue item: error or occurrence" }, "issue_id": { "type": "integer", "description": "ID of the issue" }, "level": { "type": "string", "description": "Level of the issue, such as error or warning" }, "start_timestamp": { "type": "number", "format": "double", "description": "When the error or occurrence started, as a Unix timestamp in seconds" }, "end_timestamp": { "type": "number", "format": "double", "description": "When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "short_id": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "issue_type": { "type": "integer", "description": "Numeric issue type ID" } }, "required": [ "culprit", "description", "event_id", "event_type", "issue_id", "issue_type", "level", "project_id", "project_slug", "short_id", "start_timestamp", "transaction" ] }, { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" }, "event_type": { "enum": [ "uptime_check" ], "type": "string", "description": "Kind of item, always uptime_check" }, "children": { "type": "array", "items": { "type": "object", "description": "Fields shared by every item in a trace. Entries in `children` are full\nspans at runtime; only the shared fields are documented here.", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" } }, "required": [ "description", "event_id", "project_id", "project_slug", "transaction" ] }, "description": "Child items of the item, such as spans" }, "errors": { "type": "array", "items": { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" }, "event_type": { "enum": [ "error", "occurrence" ], "type": "string", "description": "Kind of issue item: error or occurrence" }, "issue_id": { "type": "integer", "description": "ID of the issue" }, "level": { "type": "string", "description": "Level of the issue, such as error or warning" }, "start_timestamp": { "type": "number", "format": "double", "description": "When the error or occurrence started, as a Unix timestamp in seconds" }, "end_timestamp": { "type": "number", "format": "double", "description": "When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "short_id": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "issue_type": { "type": "integer", "description": "Numeric issue type ID" } }, "required": [ "culprit", "description", "event_id", "event_type", "issue_id", "issue_type", "level", "project_id", "project_slug", "short_id", "start_timestamp", "transaction" ] }, "description": "Errors linked to the item" }, "occurrences": { "type": "array", "items": { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" }, "event_type": { "enum": [ "error", "occurrence" ], "type": "string", "description": "Kind of issue item: error or occurrence" }, "issue_id": { "type": "integer", "description": "ID of the issue" }, "level": { "type": "string", "description": "Level of the issue, such as error or warning" }, "start_timestamp": { "type": "number", "format": "double", "description": "When the error or occurrence started, as a Unix timestamp in seconds" }, "end_timestamp": { "type": "number", "format": "double", "description": "When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "short_id": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "issue_type": { "type": "integer", "description": "Numeric issue type ID" } }, "required": [ "culprit", "description", "event_id", "event_type", "issue_id", "issue_type", "level", "project_id", "project_slug", "short_id", "start_timestamp", "transaction" ] }, "description": "Non-error issue occurrences, such as performance issues, linked to the item" }, "transaction_id": { "type": "string", "description": "ID of the trace the uptime check belongs to" }, "op": { "type": "string", "description": "Operation of the uptime check, always uptime.request" }, "start_timestamp": { "type": "number", "format": "double", "description": "When the uptime check started, as a Unix timestamp in seconds" }, "end_timestamp": { "type": "number", "format": "double", "description": "When the uptime check ended, as a Unix timestamp in seconds" }, "duration": { "type": "number", "format": "double", "description": "Duration of the uptime check in milliseconds" }, "name": { "type": "string", "description": "URL the uptime check requested" }, "region_name": { "type": "string", "description": "Region the uptime check ran from" }, "additional_attributes": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the uptime result" }, "trace": { "type": "string", "description": "ID of the trace the uptime check belongs to" }, "span_id": { "type": "string", "description": "ID of the span the uptime checker made up for the check" }, "environment": { "type": "string", "description": "Environment of the uptime monitor" }, "guid": { "type": "string", "description": "Unique ID of the uptime check" }, "subscription_id": { "type": "string", "description": "ID of the uptime subscription the check ran for" }, "check_id": { "type": "string", "description": "ID of the uptime check" }, "check_status": { "description": "Outcome of the check", "type": "string", "enum": [ "success", "failure", "missed_window", "disallowed_by_robots" ] }, "region": { "type": "string", "description": "Slug of the region the check ran from" }, "scheduled_check_time_us": { "type": "integer", "description": "When the check was scheduled to run, in microseconds" }, "actual_check_time_us": { "type": "integer", "description": "When the check ran, in microseconds" }, "check_duration_us": { "type": "integer", "description": "Duration of the check in microseconds" }, "status_reason_type": { "description": "Kind of failure", "type": "string", "enum": [ "timeout", "dns_error", "failure", "tls_error", "connection_error", "redirect_error", "miss_produced", "miss_backfill", "assertion_compilation_error", "assertion_evaluation_error" ] }, "status_reason_description": { "type": "string", "description": "Description of why the check failed" }, "assertion_failure_data": { "type": "string", "description": "Assertion that failed, as JSON" }, "method": { "description": "HTTP method of the first request of the check", "type": "string", "enum": [ "GET", "POST", "HEAD", "PUT", "DELETE", "PATCH", "OPTIONS" ] }, "original_url": { "type": "string", "description": "URL of the first request of the check, before redirects" }, "request_sequence": { "type": "integer", "description": "Position of the request in the redirect chain, starting at 0" }, "request_type": { "description": "HTTP method of the request", "type": "string", "enum": [ "GET", "POST", "HEAD", "PUT", "DELETE", "PATCH", "OPTIONS" ] }, "request_url": { "type": "string", "description": "URL of the request" }, "http_status_code": { "type": "integer", "description": "HTTP status code of the response" }, "request_body_size_bytes": { "type": "integer", "description": "Size of the request body in bytes" }, "response_body_size_bytes": { "type": "integer", "description": "Size of the response body in bytes" }, "request_duration_us": { "type": "integer", "description": "Duration of the request in microseconds" }, "dns_lookup_start_us": { "type": "integer", "description": "When the DNS lookup started, in microseconds" }, "dns_lookup_duration_us": { "type": "integer", "description": "Duration of the DNS lookup in microseconds" }, "tcp_connection_start_us": { "type": "integer", "description": "When the TCP connection started, in microseconds" }, "tcp_connection_duration_us": { "type": "integer", "description": "Duration of the TCP connection in microseconds" }, "tls_handshake_start_us": { "type": "integer", "description": "When the TLS handshake started, in microseconds" }, "tls_handshake_duration_us": { "type": "integer", "description": "Duration of the TLS handshake in microseconds" }, "time_to_first_byte_start_us": { "type": "integer", "description": "When the wait for the first response byte started, in microseconds" }, "time_to_first_byte_duration_us": { "type": "integer", "description": "Time to the first response byte in microseconds" }, "send_request_start_us": { "type": "integer", "description": "When sending the request started, in microseconds" }, "send_request_duration_us": { "type": "integer", "description": "Duration of sending the request in microseconds" }, "receive_response_start_us": { "type": "integer", "description": "When receiving the response started, in microseconds" }, "receive_response_duration_us": { "type": "integer", "description": "Duration of receiving the response in microseconds" }, "incident_status": { "type": "integer", "description": "Whether the check is part of an incident: 1 if it is, 0 if not" } }, "description": "Extra uptime check attributes, keyed by attribute name" } }, "required": [ "additional_attributes", "children", "description", "duration", "end_timestamp", "errors", "event_id", "event_type", "name", "occurrences", "op", "project_id", "project_slug", "region_name", "start_timestamp", "transaction", "transaction_id" ] } ] } }, "examples": { "ReturnTheSpans,Errors,AndOccurrencesOfATrace": { "value": [ { "event_id": "0123456789abcdef0123456789abcdef", "event_type": "span", "transaction_id": "280027d94f30428c83a2de46f932612a", "project_id": 4505281256090153, "project_slug": "javascript", "transaction": "POST /api/0/projects/{org}/{proj}/events/{event_id}/attachments/", "description": "POST /api/0/projects/{org}/{proj}/events/{event_id}/attachments/", "op": "http.server", "name": "http.server", "parent_span_id": null, "profile_id": "", "profiler_id": "", "sdk_name": "sentry.python", "is_transaction": true, "start_timestamp": 1776277351, "end_timestamp": 1776277351.25, "duration": 250, "measurements": { "measurements.frames_slow_rate": 0.02, "measurements.frames_frozen_rate": 0.01 }, "browser_web_vital": { "browser.web_vital.lcp.value": 2807.335, "browser.web_vital.cls.value": 0.0382, "browser.web_vital.inp.value": 120, "browser.web_vital.ttfb.value": 450, "browser.web_vital.fcp.value": 2258.06 }, "mobile_app_vital": { "app.vitals.start.cold.value": 1600, "app.vitals.start.warm.value": 400, "app.vitals.ttid.value": 1200, "app.vitals.ttfd.value": 2400 }, "children": [], "errors": [], "occurrences": [] } ], "summary": "Return the spans, errors, and occurrences of a trace" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/user-teams/": { "get": { "operationId": "listOrganizationUserTeams", "description": "Returns a list of teams the user has access to in the specified organization.\nNote that this endpoint is restricted to [user auth tokens](https://docs.sentry.io/account/auth-tokens/#user-auth-tokens).", "summary": "List a User's Teams for an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Teams" ], "security": [ { "auth_token": [ "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Team ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Team slug, unique within the organization" }, "name": { "type": "string", "description": "Display name of the team" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the team was created (ISO 8601)" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of the team" }, "teamRole": { "type": "string", "nullable": true, "description": "The requesting user's role in the team" }, "flags": { "type": "object", "additionalProperties": { "type": "boolean" }, "description": "Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the team through their team role. Empty if the user has no access" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams" }, "isPending": { "type": "boolean", "description": "Whether the requesting user has a pending request to join the team" }, "memberCount": { "type": "integer", "description": "Number of members in the team" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Team avatar" }, "externalTeams": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Teams in external providers, such as Slack or GitHub, that are linked to this team" }, "organization": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ], "description": "Organization the team belongs to" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ] }, "description": "Projects the team has access to" } }, "required": [ "access", "avatar", "dateCreated", "flags", "hasAccess", "id", "isMember", "isPending", "memberCount", "name", "slug", "teamRole" ] } }, "examples": { "GetListOfOrganization'sTeams": { "value": [ { "id": "48531", "slug": "ancient-gabelers", "name": "Ancient Gabelers", "dateCreated": "2018-11-06T21:20:08.115Z", "isMember": false, "teamRole": null, "flags": { "idp:provisioned": false }, "access": [ "member:read", "alerts:read", "org:read", "event:read", "project:read", "project:releases", "event:write", "team:read" ], "hasAccess": true, "isPending": false, "memberCount": 2, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null } }, { "id": "100253", "slug": "powerful-abolitionist", "name": "Powerful Abolitionist", "dateCreated": "2018-10-03T17:47:50.745447Z", "isMember": false, "teamRole": null, "flags": { "idp:provisioned": false }, "access": [ "member:read", "alerts:read", "org:read", "event:read", "project:read", "project:releases", "event:write", "team:read" ], "hasAccess": true, "isPending": false, "memberCount": 5, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null }, "projects": [ { "id": "6403534", "slug": "prime-mover", "name": "Prime Mover", "platform": null, "dateCreated": "2019-04-06T00:02:40.468175Z", "isBookmarked": false, "isMember": false, "features": [ "custom-inbound-filters", "discard-groups", "minidump", "rate-limits", "servicehooks", "similarity-indexing", "similarity-indexing-v2", "similarity-view", "similarity-view-v2", "releases" ], "firstEvent": "2019-04-06T02:00:21Z", "firstTransactionEvent": true, "access": [ "alerts:read", "event:write", "org:read", "project:read", "member:read", "team:read", "event:read", "project:releases" ], "hasAccess": true, "hasMinifiedStackTrace": false, "hasMonitors": true, "hasProfiles": false, "hasReplays": false, "hasFlags": false, "hasFeedbacks": false, "hasNewFeedbacks": false, "hasSessions": true, "hasInsightsHttp": true, "hasInsightsDb": false, "hasInsightsAssets": true, "hasInsightsAppStart": false, "hasInsightsScreenLoad": false, "hasInsightsVitals": false, "hasInsightsCaches": false, "hasInsightsQueues": false, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "isInternal": false, "isPublic": false, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null }, "color": "#6d3fbf", "status": "active" }, { "id": "6403599", "slug": "the-spoiled-yoghurt", "name": "The Spoiled Yoghurt", "platform": "", "dateCreated": "2022-06-24T17:55:27.304367Z", "isBookmarked": false, "isMember": false, "features": [ "custom-inbound-filters", "discard-groups", "minidump", "rate-limits", "servicehooks", "similarity-indexing", "similarity-indexing-v2", "similarity-view", "similarity-view-v2" ], "firstEvent": "2022-07-13T18:17:56.197351Z", "firstTransactionEvent": false, "access": [ "alerts:read", "event:write", "org:read", "project:read", "member:read", "team:read", "event:read", "project:releases" ], "hasAccess": true, "hasMinifiedStackTrace": false, "hasMonitors": true, "hasProfiles": false, "hasReplays": false, "hasFlags": false, "hasFeedbacks": false, "hasNewFeedbacks": false, "hasSessions": false, "hasInsightsHttp": false, "hasInsightsDb": true, "hasInsightsAssets": true, "hasInsightsAppStart": true, "hasInsightsScreenLoad": true, "hasInsightsVitals": false, "hasInsightsCaches": false, "hasInsightsQueues": false, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "isInternal": false, "isPublic": false, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null }, "color": "#6e3fbf", "status": "active" } ] } ], "summary": "Get list of organization's teams" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/workflows/": { "get": { "operationId": "listOrganizationWorkflows", "description": "Returns a list of alerts for a given organization", "summary": "Fetch Alerts", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "sortBy", "schema": { "type": "string" }, "description": "The field to sort results by. If not specified, the results are sorted by id.\n\nAvailable fields are:\n- `name`\n- `id`\n- `dateCreated`\n- `dateUpdated`\n- `connectedDetectors`\n- `actions`\n- `priorityDetector`\n\nPrefix with `-` to sort in descending order.\n " }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "An optional search query for filtering alerts." }, { "in": "query", "name": "id", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "The ID of the alert you'd like to query." }, { "in": "query", "name": "detector", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "The IDs of monitors connected to the alerts you'd like to query." }, { "in": "query", "name": "type", "schema": { "type": "array", "items": { "type": "string", "enum": [ "alert" ] } }, "description": "The type of workflow you'd like to query. If not specified, all types are returned." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Monitors" ], "security": [ { "auth_token": [ "alerts:read", "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Workflow ID" }, "name": { "type": "string", "description": "Workflow name" }, "type": { "type": "string", "description": "Type of the workflow, such as alert" }, "organizationId": { "type": "string", "description": "ID of the organization the workflow belongs to" }, "createdBy": { "type": "string", "nullable": true, "description": "ID of the user who created the workflow" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the workflow was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the workflow was last updated (ISO 8601)" }, "triggers": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } }, "nullable": true, "description": "Conditions on which the workflow triggers" }, "actionFilters": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } } }, "nullable": true, "description": "Filters to run before actions fire, each with the actions to fire" }, "environment": { "type": "string", "nullable": true, "description": "Name of the environment the workflow is limited to. Null for all environments" }, "config": { "type": "object", "additionalProperties": false, "properties": { "frequency": { "description": "How often the workflow should fire for a Group (minutes)", "type": "integer", "minimum": 0 } }, "description": "Configuration of the workflow, such as frequency in minutes" }, "detectorIds": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "IDs of the monitors connected to the workflow" }, "enabled": { "type": "boolean", "description": "Whether the workflow is enabled" }, "lastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the workflow last fired (ISO 8601)" }, "owner": { "type": "string", "nullable": true, "description": "Team or user that owns the workflow, such as user:123 or team:456" } }, "required": [ "actionFilters", "config", "createdBy", "dateCreated", "dateUpdated", "detectorIds", "enabled", "environment", "id", "lastTriggered", "name", "organizationId", "owner", "triggers", "type" ] } }, "examples": { "ListAllWorkflowsInAnOrganization": { "value": [ { "id": "123", "name": "Send a notification for high priority issues", "type": "alert", "organizationId": "1", "createdBy": null, "dateCreated": "2025-03-18T20:48:55.495059Z", "dateUpdated": "2025-03-18T20:48:55.579094Z", "triggers": { "id": "12345", "organizationId": "1", "logicType": "any-short", "conditions": [ { "id": "2345", "type": "new_high_priority_issue", "comparison": true, "conditionResult": true }, { "id": "3456", "type": "existing_high_priority_issue", "comparison": true, "conditionResult": true } ], "actions": [] }, "actionFilters": [ { "id": "5678", "organizationId": "1", "logicType": "all", "conditions": [], "actions": [ { "id": "234", "type": "email", "integrationId": null, "data": { "fallthroughType": "ActiveMembers" }, "config": { "targetType": "issue_owners", "targetDisplay": null, "targetIdentifier": null }, "status": "active" } ] } ], "environment": null, "config": { "frequency": 30 }, "detectorIds": [], "enabled": true, "lastTriggered": null, "owner": "user:123456" }, { "id": "456", "name": "Notify team #example-team", "type": "alert", "organizationId": "1", "createdBy": "34567", "dateCreated": "2026-01-15T23:46:39.594915Z", "dateUpdated": "2026-01-15T23:46:39.594903Z", "triggers": { "id": "12345", "organizationId": "1", "logicType": "any-short", "conditions": [], "actions": [] }, "actionFilters": [ { "id": "6789", "organizationId": "1", "logicType": "any-short", "conditions": [ { "id": "5678", "type": "event_frequency_count", "comparison": { "value": 100, "interval": "1h" }, "conditionResult": true } ], "actions": [ { "id": "1234", "type": "email", "integrationId": null, "data": {}, "config": { "targetType": "team", "targetDisplay": null, "targetIdentifier": "1234567890" }, "status": "active" } ] } ], "environment": null, "config": { "frequency": 1440 }, "detectorIds": [], "enabled": true, "lastTriggered": null, "owner": "team:456789" }, { "id": "789", "name": "Notify Jane Doe", "type": "alert", "organizationId": "1", "createdBy": "2345", "dateCreated": "2026-01-15T23:46:39.594915Z", "dateUpdated": "2026-01-15T23:49:57.697583Z", "triggers": { "id": "56789", "organizationId": "1", "logicType": "any-short", "conditions": [], "actions": [] }, "actionFilters": [ { "id": "56789", "organizationId": "1", "logicType": "any-short", "conditions": [ { "id": "234567", "type": "event_unique_user_frequency_count", "comparison": { "value": 100, "filters": [ { "key": "foo", "match": "eq", "value": "bar" } ], "interval": "1h" }, "conditionResult": true } ], "actions": [ { "id": "456789", "type": "email", "integrationId": null, "data": {}, "config": { "targetType": "user", "targetDisplay": null, "targetIdentifier": "123456" }, "status": "active" } ] } ], "environment": null, "config": { "frequency": 1440 }, "detectorIds": [], "enabled": true, "lastTriggered": null, "owner": null } ], "summary": "List all workflows in an organization" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createOrganizationWorkflow", "description": "Creates an alert for an organization", "summary": "Create an Alert for an Organization", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true } ], "tags": [ "Monitors" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "The name of the alert", "maxLength": 256 }, "id": { "type": "string", "description": "The ID of the existing alert" }, "enabled": { "type": "boolean", "default": true, "description": "Whether the alert is enabled or disabled" }, "detectorIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the monitors to connect this alert to. Use 'Fetch an Organization's Monitors' to find the IDs." }, "config": { "type": "object", "additionalProperties": {}, "description": "\n Typically the frequency at which the alert will fire, in minutes.\n\n - `0`: 0 minutes\n - `5`: 5 minutes\n - `10`: 10 minutes\n - `30`: 30 minutes\n - `60`: 1 hour\n - `180`: 3 hours\n - `720`: 12 hours\n - `1440`: 24 hours\n\n ```json\n {\n \"frequency\": 60\n }\n ```\n " }, "environment": { "type": "string", "nullable": true, "description": "The name of the environment for the alert to evaluate in" }, "triggers": { "allOf": [ { "type": "object", "properties": { "id": { "type": "integer" }, "logicType": { "type": "string", "enum": [ "any-short" ] }, "conditions": { "type": "array", "items": { "oneOf": [ { "title": "Every Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "every_event" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "First Seen Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "first_seen_event" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Resolved Trigger Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_resolved_trigger" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Reappeared Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "reappeared_event" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Regression Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "regression_event" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Seer Activity Trigger Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "seer_activity_trigger" ] }, "comparison": { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] } ], "discriminator": { "propertyName": "type" } } } }, "required": [ "logicType" ] } ], "description": "The conditions on which the alert will trigger. See available options below.\n ```json\n {\n \"triggers\": {\n \"organizationId\": \"1\",\n \"logicType\": \"any-short\",\n \"conditions\": [\n {\n \"type\": \"first_seen_event\",\n \"comparison\": true,\n \"conditionResult\": true\n },\n {\n \"type\": \"issue_resolved_trigger\",\n \"comparison\": true,\n \"conditionResult\": true\n },\n {\n \"type\": \"reappeared_event\",\n \"comparison\": true,\n \"conditionResult\": true\n },\n {\n \"type\": \"regression_event\",\n \"comparison\": true,\n \"conditionResult\": true\n },\n {\n \"type\": \"seer_activity_trigger\",\n \"comparison\": [\n \"rca_completed\",\n \"solution_completed\",\n \"coding_completed\",\n \"pr_ready_for_review\"\n ],\n \"conditionResult\": true\n }\n ]\n }\n }\n ```\n " }, "actionFilters": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": { "oneOf": [ { "title": "Age Comparison Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "age_comparison" ] }, "comparison": { "type": "object", "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ] }, "value": { "type": "integer", "minimum": 0 }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ] } }, "required": [ "comparisonType", "value", "time" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Assigned To Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "assigned_to" ] }, "comparison": { "type": "object", "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ] }, "targetIdentifier": { "oneOf": [ { "type": "integer" }, { "type": "string" } ] } }, "required": [ "targetType" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Attribute Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_attribute" ] }, "comparison": { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Frequency Count Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_frequency_count" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Frequency Percent Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_frequency_percent" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ] }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Unique User Frequency Count Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_unique_user_frequency_count" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Unique User Frequency Percent Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_unique_user_frequency_percent" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ] }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Category Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_category" ] }, "comparison": { "type": "object", "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ] }, "include": { "type": "boolean" } }, "required": [ "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Occurrences Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_occurrences" ] }, "comparison": { "type": "object", "properties": { "value": { "type": "integer", "minimum": 0 } }, "required": [ "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Priority Deescalating Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_priority_deescalating" ] }, "comparison": { "type": "integer", "enum": [ 25, 50, 75 ] }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Priority Greater Or Equal Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_priority_greater_or_equal" ] }, "comparison": { "type": "integer", "enum": [ 25, 50, 75 ] }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Type Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_type" ] }, "comparison": { "type": "object", "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ] }, "include": { "type": "boolean" } }, "required": [ "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Latest Adopted Release Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "latest_adopted_release" ] }, "comparison": { "type": "object", "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ] }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ] }, "environment": { "type": "string" } }, "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Latest Release Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "latest_release" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Level Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "level" ] }, "comparison": { "type": "object", "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ] }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ] } }, "required": [ "level", "match" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Percent Sessions Count Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "percent_sessions_count" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ] }, "value": { "type": "number", "minimum": 0, "maximum": 100 }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Percent Sessions Percent Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "percent_sessions_percent" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ] }, "value": { "type": "number", "minimum": 0 }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ] }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Tagged Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "tagged_event" ] }, "comparison": { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] } ], "discriminator": { "propertyName": "type" } } }, "actions": { "type": "array", "items": { "oneOf": [ { "title": "Discord Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "discord" ] }, "data": { "type": "object", "description": "Schema for Discord action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Discord Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Email Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "email" ] }, "data": { "type": "object", "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for an email Action", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "The stringified Sentry User.id or Team.id. Resolve users with the organization members endpoint and teams with the organization teams endpoint. Member IDs, email addresses, team slugs, and 'me' are not accepted. Omit this field when targetType is issue_owners." }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Github Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "github" ] }, "data": { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "properties": { "repo": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true }, "assignee": { "type": "string", "nullable": true } }, "required": [ "repo" ] } }, "required": [ "additionalFields" ], "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Github_Enterprise Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "github_enterprise" ] }, "data": { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "properties": { "repo": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true }, "assignee": { "type": "string", "nullable": true } }, "required": [ "repo" ] } }, "required": [ "additionalFields" ], "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Jira Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "jira" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Jira_Server Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "jira_server" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Msteams Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "msteams" ] }, "data": { "type": "object", "description": "Schema for MSTeams action data blob", "properties": {}, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetDisplay", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Opsgenie Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "opsgenie" ] }, "data": { "type": "object", "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a on-call Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Pagerduty Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "pagerduty" ] }, "data": { "type": "object", "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a on-call Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Seer_Workflow Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "seer_workflow" ] }, "data": { "type": "object", "properties": {}, "additionalProperties": false }, "config": { "type": "object", "properties": {}, "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Sentry_App Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "sentry_app" ] }, "data": { "description": "The data schema for a Sentry App Action", "type": "object", "properties": { "settings": { "type": "array" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Sentry App Action", "type": "object", "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "sentry_app" ] } }, "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Slack Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "slack" ] }, "data": { "type": "object", "description": "Schema for Slack action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Slack_Staging Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "slack_staging" ] }, "data": { "type": "object", "description": "Schema for Slack action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Azure_Devops Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "vsts" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Webhook Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "webhook" ] }, "data": { "type": "object" }, "config": { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "nullable": true }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true } } }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] } ], "discriminator": { "propertyName": "type" } } } }, "required": [ "actions", "logicType" ] }, "description": "The filters to run before the action will fire and the action(s) to fire.\n\n `logicType` can be one of `any-short`, `all`, or `none`.\n\n Below is a basic example. See below for all other options.\n\n ```json\n \"actionFilters\": [\n {\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"level\",\n \"comparison\": {\n \"level\": 50,\n \"match\": \"eq\"\n },\n \"conditionResult\": true\n }\n ],\n \"actions\": [\n {\n \"id\": \"123\",\n \"type\": \"email\",\n \"integrationId\": null,\n \"data\": {},\n \"config\": {\n \"targetType\": \"user\",\n \"targetDisplay\": null,\n \"targetIdentifier\": \"56789\"\n },\n \"status\": \"active\"\n }\n ]\n }\n ]\n ```\n\n ## Conditions\n\n **Issue Age**\n - `time`: One of `minute`, `hour`, `day`, or `week`.\n - `value`: A positive integer.\n - `comparisonType`: One of `older` or `newer`.\n ```json\n {\n \"type\": \"age_comparison\",\n \"comparison\": {\n \"time\": \"minute\",\n \"value\": 10,\n \"comparisonType\": \"older\"\n },\n \"conditionResult\": true\n }\n\n ```\n\n **Issue Assignment**\n - `targetType`: Who the issue is assigned to\n - `Unassigned`: Unassigned\n - `Member`: Assigned to a user\n - `Team`: Assigned to a team\n - `targetIdentifier`: The ID of the user or team from the `targetType`. Enter \"\" if `targetType` is `Unassigned`.\n ```json\n {\n \"type\": \"assigned_to\",\n \"comparison\": {\n \"targetType\": \"Member\",\n \"targetIdentifier\": 123456\n },\n \"conditionResult\": true\n }\n ```\n\n **Issue Category**\n - `value`: The issue category to filter to.\n - `1`: Error issues\n - `6`: Feedback issues\n - `10`: Outage issues\n - `11`: Metric issues\n - `12`: DB Query issues\n - `13`: HTTP Client issues\n - `14`: Front end issues\n - `15`: Mobile issues\n - `17`: Preprod issues\n - `19`: Configuration issues\n ```json\n {\n \"type\": \"issue_category\",\n \"comparison\": {\n \"value\": 1\n },\n \"conditionResult\": true\n }\n ```\n\n **Issue Frequency**\n - `value`: A positive integer representing how many times the issue has to happen before the alert will fire.\n ```json\n {\n \"type\": \"issue_occurrences\",\n \"comparison\": {\n \"value\": 10\n },\n \"conditionResult\": true\n }\n ```\n\n **De-escalation**\n - `comparison`: The priority threshold the issue must de-escalate below.\n - `75`: High priority\n - `50`: Medium priority\n - `25`: Low priority\n ```json\n {\n \"type\": \"issue_priority_deescalating\",\n \"comparison\": 75,\n \"conditionResult\": true\n }\n ```\n\n **Issue Priority**\n - `comparison`: The priority the issue must be for the alert to fire.\n - `75`: High priority\n - `50`: Medium priority\n - `25`: Low priority\n ```json\n {\n \"type\": \"issue_priority_greater_or_equal\",\n \"comparison\": 75,\n \"conditionResult\": true\n }\n ```\n\n **Number of Users Affected**\n - `value`: A positive integer representing the number of users that must be affected before the alert will fire.\n - `filters`: A list of additional sub-filters to evaluate before the alert will fire.\n - `interval`: The time period in which to evaluate the value. e.g. Number of users affected by an issue is more than `value` in `interval`.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n ```json\n {\n \"type\": \"event_unique_user_frequency_count\",\n \"comparison\": {\n \"value\": 100,\n \"filters\": [{\"key\": \"foo\", \"match\": \"eq\", \"value\": \"bar\"}],\n \"interval\": \"1h\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Number of Events**\n - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire\n - `interval`: The time period in which to evaluate the value. e.g. Number of events in an issue is more than `value` in `interval`.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n ```json\n {\n \"type\": \"event_frequency_count\",\n \"comparison\": {\n \"value\": 100,\n \"interval\": \"1h\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Percent of Events**\n - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire\n - `interval`: The time period in which to evaluate the value.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n - `comparisonInterval`: The time period to compare against.\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n ```json\n {\n \"type\": \"event_frequency_percent\",\n \"comparison\": {\n \"value\": 100,\n \"interval\": \"1h\",\n \"comparisonInterval\": \"1w\"\n },\n \"conditionResult\": true\n }\n\n ```\n\n **Percentage of Sessions Affected Count**\n - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire\n - `interval`: The time period in which to evaluate the value. e.g. Percentage of sessions affected by an issue is more than `value` in `interval`.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `10m`: 10 minutes\n - `30m`: 30 minutes\n - `1h`: 1 hour\n ```json\n {\n \"type\": \"percent_sessions_count\",\n \"comparison\": {\n \"value\": 10,\n \"interval\": \"1h\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Percentage of Sessions Affected Percent**\n - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire\n - `interval`: The time period in which to evaluate the value.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `10m`: 10 minutes\n - `30m`: 30 minutes\n - `1h`: 1 hour\n - `comparisonInterval`: The time period to compare against.\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n ```json\n {\n \"type\": \"percent_sessions_percent\",\n \"comparison\": {\n \"value\": 10,\n \"interval\": \"1h\",\n \"comparisonInterval\": \"1w\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Event Attribute**\n The event's `attribute` value `match` `value`\n\n - `attribute`: The event attribute to match on. Valid values are: `message`, `platform`, `environment`, `type`, `error.handled`, `error.unhandled`, `error.main_thread`, `exception.type`, `exception.value`, `user.id`, `user.email`, `user.username`, `user.ip_address`, `http.method`, `http.url`, `http.status_code`, `sdk.name`, `stacktrace.code`, `stacktrace.module`, `stacktrace.filename`, `stacktrace.abs_path`, `stacktrace.package`, `unreal.crash_type`, `app.in_foreground`.\n - `match`: The comparison operator\n - `co`: Contains\n - `nc`: Does not contain\n - `eq`: Equals\n - `ne`: Does not equal\n - `sw`: Starts with\n - `ew`: Ends with\n - `is`: Is set\n - `ns`: Is not set\n - `value`: A string. Must be omitted when match is `is` or `ns`; required otherwise.\n\n ```json\n {\n \"type\": \"event_attribute\",\n \"comparison\": {\n \"match\": \"co\",\n \"value\": \"bar\",\n \"attribute\": \"message\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Tagged Event**\n The event's tags `key` match `value`\n - `key`: The tag value\n - `match`: The comparison operator\n - `co`: Contains\n - `nc`: Does not contain\n - `eq`: Equals\n - `ne`: Does not equal\n - `sw`: Starts with\n - `ew`: Ends with\n - `is`: Is set\n - `ns`: Is not set\n - `value`: A string. Must be omitted when match is `is` or `ns`; required otherwise.\n\n ```json\n {\n \"type\": \"tagged_event\",\n \"comparison\": {\n \"key\": \"level\",\n \"match\": \"eq\",\n \"value\": \"error\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Latest Release**\n The event is from the latest release\n\n ```json\n {\n \"type\": \"latest_release\",\n \"comparison\": true,\n \"conditionResult\": true\n }\n ```\n\n **Release Age**\n ```json\n {\n \"type\": \"latest_adopted_release\",\n \"comparison\": {\n \"environment\": \"production\",\n \"ageComparison\": \"older\",\n \"releaseAgeType\": \"oldest\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Event Level**\n The event's level is `match` `level`\n - `match`: The comparison operator\n - `eq`: Equal\n - `gte`: Greater than or equal\n - `lte`: Less than or equal\n - `level`: The event level\n - `50`: Fatal\n - `40`: Error\n - `30`: Warning\n - `20`: Info\n - `10`: Debug\n - `0`: Sample\n\n ```json\n {\n \"type\": \"level\",\n \"comparison\": {\n \"level\": 50,\n \"match\": \"eq\"\n },\n \"conditionResult\": true\n }\n ```\n\n ## Actions\n A list of actions that take place when all required conditions and filters for the alert are met. See below for a list of possible actions.\n\n\n **Notify on Preferred Channel**\n - `data`: A dictionary with the fallthrough type option when choosing to notify Suggested Assignees. Leave empty if notifying a user or team.\n - `fallthroughType`\n - `ActiveMembers`\n - `AllMembers`\n - `NoOne`\n - `config`: A dictionary with the configuration options for notification.\n - `targetType`: The type of recipient to notify\n - `user`: User\n - `team`: Team\n - `issue_owners`: Suggested Assignees\n - `targetDisplay`: null\n - `targetIdentifier`: The id of the user or team to notify. Leave null for Suggested Assignees.\n\n ```json\n {\n \"type\":\"email\",\n \"integrationId\":null,\n \"data\":{},\n \"config\":{\n \"targetType\":\"user\",\n \"targetDisplay\":null,\n \"targetIdentifier\":\"232692\"\n },\n \"status\":\"active\"\n },\n {\n \"type\":\"email\",\n \"integrationId\":null,\n \"data\":{\n \"fallthroughType\":\"ActiveMembers\"\n },\n \"config\":{\n \"targetType\":\"issue_owners\",\n \"targetDisplay\":null,\n \"targetIdentifier\":\"\"}\n ,\n \"status\":\"active\"\n }\n ```\n **Notify on Slack**\n - `targetDisplay`: The name of the channel to notify in.\n `integrationId`: The stringified ID of the integration.\n\n ```json\n {\n \"type\":\"slack\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"\",\n \"targetDisplay\":\"notify-errors\"\n },\n \"integrationId\":\"1\",\n \"data\":{},\n \"status\":\"active\"\n }\n ```\n\n **Notify on PagerDuty**\n - `targetDisplay`: The name of the service to create the ticket in.\n - `integrationId`: The stringified ID of the integration.\n - `data[\"priority\"]`: The severity level for the notification.\n\n ```json\n {\n \"type\":\"pagerduty\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"123456\",\n \"targetDisplay\":\"Error Service\"\n },\n \"integrationId\":\"2345\",\n \"data\":{\n \"priority\":\"default\"\n },\n \"status\":\"active\"\n }\n ```\n\n **Notify on Discord**\n - `targetDisplay`: The name of the service to create the ticket in.\n - `integrationId`: The stringified ID of the integration.\n - `data[\"tags\"]`: Comma separated list of tags to add to the notification.\n\n ```json\n {\n \"type\":\"discord\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"12345\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"1234\",\n \"data\":{\n \"tags\":\"transaction,environment\"\n },\n \"status\":\"active\"\n }\n ```\n\n **Notify on MSTeams**\n - `targetIdentifier` - The integration ID associated with the Microsoft Teams team.\n - `targetDisplay` - The name of the channel to send the notification to.\n - `integrationId`: The stringified ID of the integration.\n ```json\n {\n \"type\":\"msteams\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"19:a4b3kghaghgkjah357y6847@thread.skype\",\n \"targetDisplay\":\"notify-errors\"\n },\n \"integrationId\":\"1\",\n \"data\":{},\n \"status\":\"active\"\n }\n ```\n\n **Notify on OpsGenie**\n - `targetDisplay`: The name of the Opsgenie team.\n - `targetIdentifier`: The ID of the Opsgenie team to send the notification to.\n - `integrationId`: The stringified ID of the integration.\n - `data[\"priority\"]`: The priority level for the notification.\n\n ```json\n {\n \"type\":\"opsgenie\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"123456-Error-Service\",\n \"targetDisplay\":\"Error Service\"\n },\n \"integrationId\":\"2345\",\n \"data\":{\n \"priority\":\"P3\"\n },\n \"status\":\"active\"\n }\n ```\n\n **Notify on Azure DevOps**\n - `integrationId`: The stringified ID of the integration.\n - `data` - A list of any fields you want to include in the ticket as objects.\n\n ```json\n {\n \"type\":\"vsts\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"2345\",\n \"data\":{...},\n \"status\":\"active\"\n }\n ```\n\n **Create a Jira ticket**\n - `integrationId`: The stringified ID of the integration.\n - `data` - A list of any fields you want to include in the ticket as objects.\n\n ```json\n {\n \"type\":\"jira\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"2345\",\n \"data\":{...},\n \"status\":\"active\"\n }\n ```\n\n **Create a Jira Server ticket**\n - `integrationId`: The stringified ID of the integration.\n - `data` - A list of any fields you want to include in the ticket as objects.\n\n ```json\n {\n \"type\":\"jira_server\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"2345\",\n \"data\":{...},\n \"status\":\"active\"\n }\n ```\n\n **Create a GitHub issue**\n - `integrationId`: The stringified ID of the integration.\n - `data` - A list of any fields you want to include in the ticket as objects.\n\n ```json\n {\n \"type\":\"github\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"2345\",\n \"data\":{\n \"additional_fields\": {\n \"assignee\": \"\",\n \"integration\": \"2345\",\n \"labels\": [],\n \"repo\": \"example-repo\",\n },\n \"dynamic_form_fields\": [\n {\n \"choices\": [[\"YourOrg/example-repo\", \"example-repo\"]],\n \"default\": \"YourOrg/example-repo\",\n \"label\": \"GitHub Repository\",\n \"name\": \"repo\",\n \"required\": true\n \"type\": \"select\",\n \"updatesForm\": true,\n \"url\": \"/extensions/github/search/example-repo/1234567/\",\n },\n ],\n },\n \"status\":\"active\"\n }\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " } }, "required": [ "name" ] } } }, "required": true }, "security": [ { "auth_token": [ "alerts:write", "org:admin", "org:read", "org:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "Workflow ID" }, "name": { "type": "string", "description": "Workflow name" }, "type": { "type": "string", "description": "Type of the workflow, such as alert" }, "organizationId": { "type": "string", "description": "ID of the organization the workflow belongs to" }, "createdBy": { "type": "string", "nullable": true, "description": "ID of the user who created the workflow" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the workflow was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the workflow was last updated (ISO 8601)" }, "triggers": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } }, "nullable": true, "description": "Conditions on which the workflow triggers" }, "actionFilters": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } } }, "nullable": true, "description": "Filters to run before actions fire, each with the actions to fire" }, "environment": { "type": "string", "nullable": true, "description": "Name of the environment the workflow is limited to. Null for all environments" }, "config": { "type": "object", "additionalProperties": false, "properties": { "frequency": { "description": "How often the workflow should fire for a Group (minutes)", "type": "integer", "minimum": 0 } }, "description": "Configuration of the workflow, such as frequency in minutes" }, "detectorIds": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "IDs of the monitors connected to the workflow" }, "enabled": { "type": "boolean", "description": "Whether the workflow is enabled" }, "lastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the workflow last fired (ISO 8601)" }, "owner": { "type": "string", "nullable": true, "description": "Team or user that owns the workflow, such as user:123 or team:456" } }, "required": [ "actionFilters", "config", "createdBy", "dateCreated", "dateUpdated", "detectorIds", "enabled", "environment", "id", "lastTriggered", "name", "organizationId", "owner", "triggers", "type" ] }, "examples": { "WorkflowSuccessfullyCreated": { "value": { "id": "1234567", "name": "Notify Jane Doe", "type": "alert", "organizationId": "1", "createdBy": "2345", "dateCreated": "2026-01-13T21:21:15.975384Z", "dateUpdated": "2026-01-13T21:21:15.975376Z", "triggers": { "id": "456789", "organizationId": "1", "logicType": "any-short", "conditions": [ { "id": "234567", "type": "first_seen_event", "comparison": true, "conditionResult": true }, { "id": "1234567", "type": "issue_resolved_trigger", "comparison": true, "conditionResult": true }, { "id": "678912", "type": "reappeared_event", "comparison": true, "conditionResult": true }, { "id": "7891234", "type": "regression_event", "comparison": true, "conditionResult": true } ], "actions": [] }, "actionFilters": [ { "id": "45678", "organizationId": "1", "logicType": "any-short", "conditions": [ { "id": "23456789", "type": "issue_occurrences", "comparison": { "value": 10 }, "conditionResult": true } ], "actions": [ { "id": "1234789", "type": "email", "integrationId": null, "data": {}, "config": { "targetType": "user", "targetDisplay": null, "targetIdentifier": "6789" }, "status": "active" } ] } ], "environment": null, "config": { "frequency": 1440 }, "detectorIds": [ "1000" ], "enabled": true, "lastTriggered": null, "owner": "user:123456" }, "summary": "Workflow successfully created" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateOrganizationWorkflows", "description": "Bulk enable or disable alerts for a given Organization", "summary": "Mutate an Organization's Alerts", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "An optional search query for filtering alerts." }, { "in": "query", "name": "id", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "The ID of the alert you'd like to query." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" } ], "tags": [ "Monitors" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "Whether to enable or disable the alerts" } }, "required": [ "enabled" ] } } }, "required": true }, "security": [ { "auth_token": [ "alerts:write", "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Workflow ID" }, "name": { "type": "string", "description": "Workflow name" }, "type": { "type": "string", "description": "Type of the workflow, such as alert" }, "organizationId": { "type": "string", "description": "ID of the organization the workflow belongs to" }, "createdBy": { "type": "string", "nullable": true, "description": "ID of the user who created the workflow" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the workflow was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the workflow was last updated (ISO 8601)" }, "triggers": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } }, "nullable": true, "description": "Conditions on which the workflow triggers" }, "actionFilters": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } } }, "nullable": true, "description": "Filters to run before actions fire, each with the actions to fire" }, "environment": { "type": "string", "nullable": true, "description": "Name of the environment the workflow is limited to. Null for all environments" }, "config": { "type": "object", "additionalProperties": false, "properties": { "frequency": { "description": "How often the workflow should fire for a Group (minutes)", "type": "integer", "minimum": 0 } }, "description": "Configuration of the workflow, such as frequency in minutes" }, "detectorIds": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "IDs of the monitors connected to the workflow" }, "enabled": { "type": "boolean", "description": "Whether the workflow is enabled" }, "lastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the workflow last fired (ISO 8601)" }, "owner": { "type": "string", "nullable": true, "description": "Team or user that owns the workflow, such as user:123 or team:456" } }, "required": [ "actionFilters", "config", "createdBy", "dateCreated", "dateUpdated", "detectorIds", "enabled", "environment", "id", "lastTriggered", "name", "organizationId", "owner", "triggers", "type" ] } }, "examples": { "ListAllWorkflowsInAnOrganization": { "value": [ { "id": "123", "name": "Send a notification for high priority issues", "type": "alert", "organizationId": "1", "createdBy": null, "dateCreated": "2025-03-18T20:48:55.495059Z", "dateUpdated": "2025-03-18T20:48:55.579094Z", "triggers": { "id": "12345", "organizationId": "1", "logicType": "any-short", "conditions": [ { "id": "2345", "type": "new_high_priority_issue", "comparison": true, "conditionResult": true }, { "id": "3456", "type": "existing_high_priority_issue", "comparison": true, "conditionResult": true } ], "actions": [] }, "actionFilters": [ { "id": "5678", "organizationId": "1", "logicType": "all", "conditions": [], "actions": [ { "id": "234", "type": "email", "integrationId": null, "data": { "fallthroughType": "ActiveMembers" }, "config": { "targetType": "issue_owners", "targetDisplay": null, "targetIdentifier": null }, "status": "active" } ] } ], "environment": null, "config": { "frequency": 30 }, "detectorIds": [], "enabled": true, "lastTriggered": null, "owner": "user:123456" }, { "id": "456", "name": "Notify team #example-team", "type": "alert", "organizationId": "1", "createdBy": "34567", "dateCreated": "2026-01-15T23:46:39.594915Z", "dateUpdated": "2026-01-15T23:46:39.594903Z", "triggers": { "id": "12345", "organizationId": "1", "logicType": "any-short", "conditions": [], "actions": [] }, "actionFilters": [ { "id": "6789", "organizationId": "1", "logicType": "any-short", "conditions": [ { "id": "5678", "type": "event_frequency_count", "comparison": { "value": 100, "interval": "1h" }, "conditionResult": true } ], "actions": [ { "id": "1234", "type": "email", "integrationId": null, "data": {}, "config": { "targetType": "team", "targetDisplay": null, "targetIdentifier": "1234567890" }, "status": "active" } ] } ], "environment": null, "config": { "frequency": 1440 }, "detectorIds": [], "enabled": true, "lastTriggered": null, "owner": "team:456789" }, { "id": "789", "name": "Notify Jane Doe", "type": "alert", "organizationId": "1", "createdBy": "2345", "dateCreated": "2026-01-15T23:46:39.594915Z", "dateUpdated": "2026-01-15T23:49:57.697583Z", "triggers": { "id": "56789", "organizationId": "1", "logicType": "any-short", "conditions": [], "actions": [] }, "actionFilters": [ { "id": "56789", "organizationId": "1", "logicType": "any-short", "conditions": [ { "id": "234567", "type": "event_unique_user_frequency_count", "comparison": { "value": 100, "filters": [ { "key": "foo", "match": "eq", "value": "bar" } ], "interval": "1h" }, "conditionResult": true } ], "actions": [ { "id": "456789", "type": "email", "integrationId": null, "data": {}, "config": { "targetType": "user", "targetDisplay": null, "targetIdentifier": "123456" }, "status": "active" } ] } ], "environment": null, "config": { "frequency": 1440 }, "detectorIds": [], "enabled": true, "lastTriggered": null, "owner": null } ], "summary": "List all workflows in an organization" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true }, "delete": { "operationId": "deleteOrganizationWorkflows", "description": "Bulk delete alerts for a given organization", "summary": "Bulk Delete Alerts", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "An optional search query for filtering alerts." }, { "in": "query", "name": "id", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "The ID of the alert you'd like to query." }, { "in": "query", "name": "project", "schema": { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] } }, "description": "The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects.\nFor example, the following are valid parameters:\n- `/?project=1234&project=56789`\n- `/?project=android&project=javascript-react`\n- `/?project=-1`\n" } ], "tags": [ "Monitors" ], "security": [ { "auth_token": [ "alerts:write", "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "description": "Success" }, "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/workflows/{workflow_id}/": { "get": { "operationId": "getOrganizationWorkflow", "description": "Returns an alert.", "summary": "Fetch an Alert", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "workflow_id", "schema": { "type": "integer" }, "description": "The ID of the alert you'd like to query.", "required": true } ], "tags": [ "Monitors" ], "security": [ { "auth_token": [ "alerts:read", "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "Workflow ID" }, "name": { "type": "string", "description": "Workflow name" }, "type": { "type": "string", "description": "Type of the workflow, such as alert" }, "organizationId": { "type": "string", "description": "ID of the organization the workflow belongs to" }, "createdBy": { "type": "string", "nullable": true, "description": "ID of the user who created the workflow" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the workflow was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the workflow was last updated (ISO 8601)" }, "triggers": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } }, "nullable": true, "description": "Conditions on which the workflow triggers" }, "actionFilters": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } } }, "nullable": true, "description": "Filters to run before actions fire, each with the actions to fire" }, "environment": { "type": "string", "nullable": true, "description": "Name of the environment the workflow is limited to. Null for all environments" }, "config": { "type": "object", "additionalProperties": false, "properties": { "frequency": { "description": "How often the workflow should fire for a Group (minutes)", "type": "integer", "minimum": 0 } }, "description": "Configuration of the workflow, such as frequency in minutes" }, "detectorIds": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "IDs of the monitors connected to the workflow" }, "enabled": { "type": "boolean", "description": "Whether the workflow is enabled" }, "lastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the workflow last fired (ISO 8601)" }, "owner": { "type": "string", "nullable": true, "description": "Team or user that owns the workflow, such as user:123 or team:456" } }, "required": [ "actionFilters", "config", "createdBy", "dateCreated", "dateUpdated", "detectorIds", "enabled", "environment", "id", "lastTriggered", "name", "organizationId", "owner", "triggers", "type" ] }, "examples": { "FetchAnAlert": { "value": { "id": "6789123", "name": "My Alert", "type": "alert", "organizationId": "1", "createdBy": "1234567", "dateCreated": "2026-01-14T20:08:32.273220Z", "dateUpdated": "2026-01-14T20:08:32.273209Z", "triggers": { "id": "345678", "organizationId": "1", "logicType": "any-short", "conditions": [ { "id": "234", "type": "first_seen_event", "comparison": true, "conditionResult": true }, { "id": "567", "type": "issue_resolved_trigger", "comparison": true, "conditionResult": true }, { "id": "891", "type": "reappeared_event", "comparison": true, "conditionResult": true }, { "id": "789", "type": "regression_event", "comparison": true, "conditionResult": true } ], "actions": [] }, "actionFilters": [ { "id": "345678", "organizationId": "1", "logicType": "any-short", "conditions": [ { "id": "234567", "type": "issue_priority_deescalating", "comparison": 75, "conditionResult": true } ], "actions": [ { "id": "45678", "type": "slack", "integrationId": "1", "data": {}, "config": { "targetType": "specific", "targetDisplay": "@jane-doe", "targetIdentifier": "ABCDE123456" }, "status": "active" } ] } ], "environment": null, "config": { "frequency": 1440 }, "detectorIds": [ "1234567" ], "enabled": true, "lastTriggered": null, "owner": "user:123456" }, "summary": "Fetch an Alert" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateOrganizationWorkflow", "description": "Updates an alert.", "summary": "Update an Alert by ID", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "workflow_id", "schema": { "type": "integer" }, "description": "The ID of the alert you'd like to query.", "required": true } ], "tags": [ "Monitors" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "The name of the alert", "maxLength": 256 }, "id": { "type": "string", "description": "The ID of the existing alert" }, "enabled": { "type": "boolean", "default": true, "description": "Whether the alert is enabled or disabled" }, "detectorIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the monitors to connect this alert to. Use 'Fetch an Organization's Monitors' to find the IDs." }, "config": { "type": "object", "additionalProperties": {}, "description": "\n Typically the frequency at which the alert will fire, in minutes.\n\n - `0`: 0 minutes\n - `5`: 5 minutes\n - `10`: 10 minutes\n - `30`: 30 minutes\n - `60`: 1 hour\n - `180`: 3 hours\n - `720`: 12 hours\n - `1440`: 24 hours\n\n ```json\n {\n \"frequency\": 60\n }\n ```\n " }, "environment": { "type": "string", "nullable": true, "description": "The name of the environment for the alert to evaluate in" }, "triggers": { "allOf": [ { "type": "object", "properties": { "id": { "type": "integer" }, "logicType": { "type": "string", "enum": [ "any-short" ] }, "conditions": { "type": "array", "items": { "oneOf": [ { "title": "Every Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "every_event" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "First Seen Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "first_seen_event" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Resolved Trigger Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_resolved_trigger" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Reappeared Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "reappeared_event" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Regression Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "regression_event" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Seer Activity Trigger Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "seer_activity_trigger" ] }, "comparison": { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] } ], "discriminator": { "propertyName": "type" } } } }, "required": [ "logicType" ] } ], "description": "The conditions on which the alert will trigger. See available options below.\n ```json\n {\n \"triggers\": {\n \"organizationId\": \"1\",\n \"logicType\": \"any-short\",\n \"conditions\": [\n {\n \"type\": \"first_seen_event\",\n \"comparison\": true,\n \"conditionResult\": true\n },\n {\n \"type\": \"issue_resolved_trigger\",\n \"comparison\": true,\n \"conditionResult\": true\n },\n {\n \"type\": \"reappeared_event\",\n \"comparison\": true,\n \"conditionResult\": true\n },\n {\n \"type\": \"regression_event\",\n \"comparison\": true,\n \"conditionResult\": true\n },\n {\n \"type\": \"seer_activity_trigger\",\n \"comparison\": [\n \"rca_completed\",\n \"solution_completed\",\n \"coding_completed\",\n \"pr_ready_for_review\"\n ],\n \"conditionResult\": true\n }\n ]\n }\n }\n ```\n " }, "actionFilters": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": { "oneOf": [ { "title": "Age Comparison Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "age_comparison" ] }, "comparison": { "type": "object", "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ] }, "value": { "type": "integer", "minimum": 0 }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ] } }, "required": [ "comparisonType", "value", "time" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Assigned To Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "assigned_to" ] }, "comparison": { "type": "object", "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ] }, "targetIdentifier": { "oneOf": [ { "type": "integer" }, { "type": "string" } ] } }, "required": [ "targetType" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Attribute Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_attribute" ] }, "comparison": { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Frequency Count Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_frequency_count" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Frequency Percent Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_frequency_percent" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ] }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Unique User Frequency Count Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_unique_user_frequency_count" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Unique User Frequency Percent Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_unique_user_frequency_percent" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ] }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Category Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_category" ] }, "comparison": { "type": "object", "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ] }, "include": { "type": "boolean" } }, "required": [ "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Occurrences Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_occurrences" ] }, "comparison": { "type": "object", "properties": { "value": { "type": "integer", "minimum": 0 } }, "required": [ "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Priority Deescalating Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_priority_deescalating" ] }, "comparison": { "type": "integer", "enum": [ 25, 50, 75 ] }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Priority Greater Or Equal Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_priority_greater_or_equal" ] }, "comparison": { "type": "integer", "enum": [ 25, 50, 75 ] }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Type Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_type" ] }, "comparison": { "type": "object", "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ] }, "include": { "type": "boolean" } }, "required": [ "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Latest Adopted Release Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "latest_adopted_release" ] }, "comparison": { "type": "object", "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ] }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ] }, "environment": { "type": "string" } }, "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Latest Release Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "latest_release" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Level Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "level" ] }, "comparison": { "type": "object", "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ] }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ] } }, "required": [ "level", "match" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Percent Sessions Count Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "percent_sessions_count" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ] }, "value": { "type": "number", "minimum": 0, "maximum": 100 }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Percent Sessions Percent Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "percent_sessions_percent" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ] }, "value": { "type": "number", "minimum": 0 }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ] }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Tagged Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "tagged_event" ] }, "comparison": { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] } ], "discriminator": { "propertyName": "type" } } }, "actions": { "type": "array", "items": { "oneOf": [ { "title": "Discord Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "discord" ] }, "data": { "type": "object", "description": "Schema for Discord action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Discord Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Email Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "email" ] }, "data": { "type": "object", "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for an email Action", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "The stringified Sentry User.id or Team.id. Resolve users with the organization members endpoint and teams with the organization teams endpoint. Member IDs, email addresses, team slugs, and 'me' are not accepted. Omit this field when targetType is issue_owners." }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Github Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "github" ] }, "data": { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "properties": { "repo": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true }, "assignee": { "type": "string", "nullable": true } }, "required": [ "repo" ] } }, "required": [ "additionalFields" ], "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Github_Enterprise Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "github_enterprise" ] }, "data": { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "properties": { "repo": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true }, "assignee": { "type": "string", "nullable": true } }, "required": [ "repo" ] } }, "required": [ "additionalFields" ], "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Jira Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "jira" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Jira_Server Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "jira_server" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Msteams Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "msteams" ] }, "data": { "type": "object", "description": "Schema for MSTeams action data blob", "properties": {}, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetDisplay", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Opsgenie Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "opsgenie" ] }, "data": { "type": "object", "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a on-call Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Pagerduty Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "pagerduty" ] }, "data": { "type": "object", "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a on-call Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Seer_Workflow Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "seer_workflow" ] }, "data": { "type": "object", "properties": {}, "additionalProperties": false }, "config": { "type": "object", "properties": {}, "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Sentry_App Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "sentry_app" ] }, "data": { "description": "The data schema for a Sentry App Action", "type": "object", "properties": { "settings": { "type": "array" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Sentry App Action", "type": "object", "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "sentry_app" ] } }, "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Slack Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "slack" ] }, "data": { "type": "object", "description": "Schema for Slack action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Slack_Staging Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "slack_staging" ] }, "data": { "type": "object", "description": "Schema for Slack action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Azure_Devops Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "vsts" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Webhook Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "webhook" ] }, "data": { "type": "object" }, "config": { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "nullable": true }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true } } }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] } ], "discriminator": { "propertyName": "type" } } } }, "required": [ "actions", "logicType" ] }, "description": "The filters to run before the action will fire and the action(s) to fire.\n\n `logicType` can be one of `any-short`, `all`, or `none`.\n\n Below is a basic example. See below for all other options.\n\n ```json\n \"actionFilters\": [\n {\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"level\",\n \"comparison\": {\n \"level\": 50,\n \"match\": \"eq\"\n },\n \"conditionResult\": true\n }\n ],\n \"actions\": [\n {\n \"id\": \"123\",\n \"type\": \"email\",\n \"integrationId\": null,\n \"data\": {},\n \"config\": {\n \"targetType\": \"user\",\n \"targetDisplay\": null,\n \"targetIdentifier\": \"56789\"\n },\n \"status\": \"active\"\n }\n ]\n }\n ]\n ```\n\n ## Conditions\n\n **Issue Age**\n - `time`: One of `minute`, `hour`, `day`, or `week`.\n - `value`: A positive integer.\n - `comparisonType`: One of `older` or `newer`.\n ```json\n {\n \"type\": \"age_comparison\",\n \"comparison\": {\n \"time\": \"minute\",\n \"value\": 10,\n \"comparisonType\": \"older\"\n },\n \"conditionResult\": true\n }\n\n ```\n\n **Issue Assignment**\n - `targetType`: Who the issue is assigned to\n - `Unassigned`: Unassigned\n - `Member`: Assigned to a user\n - `Team`: Assigned to a team\n - `targetIdentifier`: The ID of the user or team from the `targetType`. Enter \"\" if `targetType` is `Unassigned`.\n ```json\n {\n \"type\": \"assigned_to\",\n \"comparison\": {\n \"targetType\": \"Member\",\n \"targetIdentifier\": 123456\n },\n \"conditionResult\": true\n }\n ```\n\n **Issue Category**\n - `value`: The issue category to filter to.\n - `1`: Error issues\n - `6`: Feedback issues\n - `10`: Outage issues\n - `11`: Metric issues\n - `12`: DB Query issues\n - `13`: HTTP Client issues\n - `14`: Front end issues\n - `15`: Mobile issues\n - `17`: Preprod issues\n - `19`: Configuration issues\n ```json\n {\n \"type\": \"issue_category\",\n \"comparison\": {\n \"value\": 1\n },\n \"conditionResult\": true\n }\n ```\n\n **Issue Frequency**\n - `value`: A positive integer representing how many times the issue has to happen before the alert will fire.\n ```json\n {\n \"type\": \"issue_occurrences\",\n \"comparison\": {\n \"value\": 10\n },\n \"conditionResult\": true\n }\n ```\n\n **De-escalation**\n - `comparison`: The priority threshold the issue must de-escalate below.\n - `75`: High priority\n - `50`: Medium priority\n - `25`: Low priority\n ```json\n {\n \"type\": \"issue_priority_deescalating\",\n \"comparison\": 75,\n \"conditionResult\": true\n }\n ```\n\n **Issue Priority**\n - `comparison`: The priority the issue must be for the alert to fire.\n - `75`: High priority\n - `50`: Medium priority\n - `25`: Low priority\n ```json\n {\n \"type\": \"issue_priority_greater_or_equal\",\n \"comparison\": 75,\n \"conditionResult\": true\n }\n ```\n\n **Number of Users Affected**\n - `value`: A positive integer representing the number of users that must be affected before the alert will fire.\n - `filters`: A list of additional sub-filters to evaluate before the alert will fire.\n - `interval`: The time period in which to evaluate the value. e.g. Number of users affected by an issue is more than `value` in `interval`.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n ```json\n {\n \"type\": \"event_unique_user_frequency_count\",\n \"comparison\": {\n \"value\": 100,\n \"filters\": [{\"key\": \"foo\", \"match\": \"eq\", \"value\": \"bar\"}],\n \"interval\": \"1h\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Number of Events**\n - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire\n - `interval`: The time period in which to evaluate the value. e.g. Number of events in an issue is more than `value` in `interval`.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n ```json\n {\n \"type\": \"event_frequency_count\",\n \"comparison\": {\n \"value\": 100,\n \"interval\": \"1h\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Percent of Events**\n - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire\n - `interval`: The time period in which to evaluate the value.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n - `comparisonInterval`: The time period to compare against.\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n ```json\n {\n \"type\": \"event_frequency_percent\",\n \"comparison\": {\n \"value\": 100,\n \"interval\": \"1h\",\n \"comparisonInterval\": \"1w\"\n },\n \"conditionResult\": true\n }\n\n ```\n\n **Percentage of Sessions Affected Count**\n - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire\n - `interval`: The time period in which to evaluate the value. e.g. Percentage of sessions affected by an issue is more than `value` in `interval`.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `10m`: 10 minutes\n - `30m`: 30 minutes\n - `1h`: 1 hour\n ```json\n {\n \"type\": \"percent_sessions_count\",\n \"comparison\": {\n \"value\": 10,\n \"interval\": \"1h\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Percentage of Sessions Affected Percent**\n - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire\n - `interval`: The time period in which to evaluate the value.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `10m`: 10 minutes\n - `30m`: 30 minutes\n - `1h`: 1 hour\n - `comparisonInterval`: The time period to compare against.\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n ```json\n {\n \"type\": \"percent_sessions_percent\",\n \"comparison\": {\n \"value\": 10,\n \"interval\": \"1h\",\n \"comparisonInterval\": \"1w\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Event Attribute**\n The event's `attribute` value `match` `value`\n\n - `attribute`: The event attribute to match on. Valid values are: `message`, `platform`, `environment`, `type`, `error.handled`, `error.unhandled`, `error.main_thread`, `exception.type`, `exception.value`, `user.id`, `user.email`, `user.username`, `user.ip_address`, `http.method`, `http.url`, `http.status_code`, `sdk.name`, `stacktrace.code`, `stacktrace.module`, `stacktrace.filename`, `stacktrace.abs_path`, `stacktrace.package`, `unreal.crash_type`, `app.in_foreground`.\n - `match`: The comparison operator\n - `co`: Contains\n - `nc`: Does not contain\n - `eq`: Equals\n - `ne`: Does not equal\n - `sw`: Starts with\n - `ew`: Ends with\n - `is`: Is set\n - `ns`: Is not set\n - `value`: A string. Must be omitted when match is `is` or `ns`; required otherwise.\n\n ```json\n {\n \"type\": \"event_attribute\",\n \"comparison\": {\n \"match\": \"co\",\n \"value\": \"bar\",\n \"attribute\": \"message\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Tagged Event**\n The event's tags `key` match `value`\n - `key`: The tag value\n - `match`: The comparison operator\n - `co`: Contains\n - `nc`: Does not contain\n - `eq`: Equals\n - `ne`: Does not equal\n - `sw`: Starts with\n - `ew`: Ends with\n - `is`: Is set\n - `ns`: Is not set\n - `value`: A string. Must be omitted when match is `is` or `ns`; required otherwise.\n\n ```json\n {\n \"type\": \"tagged_event\",\n \"comparison\": {\n \"key\": \"level\",\n \"match\": \"eq\",\n \"value\": \"error\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Latest Release**\n The event is from the latest release\n\n ```json\n {\n \"type\": \"latest_release\",\n \"comparison\": true,\n \"conditionResult\": true\n }\n ```\n\n **Release Age**\n ```json\n {\n \"type\": \"latest_adopted_release\",\n \"comparison\": {\n \"environment\": \"production\",\n \"ageComparison\": \"older\",\n \"releaseAgeType\": \"oldest\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Event Level**\n The event's level is `match` `level`\n - `match`: The comparison operator\n - `eq`: Equal\n - `gte`: Greater than or equal\n - `lte`: Less than or equal\n - `level`: The event level\n - `50`: Fatal\n - `40`: Error\n - `30`: Warning\n - `20`: Info\n - `10`: Debug\n - `0`: Sample\n\n ```json\n {\n \"type\": \"level\",\n \"comparison\": {\n \"level\": 50,\n \"match\": \"eq\"\n },\n \"conditionResult\": true\n }\n ```\n\n ## Actions\n A list of actions that take place when all required conditions and filters for the alert are met. See below for a list of possible actions.\n\n\n **Notify on Preferred Channel**\n - `data`: A dictionary with the fallthrough type option when choosing to notify Suggested Assignees. Leave empty if notifying a user or team.\n - `fallthroughType`\n - `ActiveMembers`\n - `AllMembers`\n - `NoOne`\n - `config`: A dictionary with the configuration options for notification.\n - `targetType`: The type of recipient to notify\n - `user`: User\n - `team`: Team\n - `issue_owners`: Suggested Assignees\n - `targetDisplay`: null\n - `targetIdentifier`: The id of the user or team to notify. Leave null for Suggested Assignees.\n\n ```json\n {\n \"type\":\"email\",\n \"integrationId\":null,\n \"data\":{},\n \"config\":{\n \"targetType\":\"user\",\n \"targetDisplay\":null,\n \"targetIdentifier\":\"232692\"\n },\n \"status\":\"active\"\n },\n {\n \"type\":\"email\",\n \"integrationId\":null,\n \"data\":{\n \"fallthroughType\":\"ActiveMembers\"\n },\n \"config\":{\n \"targetType\":\"issue_owners\",\n \"targetDisplay\":null,\n \"targetIdentifier\":\"\"}\n ,\n \"status\":\"active\"\n }\n ```\n **Notify on Slack**\n - `targetDisplay`: The name of the channel to notify in.\n `integrationId`: The stringified ID of the integration.\n\n ```json\n {\n \"type\":\"slack\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"\",\n \"targetDisplay\":\"notify-errors\"\n },\n \"integrationId\":\"1\",\n \"data\":{},\n \"status\":\"active\"\n }\n ```\n\n **Notify on PagerDuty**\n - `targetDisplay`: The name of the service to create the ticket in.\n - `integrationId`: The stringified ID of the integration.\n - `data[\"priority\"]`: The severity level for the notification.\n\n ```json\n {\n \"type\":\"pagerduty\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"123456\",\n \"targetDisplay\":\"Error Service\"\n },\n \"integrationId\":\"2345\",\n \"data\":{\n \"priority\":\"default\"\n },\n \"status\":\"active\"\n }\n ```\n\n **Notify on Discord**\n - `targetDisplay`: The name of the service to create the ticket in.\n - `integrationId`: The stringified ID of the integration.\n - `data[\"tags\"]`: Comma separated list of tags to add to the notification.\n\n ```json\n {\n \"type\":\"discord\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"12345\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"1234\",\n \"data\":{\n \"tags\":\"transaction,environment\"\n },\n \"status\":\"active\"\n }\n ```\n\n **Notify on MSTeams**\n - `targetIdentifier` - The integration ID associated with the Microsoft Teams team.\n - `targetDisplay` - The name of the channel to send the notification to.\n - `integrationId`: The stringified ID of the integration.\n ```json\n {\n \"type\":\"msteams\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"19:a4b3kghaghgkjah357y6847@thread.skype\",\n \"targetDisplay\":\"notify-errors\"\n },\n \"integrationId\":\"1\",\n \"data\":{},\n \"status\":\"active\"\n }\n ```\n\n **Notify on OpsGenie**\n - `targetDisplay`: The name of the Opsgenie team.\n - `targetIdentifier`: The ID of the Opsgenie team to send the notification to.\n - `integrationId`: The stringified ID of the integration.\n - `data[\"priority\"]`: The priority level for the notification.\n\n ```json\n {\n \"type\":\"opsgenie\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"123456-Error-Service\",\n \"targetDisplay\":\"Error Service\"\n },\n \"integrationId\":\"2345\",\n \"data\":{\n \"priority\":\"P3\"\n },\n \"status\":\"active\"\n }\n ```\n\n **Notify on Azure DevOps**\n - `integrationId`: The stringified ID of the integration.\n - `data` - A list of any fields you want to include in the ticket as objects.\n\n ```json\n {\n \"type\":\"vsts\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"2345\",\n \"data\":{...},\n \"status\":\"active\"\n }\n ```\n\n **Create a Jira ticket**\n - `integrationId`: The stringified ID of the integration.\n - `data` - A list of any fields you want to include in the ticket as objects.\n\n ```json\n {\n \"type\":\"jira\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"2345\",\n \"data\":{...},\n \"status\":\"active\"\n }\n ```\n\n **Create a Jira Server ticket**\n - `integrationId`: The stringified ID of the integration.\n - `data` - A list of any fields you want to include in the ticket as objects.\n\n ```json\n {\n \"type\":\"jira_server\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"2345\",\n \"data\":{...},\n \"status\":\"active\"\n }\n ```\n\n **Create a GitHub issue**\n - `integrationId`: The stringified ID of the integration.\n - `data` - A list of any fields you want to include in the ticket as objects.\n\n ```json\n {\n \"type\":\"github\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"2345\",\n \"data\":{\n \"additional_fields\": {\n \"assignee\": \"\",\n \"integration\": \"2345\",\n \"labels\": [],\n \"repo\": \"example-repo\",\n },\n \"dynamic_form_fields\": [\n {\n \"choices\": [[\"YourOrg/example-repo\", \"example-repo\"]],\n \"default\": \"YourOrg/example-repo\",\n \"label\": \"GitHub Repository\",\n \"name\": \"repo\",\n \"required\": true\n \"type\": \"select\",\n \"updatesForm\": true,\n \"url\": \"/extensions/github/search/example-repo/1234567/\",\n },\n ],\n },\n \"status\":\"active\"\n }\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " } }, "required": [ "name" ] } } }, "required": true }, "security": [ { "auth_token": [ "alerts:write", "org:admin", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "Workflow ID" }, "name": { "type": "string", "description": "Workflow name" }, "type": { "type": "string", "description": "Type of the workflow, such as alert" }, "organizationId": { "type": "string", "description": "ID of the organization the workflow belongs to" }, "createdBy": { "type": "string", "nullable": true, "description": "ID of the user who created the workflow" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the workflow was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the workflow was last updated (ISO 8601)" }, "triggers": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } }, "nullable": true, "description": "Conditions on which the workflow triggers" }, "actionFilters": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } } }, "nullable": true, "description": "Filters to run before actions fire, each with the actions to fire" }, "environment": { "type": "string", "nullable": true, "description": "Name of the environment the workflow is limited to. Null for all environments" }, "config": { "type": "object", "additionalProperties": false, "properties": { "frequency": { "description": "How often the workflow should fire for a Group (minutes)", "type": "integer", "minimum": 0 } }, "description": "Configuration of the workflow, such as frequency in minutes" }, "detectorIds": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "IDs of the monitors connected to the workflow" }, "enabled": { "type": "boolean", "description": "Whether the workflow is enabled" }, "lastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the workflow last fired (ISO 8601)" }, "owner": { "type": "string", "nullable": true, "description": "Team or user that owns the workflow, such as user:123 or team:456" } }, "required": [ "actionFilters", "config", "createdBy", "dateCreated", "dateUpdated", "detectorIds", "enabled", "environment", "id", "lastTriggered", "name", "organizationId", "owner", "triggers", "type" ] }, "examples": { "UpdateAnAlert": { "value": { "id": "1234567", "name": "My Updated Alert", "type": "alert", "organizationId": "1", "createdBy": "23456", "dateCreated": "2026-01-14T20:08:32.273220Z", "dateUpdated": "2026-01-14T21:59:45.609912Z", "triggers": { "id": "12345", "organizationId": "1", "logicType": "any-short", "conditions": [ { "id": "1234", "type": "first_seen_event", "comparison": true, "conditionResult": true }, { "id": "2345", "type": "issue_resolved_trigger", "comparison": true, "conditionResult": true }, { "id": "3456", "type": "reappeared_event", "comparison": true, "conditionResult": true }, { "id": "4567", "type": "regression_event", "comparison": true, "conditionResult": true } ], "actions": [] }, "actionFilters": [ { "id": "1234567", "organizationId": "1", "logicType": "any-short", "conditions": [ { "id": "345678", "type": "issue_priority_deescalating", "comparison": 75, "conditionResult": true } ], "actions": [ { "id": "56789", "type": "slack", "integrationId": "1", "data": {}, "config": { "targetType": "specific", "targetDisplay": "@jane-doe", "targetIdentifier": "ABCDE123456" }, "status": "active" } ] } ], "environment": null, "config": { "frequency": 1440 }, "detectorIds": [ "12345678" ], "enabled": true, "lastTriggered": null, "owner": "user:123456" }, "summary": "Update an Alert" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteOrganizationWorkflow", "description": "Deletes an alert.", "summary": "Delete an Alert", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "workflow_id", "schema": { "type": "integer" }, "description": "The ID of the alert you'd like to query.", "required": true } ], "tags": [ "Monitors" ], "security": [ { "auth_token": [ "alerts:write", "org:admin", "org:read", "org:write" ] } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/": { "get": { "operationId": "getProject", "description": "Return details on an individual project.", "summary": "Retrieve a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" }, "latestRelease": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ], "nullable": true, "description": "Latest release of the project" }, "options": { "type": "object", "additionalProperties": {}, "description": "Additional project settings keyed by option name, such as inbound filters and preprod settings" }, "digestsMinDelay": { "type": "integer", "description": "Minimum time in seconds to wait before sending an issue digest email" }, "digestsMaxDelay": { "type": "integer", "description": "Maximum time in seconds to wait before sending an issue digest email" }, "subjectPrefix": { "type": "string", "description": "Custom prefix for emails from this project" }, "allowedDomains": { "type": "array", "items": { "type": "string" }, "description": "Origins permitted to send events to this project. `*` allows any" }, "resolveAge": { "type": "integer", "description": "Hours after which an issue that hasn't been seen is automatically resolved. 0 disables auto-resolve" }, "dataScrubber": { "type": "boolean", "description": "Whether known sensitive values are removed from events before they are stored" }, "dataScrubberDefaults": { "type": "boolean", "description": "Whether Sentry's built-in list of sensitive field names is also scrubbed" }, "safeFields": { "type": "array", "items": { "type": "string" }, "description": "Field names exempt from scrubbing" }, "storeCrashReports": { "type": "integer", "nullable": true, "description": "Number of native crash report files stored per issue. -1 means unlimited, 0 stores none, and null inherits the organization setting" }, "sensitiveFields": { "type": "array", "items": { "type": "string" }, "description": "Additional field names scrubbed from events, beyond the defaults" }, "subjectTemplate": { "type": "string", "description": "Email subject used for individual alerts, excluding the prefix" }, "securityToken": { "type": "string", "description": "Token sent with security reports (CSP, Expect-CT, HPKP) so Sentry can verify their origin" }, "securityTokenHeader": { "type": "string", "nullable": true, "description": "Name of the header carrying the security token on inbound security reports" }, "verifySSL": { "type": "boolean", "description": "Whether SSL certificates are verified when delivering outbound webhooks and service hooks" }, "scrubIPAddresses": { "type": "boolean", "description": "Whether client IP addresses are discarded rather than stored on events" }, "scrapeJavaScript": { "type": "boolean", "description": "Whether Sentry may fetch source files and source maps from your servers" }, "enableAutoReleaseCreation": { "type": "boolean", "description": "Whether releases are created automatically from ingested events" }, "highlightTags": { "type": "array", "items": { "type": "string" }, "description": "Tag keys highlighted on the project's issues" }, "highlightContext": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "description": "Context keys highlighted on the project's issues, as a mapping of context types to lists of keys" }, "highlightPreset": { "type": "object", "properties": { "tags": { "type": "array", "items": { "type": "string" }, "description": "Tag keys to highlight by default" }, "context": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "description": "Context keys to highlight by default, by context name" } }, "required": [ "context", "tags" ], "description": "Default highlighted tags and context for the project's platform" }, "groupingConfig": { "type": "string", "description": "Identifier of the grouping algorithm used to assign events to issues" }, "derivedGroupingEnhancements": { "type": "string", "description": "Stack trace rules that Sentry derives from the project's code mappings, as a newline-delimited config string" }, "groupingEnhancements": { "type": "string", "description": "Grouping enhancement rules, as a newline-delimited config string, adjusting which stack frames contribute to an issue" }, "secondaryGroupingExpiry": { "type": "integer", "description": "Unix timestamp after which the secondary grouping algorithm stops running" }, "secondaryGroupingConfig": { "type": "string", "nullable": true, "description": "Grouping algorithm run alongside the primary one during a grouping migration" }, "fingerprintingRules": { "type": "string", "description": "Fingerprinting rules, as a newline-delimited config string, controlling how events are grouped into issues" }, "organization": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ], "description": "Organization that owns the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms seen in the project's events" }, "processingIssues": { "type": "integer", "description": "Always 0" }, "defaultEnvironment": { "type": "string", "nullable": true, "description": "Environment selected by default when viewing this project" }, "relayPiiConfig": { "type": "string", "nullable": true, "description": "Advanced data scrubbing rules, as a JSON string, applied before events are stored" }, "builtinSymbolSources": { "type": "array", "items": { "type": "string" }, "description": "Identifiers of Sentry-hosted symbol sources used when symbolicating events" }, "enableNativeSourceServerMapping": { "type": "boolean", "description": "Whether source server (srcsrv) information from native debug files is applied to symbolicated frames" }, "dynamicSamplingBiases": { "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" } ] } }, "nullable": true, "description": "Per-bias toggles adjusting which transactions dynamic sampling favors retaining" }, "symbolSources": { "type": "string", "description": "Custom symbol sources as a JSON string, with secrets redacted" }, "isDynamicallySampled": { "type": "boolean", "description": "Whether dynamic sampling retains less than 100% of the project's transactions" }, "tempestFetchScreenshots": { "type": "boolean", "description": "Whether screenshots attached to console crash reports are fetched. Only included when the organization has Tempest access" }, "autofixAutomationTuning": { "type": "string", "description": "How aggressively Seer runs Autofix on new issues" }, "seerScannerAutomation": { "type": "boolean", "description": "Whether Seer scans new issues automatically" }, "seerNightshiftTweaks": { "description": "Experimental Seer settings with no stable shape" }, "scmSourceContextEnabled": { "type": "boolean", "description": "Whether source context is fetched on demand from SCM integrations for stack traces" }, "debugFilesRole": { "type": "string", "nullable": true, "description": "Role required to download debug information files, ProGuard mappings and source maps. Null inherits the organization setting" } }, "required": [ "access", "allowedDomains", "avatar", "builtinSymbolSources", "color", "dataScrubber", "dataScrubberDefaults", "dateCreated", "defaultEnvironment", "derivedGroupingEnhancements", "digestsMaxDelay", "digestsMinDelay", "dynamicSamplingBiases", "enableAutoReleaseCreation", "enableNativeSourceServerMapping", "features", "fingerprintingRules", "firstEvent", "firstTransactionEvent", "groupingConfig", "groupingEnhancements", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "highlightContext", "highlightPreset", "highlightTags", "id", "isBookmarked", "isDynamicallySampled", "isInternal", "isMember", "isPublic", "latestRelease", "name", "options", "organization", "platform", "platforms", "processingIssues", "relayPiiConfig", "resolveAge", "safeFields", "scrapeJavaScript", "scrubIPAddresses", "secondaryGroupingConfig", "secondaryGroupingExpiry", "securityToken", "securityTokenHeader", "sensitiveFields", "slug", "status", "storeCrashReports", "subjectPrefix", "subjectTemplate", "symbolSources", "teams", "verifySSL" ] }, "examples": { "GetDetailedViewAboutAProject": { "value": { "id": "4505278496", "slug": "pump-station", "name": "Pump Station", "platform": "python", "dateCreated": "2021-01-14T22:08:52.711809Z", "isBookmarked": false, "isMember": true, "features": [ "custom-inbound-filters", "discard-groups", "minidump", "rate-limits", "servicehooks", "similarity-indexing", "similarity-indexing-v2", "similarity-view", "similarity-view-v2" ], "firstEvent": "2021-01-14T22:08:52.711809Z", "firstTransactionEvent": true, "access": [ "member:read", "event:read", "project:admin", "team:write", "project:write", "team:admin", "project:read", "org:integrations", "org:read", "project:releases", "team:read", "alerts:write", "event:admin", "event:write", "alerts:read" ], "hasAccess": true, "hasMinifiedStackTrace": false, "hasFeedbacks": false, "hasMonitors": false, "hasNewFeedbacks": false, "hasProfiles": false, "hasReplays": false, "hasFlags": false, "hasSessions": false, "hasInsightsHttp": true, "hasInsightsDb": false, "hasInsightsAssets": true, "hasInsightsAppStart": false, "hasInsightsScreenLoad": false, "hasInsightsVitals": false, "hasInsightsCaches": false, "hasInsightsQueues": false, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "isInternal": false, "isPublic": false, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "color": "#3f70bf", "status": "active", "team": { "id": "2", "name": "Powerful Abolitionist", "slug": "powerful-abolitionist" }, "teams": [ { "id": "2", "name": "Powerful Abolitionist", "slug": "powerful-abolitionist" } ], "latestRelease": { "version": "backend@3e90a5d9e767ebcfa70e921d7a7ff6c037461168" }, "options": { "sentry:transaction_name_cluster_rules": [], "digests:mail:maximum_delay": 600, "sentry:scrub_defaults": false, "sentry:scrape_javascript": true, "mail:subject_prefix": "", "sentry:relay_pii_config": null, "sentry:scrub_data": false, "sentry:token": "e84c8c0fb1c121e988558785885f9cde", "sentry:resolve_age": 168, "sentry:grouping_config": "newstyle:2012-12-31", "quotas:spike-protection-disabled": false, "sentry:store_crash_reports": 5, "digests:mail:minimum_delay": 180, "sentry:secondary_grouping_config": "newstyle:2012-11-21", "sentry:secondary_grouping_expiry": 147555024, "sentry:builtin_symbol_sources": [ "ios", "android", "chromium" ], "sentry:origins": [ "getsentry.com", "app.getsentry.com", "www.getsentry.com", "sentry.io" ], "sentry:sensitive_fields": [ "sudo" ], "sentry:scrub_ip_address": false, "sentry:default_environment": "prod", "sentry:verify_ssl": true, "sentry:csp_ignored_sources_defaults": true, "sentry:csp_ignored_sources": "", "filters:blacklisted_ips": "", "filters:react-hydration-errors": true, "filters:chunk-load-error": true, "filters:releases": "", "filters:error_messages": "", "feedback:branding": true }, "digestsMinDelay": 180, "digestsMaxDelay": 600, "subjectPrefix": "", "allowedDomains": [ "getsentry.com", "app.getsentry.com", "www.getsentry.com", "sentry.io" ], "resolveAge": 168, "dataScrubber": false, "dataScrubberDefaults": false, "safeFields": [], "storeCrashReports": 5, "sensitiveFields": [ "sudo" ], "subjectTemplate": "$shortID - $title", "securityToken": "e84c8c0fb1c121e988558785885f9cde", "securityTokenHeader": null, "verifySSL": true, "scrubIPAddresses": false, "scrapeJavaScript": true, "groupingConfig": "newstyle:2012-12-31", "groupingEnhancements": "", "derivedGroupingEnhancements": "", "secondaryGroupingExpiry": 1687010243, "secondaryGroupingConfig": "newstyle:2012-11-21", "fingerprintingRules": "", "organization": { "id": "1", "slug": "sentry", "status": { "id": "active", "name": "active" }, "name": "Sentry", "dateCreated": "2014-12-15T04:06:24.263571Z", "isEarlyAdopter": true, "allowMemberInvite": true, "allowMemberProjectCreation": true, "allowSuperuserAccess": false, "require2FA": false, "avatar": { "avatarType": "upload", "avatarUuid": "24f6f762f7a7473888b259c566da5adb" }, "features": [ "discover-basic", "incidents", "uptime", "monitors" ], "links": { "organizationUrl": "https://sentry.sentry.io", "regionUrl": "https://us.sentry.io" }, "hasAuthProvider": true }, "platforms": [ "native", "other", "python" ], "processingIssues": 0, "defaultEnvironment": "prod", "relayPiiConfig": null, "builtinSymbolSources": [ "ios", "android", "chromium" ], "enableNativeSourceServerMapping": false, "dynamicSamplingBiases": [ { "id": "boostEnvironments", "active": true }, { "id": "boostLatestRelease", "active": true }, { "id": "ignoreHealthChecks", "active": true }, { "id": "boostKeyTransactions", "active": true }, { "id": "boostLowVolumeTransactions", "active": true }, { "id": "boostReplayId", "active": true }, { "id": "recalibrationRule", "active": true } ], "symbolSources": "[]", "tempestFetchScreenshots": false, "debugFilesRole": null, "isDynamicallySampled": true, "enableAutoReleaseCreation": true, "autofixAutomationTuning": "off", "seerScannerAutomation": true, "seerNightshiftTweaks": null, "highlightTags": [], "highlightContext": {}, "highlightPreset": { "tags": [], "context": {} }, "scmSourceContextEnabled": false }, "summary": "Get detailed view about a Project" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateProject", "description": "Update various attributes and configurable settings for the given project.\n\nNote that solely having the **`project:read`** scope restricts updatable settings to\n`isBookmarked`, `autofixAutomationTuning`, `seerScannerAutomation`,\n`preprodSizeStatusChecksEnabled`, `preprodSizeStatusChecksRules`,\n`preprodSizePrCommentsEnabled`, `preprodSizePrCommentsRules`,\n`preprodSizeEnabledQuery`, `preprodDistributionEnabledQuery`,\n`preprodSizeEnabledByCustomer`, `preprodDistributionEnabledByCustomer`,\nand `preprodDistributionPrCommentsEnabledByCustomer`.", "summary": "Update a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "digestsMinDelay": { "type": "integer", "maximum": 3600, "minimum": 60, "description": "Minimum time in seconds to wait before sending an issue digest email." }, "digestsMaxDelay": { "type": "integer", "maximum": 3600, "minimum": 60, "description": "Maximum time in seconds to wait before sending an issue digest email." }, "securityToken": { "type": "string", "description": "Token sent with security reports (CSP, Expect-CT, HPKP) so Sentry can verify their origin.", "maxLength": 255, "pattern": "^[-a-zA-Z0-9+/=\\s]+$" }, "securityTokenHeader": { "type": "string", "description": "Name of the header carrying the security token on inbound security reports.", "maxLength": 64, "pattern": "^[a-zA-Z0-9_\\-]+$" }, "isBookmarked": { "type": "boolean", "description": "Enables starring the project within the projects tab. Can be updated with **`project:read`** permission." }, "autofixAutomationTuning": { "enum": [ "off", "super_low", "low", "medium", "high", "always" ], "type": "string", "description": "How aggressively Seer runs Autofix on new issues. Can be updated with **`project:read`** permission.\n\n* `off`\n* `super_low`\n* `low`\n* `medium`\n* `high`\n* `always`" }, "seerScannerAutomation": { "type": "boolean", "description": "Let Seer scan new issues automatically. Can be updated with **`project:read`** permission." }, "preprodSizeStatusChecksEnabled": { "type": "boolean", "description": "Enable preprod size status checks. Can be updated with **`project:read`** permission." }, "preprodSizeStatusChecksRules": { "type": "object", "additionalProperties": {}, "description": "Rules controlling when preprod size status checks fail. Can be updated with **`project:read`** permission." }, "preprodSizePrCommentsEnabled": { "type": "boolean", "description": "Enable preprod size PR comments. Can be updated with **`project:read`** permission." }, "preprodSizePrCommentsRules": { "type": "object", "additionalProperties": {}, "description": "Rules controlling which preprod size changes are posted as PR comments. Can be updated with **`project:read`** permission." }, "preprodSnapshotStatusChecksEnabled": { "type": "boolean", "description": "Enable preprod snapshot status checks." }, "preprodSnapshotStatusChecksFailOnAdded": { "type": "boolean", "description": "Fail the preprod snapshot status check when snapshots are added." }, "preprodSnapshotStatusChecksFailOnRemoved": { "type": "boolean", "description": "Fail the preprod snapshot status check when snapshots are removed." }, "preprodSnapshotStatusChecksFailOnChanged": { "type": "boolean", "description": "Fail the preprod snapshot status check when snapshots change." }, "preprodSnapshotStatusChecksFailOnRenamed": { "type": "boolean", "description": "Fail the preprod snapshot status check when snapshots are renamed." }, "preprodSizeEnabledByCustomer": { "type": "boolean", "nullable": true, "description": "Enable preprod size analysis. Can be updated with **`project:read`** permission." }, "preprodDistributionEnabledByCustomer": { "type": "boolean", "nullable": true, "description": "Enable preprod build distribution. Can be updated with **`project:read`** permission." }, "preprodDistributionPrCommentsEnabledByCustomer": { "type": "boolean", "nullable": true, "description": "Post preprod distribution updates as PR comments. Can be updated with **`project:read`** permission." }, "preprodSnapshotPrCommentsEnabled": { "type": "boolean", "nullable": true, "description": "Post preprod snapshot changes as PR comments." }, "preprodSnapshotPrCommentsPostOnAdded": { "type": "boolean", "nullable": true, "description": "Include added snapshots in preprod snapshot PR comments." }, "preprodSnapshotPrCommentsPostOnRemoved": { "type": "boolean", "nullable": true, "description": "Include removed snapshots in preprod snapshot PR comments." }, "preprodSnapshotPrCommentsPostOnChanged": { "type": "boolean", "nullable": true, "description": "Include changed snapshots in preprod snapshot PR comments." }, "preprodSnapshotPrCommentsPostOnRenamed": { "type": "boolean", "nullable": true, "description": "Include renamed snapshots in preprod snapshot PR comments." }, "preprodSizeEnabledQuery": { "type": "string", "nullable": true, "description": "Query selecting which preprod builds are size-analyzed. Can be updated with **`project:read`** permission." }, "preprodDistributionEnabledQuery": { "type": "string", "nullable": true, "description": "Query selecting which preprod builds are distributed. Can be updated with **`project:read`** permission." }, "name": { "type": "string", "description": "The name for the project", "maxLength": 200 }, "slug": { "type": "string", "description": "Uniquely identifies a project and is used for the interface.", "maxLength": 100, "pattern": "^(?![0-9]+$)[a-z0-9_\\-]+$" }, "platform": { "type": "string", "nullable": true, "description": "The platform for the project" }, "subjectPrefix": { "type": "string", "description": "Custom prefix for emails from this project.", "maxLength": 200 }, "subjectTemplate": { "type": "string", "description": "The email subject to use (excluding the prefix) for individual alerts. Here are the list of variables you can use:\n- `$title`\n- `$shortID`\n- `$projectID`\n- `$orgID`\n- `${tag:key}` - such as `${tag:environment}` or `${tag:release}`.", "maxLength": 200 }, "resolveAge": { "type": "integer", "nullable": true, "description": "Automatically resolve an issue if it hasn't been seen for this many hours. Set to `0` to disable auto-resolve." }, "highlightContext": { "type": "object", "additionalProperties": {}, "description": "A JSON mapping of context types to lists of strings for their keys.\nE.g. `{'user': ['id', 'email']}`" }, "highlightTags": { "type": "array", "items": { "type": "string" }, "description": "A list of strings with tag keys to highlight on this project's issues.\nE.g. `['release', 'environment']`" }, "verifySSL": { "type": "boolean", "description": "Verify SSL certificates when delivering outbound webhooks and service hooks." }, "defaultEnvironment": { "type": "string", "nullable": true, "description": "Environment selected by default when viewing this project." }, "dataScrubber": { "type": "boolean", "description": "Remove known sensitive values from events before storing them." }, "dataScrubberDefaults": { "type": "boolean", "description": "Also scrub Sentry's built-in list of sensitive field names." }, "sensitiveFields": { "type": "array", "items": { "type": "string" }, "description": "Additional field names to scrub from events, beyond the defaults." }, "safeFields": { "type": "array", "items": { "type": "string" }, "description": "Field names to exempt from scrubbing, including the built-in defaults." }, "storeCrashReports": { "type": "integer", "maximum": 100, "minimum": -1, "nullable": true, "description": "Number of native crash report files to store per issue. Use `-1` for unlimited or `0` to store none." }, "relayPiiConfig": { "type": "string", "nullable": true, "description": "Advanced data scrubbing rules, as a JSON string, applied before events are stored." }, "builtinSymbolSources": { "type": "array", "items": { "type": "string" }, "description": "Identifiers of Sentry-hosted symbol sources to use when symbolicating events." }, "symbolSources": { "type": "string", "nullable": true, "description": "Custom symbol sources, as a JSON string, to use when symbolicating events." }, "enableNativeSourceServerMapping": { "type": "boolean", "description": "Apply source server (srcsrv) information from native debug files to symbolicated frames." }, "scrubIPAddresses": { "type": "boolean", "description": "Discard client IP addresses rather than storing them on events." }, "groupingConfig": { "type": "string", "nullable": true, "description": "Identifier of the grouping algorithm used to assign events to issues." }, "groupingEnhancements": { "type": "string", "nullable": true, "description": "Grouping enhancement rules, as a newline-delimited config string, adjusting which stack frames contribute to an issue." }, "fingerprintingRules": { "type": "string", "nullable": true, "description": "Fingerprinting rules, as a newline-delimited config string, controlling how events are grouped into issues." }, "secondaryGroupingConfig": { "type": "string", "nullable": true, "description": "Grouping algorithm run alongside the primary one during a grouping migration." }, "secondaryGroupingExpiry": { "type": "integer", "minimum": 1, "nullable": true, "description": "Unix timestamp after which the secondary grouping algorithm stops running." }, "scrapeJavaScript": { "type": "boolean", "description": "Allow Sentry to fetch source files and source maps from your servers." }, "enableAutoReleaseCreation": { "type": "boolean", "description": "Automatically create releases from ingested events. When disabled, releases must be created manually (e.g. via the Sentry CLI)." }, "allowedDomains": { "type": "array", "items": { "type": "string" }, "description": "Origins permitted to send events to this project. Use `*` to allow any." }, "copy_from_project": { "type": "integer", "description": "ID of a project whose settings, teams, and keys should be copied into this one." }, "dynamicSamplingBiases": { "type": "array", "items": { "type": "object", "properties": { "id": { "enum": [ "boostEnvironments", "boostKeyTransactions", "boostLatestRelease", "boostLowVolumeTransactions", "boostReplayId", "ignoreHealthChecks", "minimumSampleRate", "recalibrationRule" ], "type": "string", "description": "* `boostEnvironments`\n* `boostKeyTransactions`\n* `boostLatestRelease`\n* `boostLowVolumeTransactions`\n* `boostReplayId`\n* `ignoreHealthChecks`\n* `minimumSampleRate`\n* `recalibrationRule`" }, "active": { "type": "boolean", "default": false } }, "required": [ "id" ] }, "description": "Per-bias toggles adjusting which transactions dynamic sampling favors retaining." }, "tempestFetchScreenshots": { "type": "boolean", "description": "Fetch screenshots attached to console crash reports. Requires the Tempest feature." }, "scmSourceContextEnabled": { "type": "boolean", "description": "Enable on-demand source context fetching from SCM integrations for stack traces." }, "debugFilesRole": { "enum": [ "member", "admin", "manager", "owner", null ], "type": "string", "nullable": true, "description": "The role required to download debug information files, ProGuard mappings and source maps. If not set, inherits from organization setting.\n\n* `member` - Member\n* `admin` - Admin\n* `manager` - Manager\n* `owner` - Owner" } }, "required": [ "digestsMaxDelay", "digestsMinDelay", "securityToken", "securityTokenHeader" ] } } }, "required": true }, "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" }, "latestRelease": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ], "nullable": true, "description": "Latest release of the project" }, "options": { "type": "object", "additionalProperties": {}, "description": "Additional project settings keyed by option name, such as inbound filters and preprod settings" }, "digestsMinDelay": { "type": "integer", "description": "Minimum time in seconds to wait before sending an issue digest email" }, "digestsMaxDelay": { "type": "integer", "description": "Maximum time in seconds to wait before sending an issue digest email" }, "subjectPrefix": { "type": "string", "description": "Custom prefix for emails from this project" }, "allowedDomains": { "type": "array", "items": { "type": "string" }, "description": "Origins permitted to send events to this project. `*` allows any" }, "resolveAge": { "type": "integer", "description": "Hours after which an issue that hasn't been seen is automatically resolved. 0 disables auto-resolve" }, "dataScrubber": { "type": "boolean", "description": "Whether known sensitive values are removed from events before they are stored" }, "dataScrubberDefaults": { "type": "boolean", "description": "Whether Sentry's built-in list of sensitive field names is also scrubbed" }, "safeFields": { "type": "array", "items": { "type": "string" }, "description": "Field names exempt from scrubbing" }, "storeCrashReports": { "type": "integer", "nullable": true, "description": "Number of native crash report files stored per issue. -1 means unlimited, 0 stores none, and null inherits the organization setting" }, "sensitiveFields": { "type": "array", "items": { "type": "string" }, "description": "Additional field names scrubbed from events, beyond the defaults" }, "subjectTemplate": { "type": "string", "description": "Email subject used for individual alerts, excluding the prefix" }, "securityToken": { "type": "string", "description": "Token sent with security reports (CSP, Expect-CT, HPKP) so Sentry can verify their origin" }, "securityTokenHeader": { "type": "string", "nullable": true, "description": "Name of the header carrying the security token on inbound security reports" }, "verifySSL": { "type": "boolean", "description": "Whether SSL certificates are verified when delivering outbound webhooks and service hooks" }, "scrubIPAddresses": { "type": "boolean", "description": "Whether client IP addresses are discarded rather than stored on events" }, "scrapeJavaScript": { "type": "boolean", "description": "Whether Sentry may fetch source files and source maps from your servers" }, "enableAutoReleaseCreation": { "type": "boolean", "description": "Whether releases are created automatically from ingested events" }, "highlightTags": { "type": "array", "items": { "type": "string" }, "description": "Tag keys highlighted on the project's issues" }, "highlightContext": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "description": "Context keys highlighted on the project's issues, as a mapping of context types to lists of keys" }, "highlightPreset": { "type": "object", "properties": { "tags": { "type": "array", "items": { "type": "string" }, "description": "Tag keys to highlight by default" }, "context": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "description": "Context keys to highlight by default, by context name" } }, "required": [ "context", "tags" ], "description": "Default highlighted tags and context for the project's platform" }, "groupingConfig": { "type": "string", "description": "Identifier of the grouping algorithm used to assign events to issues" }, "derivedGroupingEnhancements": { "type": "string", "description": "Stack trace rules that Sentry derives from the project's code mappings, as a newline-delimited config string" }, "groupingEnhancements": { "type": "string", "description": "Grouping enhancement rules, as a newline-delimited config string, adjusting which stack frames contribute to an issue" }, "secondaryGroupingExpiry": { "type": "integer", "description": "Unix timestamp after which the secondary grouping algorithm stops running" }, "secondaryGroupingConfig": { "type": "string", "nullable": true, "description": "Grouping algorithm run alongside the primary one during a grouping migration" }, "fingerprintingRules": { "type": "string", "description": "Fingerprinting rules, as a newline-delimited config string, controlling how events are grouped into issues" }, "organization": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ], "description": "Organization that owns the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms seen in the project's events" }, "processingIssues": { "type": "integer", "description": "Always 0" }, "defaultEnvironment": { "type": "string", "nullable": true, "description": "Environment selected by default when viewing this project" }, "relayPiiConfig": { "type": "string", "nullable": true, "description": "Advanced data scrubbing rules, as a JSON string, applied before events are stored" }, "builtinSymbolSources": { "type": "array", "items": { "type": "string" }, "description": "Identifiers of Sentry-hosted symbol sources used when symbolicating events" }, "enableNativeSourceServerMapping": { "type": "boolean", "description": "Whether source server (srcsrv) information from native debug files is applied to symbolicated frames" }, "dynamicSamplingBiases": { "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" } ] } }, "nullable": true, "description": "Per-bias toggles adjusting which transactions dynamic sampling favors retaining" }, "symbolSources": { "type": "string", "description": "Custom symbol sources as a JSON string, with secrets redacted" }, "isDynamicallySampled": { "type": "boolean", "description": "Whether dynamic sampling retains less than 100% of the project's transactions" }, "tempestFetchScreenshots": { "type": "boolean", "description": "Whether screenshots attached to console crash reports are fetched. Only included when the organization has Tempest access" }, "autofixAutomationTuning": { "type": "string", "description": "How aggressively Seer runs Autofix on new issues" }, "seerScannerAutomation": { "type": "boolean", "description": "Whether Seer scans new issues automatically" }, "seerNightshiftTweaks": { "description": "Experimental Seer settings with no stable shape" }, "scmSourceContextEnabled": { "type": "boolean", "description": "Whether source context is fetched on demand from SCM integrations for stack traces" }, "debugFilesRole": { "type": "string", "nullable": true, "description": "Role required to download debug information files, ProGuard mappings and source maps. Null inherits the organization setting" } }, "required": [ "access", "allowedDomains", "avatar", "builtinSymbolSources", "color", "dataScrubber", "dataScrubberDefaults", "dateCreated", "defaultEnvironment", "derivedGroupingEnhancements", "digestsMaxDelay", "digestsMinDelay", "dynamicSamplingBiases", "enableAutoReleaseCreation", "enableNativeSourceServerMapping", "features", "fingerprintingRules", "firstEvent", "firstTransactionEvent", "groupingConfig", "groupingEnhancements", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "highlightContext", "highlightPreset", "highlightTags", "id", "isBookmarked", "isDynamicallySampled", "isInternal", "isMember", "isPublic", "latestRelease", "name", "options", "organization", "platform", "platforms", "processingIssues", "relayPiiConfig", "resolveAge", "safeFields", "scrapeJavaScript", "scrubIPAddresses", "secondaryGroupingConfig", "secondaryGroupingExpiry", "securityToken", "securityTokenHeader", "sensitiveFields", "slug", "status", "storeCrashReports", "subjectPrefix", "subjectTemplate", "symbolSources", "teams", "verifySSL" ] }, "examples": { "GetDetailedViewAboutAProject": { "value": { "id": "4505278496", "slug": "pump-station", "name": "Pump Station", "platform": "python", "dateCreated": "2021-01-14T22:08:52.711809Z", "isBookmarked": false, "isMember": true, "features": [ "custom-inbound-filters", "discard-groups", "minidump", "rate-limits", "servicehooks", "similarity-indexing", "similarity-indexing-v2", "similarity-view", "similarity-view-v2" ], "firstEvent": "2021-01-14T22:08:52.711809Z", "firstTransactionEvent": true, "access": [ "member:read", "event:read", "project:admin", "team:write", "project:write", "team:admin", "project:read", "org:integrations", "org:read", "project:releases", "team:read", "alerts:write", "event:admin", "event:write", "alerts:read" ], "hasAccess": true, "hasMinifiedStackTrace": false, "hasFeedbacks": false, "hasMonitors": false, "hasNewFeedbacks": false, "hasProfiles": false, "hasReplays": false, "hasFlags": false, "hasSessions": false, "hasInsightsHttp": true, "hasInsightsDb": false, "hasInsightsAssets": true, "hasInsightsAppStart": false, "hasInsightsScreenLoad": false, "hasInsightsVitals": false, "hasInsightsCaches": false, "hasInsightsQueues": false, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "isInternal": false, "isPublic": false, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "color": "#3f70bf", "status": "active", "team": { "id": "2", "name": "Powerful Abolitionist", "slug": "powerful-abolitionist" }, "teams": [ { "id": "2", "name": "Powerful Abolitionist", "slug": "powerful-abolitionist" } ], "latestRelease": { "version": "backend@3e90a5d9e767ebcfa70e921d7a7ff6c037461168" }, "options": { "sentry:transaction_name_cluster_rules": [], "digests:mail:maximum_delay": 600, "sentry:scrub_defaults": false, "sentry:scrape_javascript": true, "mail:subject_prefix": "", "sentry:relay_pii_config": null, "sentry:scrub_data": false, "sentry:token": "e84c8c0fb1c121e988558785885f9cde", "sentry:resolve_age": 168, "sentry:grouping_config": "newstyle:2012-12-31", "quotas:spike-protection-disabled": false, "sentry:store_crash_reports": 5, "digests:mail:minimum_delay": 180, "sentry:secondary_grouping_config": "newstyle:2012-11-21", "sentry:secondary_grouping_expiry": 147555024, "sentry:builtin_symbol_sources": [ "ios", "android", "chromium" ], "sentry:origins": [ "getsentry.com", "app.getsentry.com", "www.getsentry.com", "sentry.io" ], "sentry:sensitive_fields": [ "sudo" ], "sentry:scrub_ip_address": false, "sentry:default_environment": "prod", "sentry:verify_ssl": true, "sentry:csp_ignored_sources_defaults": true, "sentry:csp_ignored_sources": "", "filters:blacklisted_ips": "", "filters:react-hydration-errors": true, "filters:chunk-load-error": true, "filters:releases": "", "filters:error_messages": "", "feedback:branding": true }, "digestsMinDelay": 180, "digestsMaxDelay": 600, "subjectPrefix": "", "allowedDomains": [ "getsentry.com", "app.getsentry.com", "www.getsentry.com", "sentry.io" ], "resolveAge": 168, "dataScrubber": false, "dataScrubberDefaults": false, "safeFields": [], "storeCrashReports": 5, "sensitiveFields": [ "sudo" ], "subjectTemplate": "$shortID - $title", "securityToken": "e84c8c0fb1c121e988558785885f9cde", "securityTokenHeader": null, "verifySSL": true, "scrubIPAddresses": false, "scrapeJavaScript": true, "groupingConfig": "newstyle:2012-12-31", "groupingEnhancements": "", "derivedGroupingEnhancements": "", "secondaryGroupingExpiry": 1687010243, "secondaryGroupingConfig": "newstyle:2012-11-21", "fingerprintingRules": "", "organization": { "id": "1", "slug": "sentry", "status": { "id": "active", "name": "active" }, "name": "Sentry", "dateCreated": "2014-12-15T04:06:24.263571Z", "isEarlyAdopter": true, "allowMemberInvite": true, "allowMemberProjectCreation": true, "allowSuperuserAccess": false, "require2FA": false, "avatar": { "avatarType": "upload", "avatarUuid": "24f6f762f7a7473888b259c566da5adb" }, "features": [ "discover-basic", "incidents", "uptime", "monitors" ], "links": { "organizationUrl": "https://sentry.sentry.io", "regionUrl": "https://us.sentry.io" }, "hasAuthProvider": true }, "platforms": [ "native", "other", "python" ], "processingIssues": 0, "defaultEnvironment": "prod", "relayPiiConfig": null, "builtinSymbolSources": [ "ios", "android", "chromium" ], "enableNativeSourceServerMapping": false, "dynamicSamplingBiases": [ { "id": "boostEnvironments", "active": true }, { "id": "boostLatestRelease", "active": true }, { "id": "ignoreHealthChecks", "active": true }, { "id": "boostKeyTransactions", "active": true }, { "id": "boostLowVolumeTransactions", "active": true }, { "id": "boostReplayId", "active": true }, { "id": "recalibrationRule", "active": true } ], "symbolSources": "[]", "tempestFetchScreenshots": false, "debugFilesRole": null, "isDynamicallySampled": true, "enableAutoReleaseCreation": true, "autofixAutomationTuning": "off", "seerScannerAutomation": true, "seerNightshiftTweaks": null, "highlightTags": [], "highlightContext": {}, "highlightPreset": { "tags": [], "context": {} }, "scmSourceContextEnabled": false }, "summary": "Get detailed view about a Project" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "description": "Conflict" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteProject", "description": "Schedules a project for deletion.\n\nDeletion happens asynchronously and therefore is not immediate. However once deletion has\nbegun the state of a project changes and will be hidden from most public views.", "summary": "Delete a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin" ] } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/code-mapping-prefixes/stack/": { "get": { "operationId": "listStackCodeMappingPrefixes", "description": "Return ranked directory prefixes from stack traces and existing mappings to help configure a code mapping.", "summary": "List Stack Trace Directory Prefixes for Code Mapping Autocomplete", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Integrations" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "prefixes": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "Path prefix" }, "fileCount": { "type": "integer", "description": "Number of files under the prefix" } }, "required": [ "fileCount", "path" ] }, "description": "Path prefixes of the project's stack trace frames" } }, "required": [ "prefixes" ] } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/codeowners/": { "get": { "operationId": "listProjectCodeOwners", "description": "Return the CODEOWNERS configurations for a project.", "summary": "List a Project's CODEOWNERS Configurations", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "expand", "schema": { "type": "array", "items": { "type": "string", "enum": [ "codeMapping", "ownershipSyntax" ] } }, "description": "Optional fields to expand." } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "codeMapping": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the code mapping" }, "projectId": { "type": "string", "description": "ID of the project" }, "projectSlug": { "type": "string", "description": "Slug of the project" }, "repoId": { "type": "string", "description": "ID of the repository" }, "repoName": { "type": "string", "description": "Name of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "nullable": true, "description": "Provider of the repository's integration" }, "stackRoot": { "type": "string", "description": "Stack trace path prefix that the mapping replaces" }, "sourceRoot": { "type": "string", "description": "Repository path prefix that replaces the stack root" }, "defaultBranch": { "type": "string", "nullable": true, "description": "Branch to link source files on" }, "automaticallyGenerated": { "type": "boolean", "description": "Whether Sentry created the mapping automatically" }, "hasCodeOwner": { "type": "boolean", "description": "Whether the mapping has a CODEOWNERS file linked" } }, "required": [ "automaticallyGenerated", "defaultBranch", "hasCodeOwner", "id", "integrationId", "projectId", "projectSlug", "provider", "repoId", "repoName", "sourceRoot", "stackRoot" ], "description": "Code mapping of the CODEOWNERS file. Only set when expand includes codeMapping" }, "ownershipSyntax": { "type": "string", "description": "CODEOWNERS rules translated to Sentry ownership rules. Only set when expand includes ownershipSyntax" }, "errors": { "type": "object", "properties": { "missing_user_emails": { "type": "array", "items": { "type": "string" }, "description": "Email owners in the CODEOWNERS file with no matching Sentry user" }, "missing_external_users": { "type": "array", "items": { "type": "string" }, "description": "User owners in the CODEOWNERS file with no external user mapping" }, "missing_external_teams": { "type": "array", "items": { "type": "string" }, "description": "Team owners in the CODEOWNERS file with no external team mapping" }, "teams_without_access": { "type": "array", "items": { "type": "string" }, "description": "Teams in the CODEOWNERS file that don't have access to the project" }, "users_without_access": { "type": "array", "items": { "type": "string" }, "description": "Users in the CODEOWNERS file who aren't members of a team with access to the project" } }, "required": [ "missing_external_teams", "missing_external_users", "missing_user_emails", "teams_without_access", "users_without_access" ], "description": "Owners that couldn't be associated, by reason. Only set when expand includes errors" }, "schema": { "anyOf": [ { "type": "object", "properties": { "$version": { "type": "integer", "description": "Version of the ownership rules schema" }, "rules": { "type": "array", "items": { "type": "object", "properties": { "matcher": { "type": "object", "properties": { "type": { "type": "string", "description": "What the rule matches on, path, module, url, codeowners or tags." }, "pattern": { "type": "string", "description": "Pattern the value is matched against" } }, "required": [ "pattern", "type" ], "description": "What the rule matches" }, "owners": { "type": "array", "items": { "type": "object", "description": "Owner as it appears in the API response (after identifier->name rename).", "properties": { "type": { "type": "string", "description": "Whether the owner is a user or a team" }, "name": { "type": "string", "description": "Email of the user, or slug of the team" }, "id": { "type": "string", "description": "ID of the user or team. Only set when the owner was resolved" } }, "required": [ "name", "type" ] }, "description": "Owners the rule assigns" } }, "required": [ "matcher", "owners" ] }, "description": "Ownership rules, in order" } }, "required": [ "$version", "rules" ] }, { "type": "object", "description": "Legacy CODEOWNERS records can have an empty schema before it is built.", "maxProperties": 0 } ], "description": "Parsed rules of the CODEOWNERS file. Only set when expand includes hasTargetingContext" }, "codeOwnersUrl": { "type": "string", "description": "URL of the CODEOWNERS file in the repository, or unknown. Only set when expand includes hasTargetingContext" }, "id": { "type": "string", "description": "ID of the CODEOWNERS record" }, "raw": { "type": "string", "description": "Contents of the CODEOWNERS file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the CODEOWNERS file was added (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the record was last updated (ISO 8601)" }, "dateSynced": { "type": "string", "format": "date-time", "nullable": true, "description": "When the file was last synced from the repository (ISO 8601). Null when it was never synced" }, "codeMappingId": { "type": "string", "description": "ID of the code mapping of the CODEOWNERS file" }, "provider": { "type": "string", "description": "Provider of the repository's integration, such as github, or unknown" } }, "required": [ "codeMappingId", "dateCreated", "dateSynced", "dateUpdated", "id", "provider", "raw" ] } }, "examples": { "ListAProject'sCODEOWNERSConfigurations": { "value": [ { "id": "42", "raw": "src/* user@example.com", "dateCreated": "2024-01-15T10:30:00Z", "dateUpdated": "2024-01-15T10:30:00Z", "dateSynced": "2024-01-15T10:30:00Z", "codeMappingId": "7", "provider": "github", "errors": { "missing_external_teams": [], "missing_external_users": [], "missing_user_emails": [], "teams_without_access": [], "users_without_access": [] }, "schema": { "$version": 1, "rules": [ { "matcher": { "type": "codeowners", "pattern": "src/*" }, "owners": [ { "type": "user", "id": "1", "name": "user@example.com" } ] } ] }, "codeOwnersUrl": "https://github.com/example/repository/blob/main/CODEOWNERS" } ], "summary": "List a project's CODEOWNERS configurations" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createProjectCodeOwners", "description": "Create a CODEOWNERS configuration for a project.", "summary": "Create a CODEOWNERS Configuration for a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "raw": { "type": "string", "description": "The raw contents of the CODEOWNERS file." }, "codeMappingId": { "type": "string", "description": "The ID of the code mapping used to translate repository paths to stack trace paths." } }, "required": [ "codeMappingId", "raw" ] }, "examples": { "CreateACODEOWNERSConfiguration": { "value": { "raw": "src/* user@example.com", "codeMappingId": "7" }, "summary": "Create a CODEOWNERS configuration" } } } }, "required": true }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "codeMapping": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the code mapping" }, "projectId": { "type": "string", "description": "ID of the project" }, "projectSlug": { "type": "string", "description": "Slug of the project" }, "repoId": { "type": "string", "description": "ID of the repository" }, "repoName": { "type": "string", "description": "Name of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "nullable": true, "description": "Provider of the repository's integration" }, "stackRoot": { "type": "string", "description": "Stack trace path prefix that the mapping replaces" }, "sourceRoot": { "type": "string", "description": "Repository path prefix that replaces the stack root" }, "defaultBranch": { "type": "string", "nullable": true, "description": "Branch to link source files on" }, "automaticallyGenerated": { "type": "boolean", "description": "Whether Sentry created the mapping automatically" }, "hasCodeOwner": { "type": "boolean", "description": "Whether the mapping has a CODEOWNERS file linked" } }, "required": [ "automaticallyGenerated", "defaultBranch", "hasCodeOwner", "id", "integrationId", "projectId", "projectSlug", "provider", "repoId", "repoName", "sourceRoot", "stackRoot" ], "description": "Code mapping of the CODEOWNERS file. Only set when expand includes codeMapping" }, "ownershipSyntax": { "type": "string", "description": "CODEOWNERS rules translated to Sentry ownership rules. Only set when expand includes ownershipSyntax" }, "errors": { "type": "object", "properties": { "missing_user_emails": { "type": "array", "items": { "type": "string" }, "description": "Email owners in the CODEOWNERS file with no matching Sentry user" }, "missing_external_users": { "type": "array", "items": { "type": "string" }, "description": "User owners in the CODEOWNERS file with no external user mapping" }, "missing_external_teams": { "type": "array", "items": { "type": "string" }, "description": "Team owners in the CODEOWNERS file with no external team mapping" }, "teams_without_access": { "type": "array", "items": { "type": "string" }, "description": "Teams in the CODEOWNERS file that don't have access to the project" }, "users_without_access": { "type": "array", "items": { "type": "string" }, "description": "Users in the CODEOWNERS file who aren't members of a team with access to the project" } }, "required": [ "missing_external_teams", "missing_external_users", "missing_user_emails", "teams_without_access", "users_without_access" ], "description": "Owners that couldn't be associated, by reason. Only set when expand includes errors" }, "schema": { "anyOf": [ { "type": "object", "properties": { "$version": { "type": "integer", "description": "Version of the ownership rules schema" }, "rules": { "type": "array", "items": { "type": "object", "properties": { "matcher": { "type": "object", "properties": { "type": { "type": "string", "description": "What the rule matches on, path, module, url, codeowners or tags." }, "pattern": { "type": "string", "description": "Pattern the value is matched against" } }, "required": [ "pattern", "type" ], "description": "What the rule matches" }, "owners": { "type": "array", "items": { "type": "object", "description": "Owner as it appears in the API response (after identifier->name rename).", "properties": { "type": { "type": "string", "description": "Whether the owner is a user or a team" }, "name": { "type": "string", "description": "Email of the user, or slug of the team" }, "id": { "type": "string", "description": "ID of the user or team. Only set when the owner was resolved" } }, "required": [ "name", "type" ] }, "description": "Owners the rule assigns" } }, "required": [ "matcher", "owners" ] }, "description": "Ownership rules, in order" } }, "required": [ "$version", "rules" ] }, { "type": "object", "description": "Legacy CODEOWNERS records can have an empty schema before it is built.", "maxProperties": 0 } ], "description": "Parsed rules of the CODEOWNERS file. Only set when expand includes hasTargetingContext" }, "codeOwnersUrl": { "type": "string", "description": "URL of the CODEOWNERS file in the repository, or unknown. Only set when expand includes hasTargetingContext" }, "id": { "type": "string", "description": "ID of the CODEOWNERS record" }, "raw": { "type": "string", "description": "Contents of the CODEOWNERS file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the CODEOWNERS file was added (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the record was last updated (ISO 8601)" }, "dateSynced": { "type": "string", "format": "date-time", "nullable": true, "description": "When the file was last synced from the repository (ISO 8601). Null when it was never synced" }, "codeMappingId": { "type": "string", "description": "ID of the code mapping of the CODEOWNERS file" }, "provider": { "type": "string", "description": "Provider of the repository's integration, such as github, or unknown" } }, "required": [ "codeMappingId", "dateCreated", "dateSynced", "dateUpdated", "id", "provider", "raw" ] }, "examples": { "CreatedCODEOWNERSConfiguration": { "value": { "id": "42", "raw": "src/* user@example.com", "dateCreated": "2024-01-15T10:30:00Z", "dateUpdated": "2024-01-15T10:30:00Z", "dateSynced": "2024-01-15T10:30:00Z", "codeMappingId": "7", "provider": "github", "errors": { "missing_external_teams": [], "missing_external_users": [], "missing_user_emails": [], "teams_without_access": [], "users_without_access": [] }, "schema": { "$version": 1, "rules": [ { "matcher": { "type": "codeowners", "pattern": "src/*" }, "owners": [ { "type": "user", "id": "1", "name": "user@example.com" } ] } ] }, "codeOwnersUrl": "https://github.com/example/repository/blob/main/CODEOWNERS", "ownershipSyntax": "codeowners:src/* user@example.com\n" }, "summary": "Created CODEOWNERS configuration" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/codeowners/{codeowners_id}/": { "get": { "operationId": "retrieveProjectCodeOwners", "description": "Return a single CODEOWNERS configuration.", "summary": "Retrieve a Project's CODEOWNERS Configuration", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "codeowners_id", "schema": { "type": "string" }, "description": "The ID of the CODEOWNERS configuration.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "codeMapping": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the code mapping" }, "projectId": { "type": "string", "description": "ID of the project" }, "projectSlug": { "type": "string", "description": "Slug of the project" }, "repoId": { "type": "string", "description": "ID of the repository" }, "repoName": { "type": "string", "description": "Name of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "nullable": true, "description": "Provider of the repository's integration" }, "stackRoot": { "type": "string", "description": "Stack trace path prefix that the mapping replaces" }, "sourceRoot": { "type": "string", "description": "Repository path prefix that replaces the stack root" }, "defaultBranch": { "type": "string", "nullable": true, "description": "Branch to link source files on" }, "automaticallyGenerated": { "type": "boolean", "description": "Whether Sentry created the mapping automatically" }, "hasCodeOwner": { "type": "boolean", "description": "Whether the mapping has a CODEOWNERS file linked" } }, "required": [ "automaticallyGenerated", "defaultBranch", "hasCodeOwner", "id", "integrationId", "projectId", "projectSlug", "provider", "repoId", "repoName", "sourceRoot", "stackRoot" ], "description": "Code mapping of the CODEOWNERS file. Only set when expand includes codeMapping" }, "ownershipSyntax": { "type": "string", "description": "CODEOWNERS rules translated to Sentry ownership rules. Only set when expand includes ownershipSyntax" }, "errors": { "type": "object", "properties": { "missing_user_emails": { "type": "array", "items": { "type": "string" }, "description": "Email owners in the CODEOWNERS file with no matching Sentry user" }, "missing_external_users": { "type": "array", "items": { "type": "string" }, "description": "User owners in the CODEOWNERS file with no external user mapping" }, "missing_external_teams": { "type": "array", "items": { "type": "string" }, "description": "Team owners in the CODEOWNERS file with no external team mapping" }, "teams_without_access": { "type": "array", "items": { "type": "string" }, "description": "Teams in the CODEOWNERS file that don't have access to the project" }, "users_without_access": { "type": "array", "items": { "type": "string" }, "description": "Users in the CODEOWNERS file who aren't members of a team with access to the project" } }, "required": [ "missing_external_teams", "missing_external_users", "missing_user_emails", "teams_without_access", "users_without_access" ], "description": "Owners that couldn't be associated, by reason. Only set when expand includes errors" }, "schema": { "anyOf": [ { "type": "object", "properties": { "$version": { "type": "integer", "description": "Version of the ownership rules schema" }, "rules": { "type": "array", "items": { "type": "object", "properties": { "matcher": { "type": "object", "properties": { "type": { "type": "string", "description": "What the rule matches on, path, module, url, codeowners or tags." }, "pattern": { "type": "string", "description": "Pattern the value is matched against" } }, "required": [ "pattern", "type" ], "description": "What the rule matches" }, "owners": { "type": "array", "items": { "type": "object", "description": "Owner as it appears in the API response (after identifier->name rename).", "properties": { "type": { "type": "string", "description": "Whether the owner is a user or a team" }, "name": { "type": "string", "description": "Email of the user, or slug of the team" }, "id": { "type": "string", "description": "ID of the user or team. Only set when the owner was resolved" } }, "required": [ "name", "type" ] }, "description": "Owners the rule assigns" } }, "required": [ "matcher", "owners" ] }, "description": "Ownership rules, in order" } }, "required": [ "$version", "rules" ] }, { "type": "object", "description": "Legacy CODEOWNERS records can have an empty schema before it is built.", "maxProperties": 0 } ], "description": "Parsed rules of the CODEOWNERS file. Only set when expand includes hasTargetingContext" }, "codeOwnersUrl": { "type": "string", "description": "URL of the CODEOWNERS file in the repository, or unknown. Only set when expand includes hasTargetingContext" }, "id": { "type": "string", "description": "ID of the CODEOWNERS record" }, "raw": { "type": "string", "description": "Contents of the CODEOWNERS file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the CODEOWNERS file was added (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the record was last updated (ISO 8601)" }, "dateSynced": { "type": "string", "format": "date-time", "nullable": true, "description": "When the file was last synced from the repository (ISO 8601). Null when it was never synced" }, "codeMappingId": { "type": "string", "description": "ID of the code mapping of the CODEOWNERS file" }, "provider": { "type": "string", "description": "Provider of the repository's integration, such as github, or unknown" } }, "required": [ "codeMappingId", "dateCreated", "dateSynced", "dateUpdated", "id", "provider", "raw" ] }, "examples": { "RetrieveACODEOWNERSConfiguration": { "value": { "id": "42", "raw": "src/* user@example.com", "dateCreated": "2024-01-15T10:30:00Z", "dateUpdated": "2024-01-15T10:30:00Z", "dateSynced": "2024-01-15T10:30:00Z", "codeMappingId": "7", "provider": "github", "errors": { "missing_external_teams": [], "missing_external_users": [], "missing_user_emails": [], "teams_without_access": [], "users_without_access": [] }, "schema": { "$version": 1, "rules": [ { "matcher": { "type": "codeowners", "pattern": "src/*" }, "owners": [ { "type": "user", "id": "1", "name": "user@example.com" } ] } ] }, "codeOwnersUrl": "https://github.com/example/repository/blob/main/CODEOWNERS" }, "summary": "Retrieve a CODEOWNERS configuration" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateProjectCodeOwners", "description": "Update a CODEOWNERS configuration.", "summary": "Update a Project's CODEOWNERS Configuration", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "codeowners_id", "schema": { "type": "string" }, "description": "The ID of the CODEOWNERS configuration.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "raw": { "type": "string", "description": "The raw contents of the CODEOWNERS file." }, "codeMappingId": { "type": "string", "description": "The ID of the code mapping used to translate repository paths to stack trace paths." } } }, "examples": { "UpdateACODEOWNERSConfiguration": { "value": { "raw": "src/* #backend" }, "summary": "Update a CODEOWNERS configuration" } } } } }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "codeMapping": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the code mapping" }, "projectId": { "type": "string", "description": "ID of the project" }, "projectSlug": { "type": "string", "description": "Slug of the project" }, "repoId": { "type": "string", "description": "ID of the repository" }, "repoName": { "type": "string", "description": "Name of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "nullable": true, "description": "Provider of the repository's integration" }, "stackRoot": { "type": "string", "description": "Stack trace path prefix that the mapping replaces" }, "sourceRoot": { "type": "string", "description": "Repository path prefix that replaces the stack root" }, "defaultBranch": { "type": "string", "nullable": true, "description": "Branch to link source files on" }, "automaticallyGenerated": { "type": "boolean", "description": "Whether Sentry created the mapping automatically" }, "hasCodeOwner": { "type": "boolean", "description": "Whether the mapping has a CODEOWNERS file linked" } }, "required": [ "automaticallyGenerated", "defaultBranch", "hasCodeOwner", "id", "integrationId", "projectId", "projectSlug", "provider", "repoId", "repoName", "sourceRoot", "stackRoot" ], "description": "Code mapping of the CODEOWNERS file. Only set when expand includes codeMapping" }, "ownershipSyntax": { "type": "string", "description": "CODEOWNERS rules translated to Sentry ownership rules. Only set when expand includes ownershipSyntax" }, "errors": { "type": "object", "properties": { "missing_user_emails": { "type": "array", "items": { "type": "string" }, "description": "Email owners in the CODEOWNERS file with no matching Sentry user" }, "missing_external_users": { "type": "array", "items": { "type": "string" }, "description": "User owners in the CODEOWNERS file with no external user mapping" }, "missing_external_teams": { "type": "array", "items": { "type": "string" }, "description": "Team owners in the CODEOWNERS file with no external team mapping" }, "teams_without_access": { "type": "array", "items": { "type": "string" }, "description": "Teams in the CODEOWNERS file that don't have access to the project" }, "users_without_access": { "type": "array", "items": { "type": "string" }, "description": "Users in the CODEOWNERS file who aren't members of a team with access to the project" } }, "required": [ "missing_external_teams", "missing_external_users", "missing_user_emails", "teams_without_access", "users_without_access" ], "description": "Owners that couldn't be associated, by reason. Only set when expand includes errors" }, "schema": { "anyOf": [ { "type": "object", "properties": { "$version": { "type": "integer", "description": "Version of the ownership rules schema" }, "rules": { "type": "array", "items": { "type": "object", "properties": { "matcher": { "type": "object", "properties": { "type": { "type": "string", "description": "What the rule matches on, path, module, url, codeowners or tags." }, "pattern": { "type": "string", "description": "Pattern the value is matched against" } }, "required": [ "pattern", "type" ], "description": "What the rule matches" }, "owners": { "type": "array", "items": { "type": "object", "description": "Owner as it appears in the API response (after identifier->name rename).", "properties": { "type": { "type": "string", "description": "Whether the owner is a user or a team" }, "name": { "type": "string", "description": "Email of the user, or slug of the team" }, "id": { "type": "string", "description": "ID of the user or team. Only set when the owner was resolved" } }, "required": [ "name", "type" ] }, "description": "Owners the rule assigns" } }, "required": [ "matcher", "owners" ] }, "description": "Ownership rules, in order" } }, "required": [ "$version", "rules" ] }, { "type": "object", "description": "Legacy CODEOWNERS records can have an empty schema before it is built.", "maxProperties": 0 } ], "description": "Parsed rules of the CODEOWNERS file. Only set when expand includes hasTargetingContext" }, "codeOwnersUrl": { "type": "string", "description": "URL of the CODEOWNERS file in the repository, or unknown. Only set when expand includes hasTargetingContext" }, "id": { "type": "string", "description": "ID of the CODEOWNERS record" }, "raw": { "type": "string", "description": "Contents of the CODEOWNERS file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the CODEOWNERS file was added (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the record was last updated (ISO 8601)" }, "dateSynced": { "type": "string", "format": "date-time", "nullable": true, "description": "When the file was last synced from the repository (ISO 8601). Null when it was never synced" }, "codeMappingId": { "type": "string", "description": "ID of the code mapping of the CODEOWNERS file" }, "provider": { "type": "string", "description": "Provider of the repository's integration, such as github, or unknown" } }, "required": [ "codeMappingId", "dateCreated", "dateSynced", "dateUpdated", "id", "provider", "raw" ] }, "examples": { "UpdatedCODEOWNERSConfiguration": { "value": { "id": "42", "raw": "src/* user@example.com", "dateCreated": "2024-01-15T10:30:00Z", "dateUpdated": "2024-01-15T10:30:00Z", "dateSynced": "2024-01-15T10:30:00Z", "codeMappingId": "7", "provider": "github", "errors": { "missing_external_teams": [], "missing_external_users": [], "missing_user_emails": [], "teams_without_access": [], "users_without_access": [] }, "schema": { "$version": 1, "rules": [ { "matcher": { "type": "codeowners", "pattern": "src/*" }, "owners": [ { "type": "user", "id": "1", "name": "user@example.com" } ] } ] }, "codeOwnersUrl": "https://github.com/example/repository/blob/main/CODEOWNERS", "ownershipSyntax": "codeowners:src/* user@example.com\n" }, "summary": "Updated CODEOWNERS configuration" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true }, "delete": { "operationId": "deleteProjectCodeOwners", "description": "Delete a CODEOWNERS configuration.", "summary": "Delete a Project's CODEOWNERS Configuration", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "codeowners_id", "schema": { "type": "string" }, "description": "The ID of the CODEOWNERS configuration.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin" ] } ], "responses": { "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/custom-inbound-filters/": { "get": { "operationId": "List a Project's Custom Inbound Filters", "description": "**Experimental:** This API is under active development and may change.\n\nList the custom inbound filters configured for a project.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "readOnly": true, "description": "The ID of the filter." }, "dataType": { "enum": [ "all", "error", "log", "metric", "span" ], "type": "string", "description": "The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for.\n\n* `all`\n* `error`\n* `log`\n* `metric`\n* `span`" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "type": { "enum": [ "error_type", "error_message", "log_message", "metric_name", "release", "environment", "ip_address", "geo_country_code" ], "type": "string", "description": "The field the condition matches against. Every `dataType` accepts `release`, `environment` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.\n\n* `error_type`\n* `error_message`\n* `log_message`\n* `metric_name`\n* `release`\n* `environment`\n* `ip_address`\n* `geo_country_code`" }, "operator": { "enum": [ "glob", "equals", "starts_with", "contains", "ends_with", "does_not_start_with", "does_not_contain", "does_not_end_with", "cidr", "not_cidr", "gt", "gte", "lt", "lte" ], "type": "string", "description": "How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release`.\n\n* `glob`\n* `equals`\n* `starts_with`\n* `contains`\n* `ends_with`\n* `does_not_start_with`\n* `does_not_contain`\n* `does_not_end_with`\n* `cidr`\n* `not_cidr`\n* `gt`\n* `gte`\n* `lt`\n* `lte`" }, "value": { "type": "array", "items": { "type": "string" }, "description": "The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package." } }, "required": [ "type", "value" ] }, "description": "Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters." }, "dateCreated": { "type": "string", "format": "date-time", "readOnly": true, "description": "When the filter was created." }, "dateUpdated": { "type": "string", "format": "date-time", "readOnly": true, "description": "When the filter was last changed." }, "legacyFilter": { "type": "string", "readOnly": true, "nullable": true, "description": "Set on a filter that holds one of the filter lists of the project settings, to the id its outcomes are reported under. Such a filter keeps its data type and its one condition: only the name, the active flag and the condition values can change, and deleting it empties the list." }, "name": { "type": "string", "nullable": true, "description": "A human-readable label for the filter.", "maxLength": 256 }, "active": { "type": "boolean", "description": "Whether the filter drops matching data. An inactive filter is kept but ignored." } }, "required": [ "conditions", "dataType", "dateCreated", "dateUpdated", "id", "legacyFilter" ] } }, "examples": { "ListCustomInboundFilters": { "value": [ { "id": "42", "name": "Drop TypeErrors from the 1.x releases", "active": true, "dataType": "error", "conditions": [ { "type": "error_type", "operator": "equals", "value": [ "TypeError" ] }, { "type": "error_message", "operator": "contains", "value": [ "undefined" ] }, { "type": "release", "operator": "lt", "value": [ "2.0.0" ] } ], "dateCreated": "2024-07-23T17:52:53.981206Z", "dateUpdated": "2024-07-23T17:52:53.981206Z", "legacyFilter": null } ], "summary": "List custom inbound filters" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true }, "post": { "operationId": "Create a Custom Inbound Filter", "description": "**Experimental:** This API is under active development and may change.\n\nCreate a custom inbound filter for a project.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "readOnly": true, "description": "The ID of the filter." }, "dataType": { "enum": [ "all", "error", "log", "metric", "span" ], "type": "string", "description": "The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for.\n\n* `all`\n* `error`\n* `log`\n* `metric`\n* `span`" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "type": { "enum": [ "error_type", "error_message", "log_message", "metric_name", "release", "environment", "ip_address", "geo_country_code" ], "type": "string", "description": "The field the condition matches against. Every `dataType` accepts `release`, `environment` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.\n\n* `error_type`\n* `error_message`\n* `log_message`\n* `metric_name`\n* `release`\n* `environment`\n* `ip_address`\n* `geo_country_code`" }, "operator": { "enum": [ "glob", "equals", "starts_with", "contains", "ends_with", "does_not_start_with", "does_not_contain", "does_not_end_with", "cidr", "not_cidr", "gt", "gte", "lt", "lte" ], "type": "string", "description": "How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release`.\n\n* `glob`\n* `equals`\n* `starts_with`\n* `contains`\n* `ends_with`\n* `does_not_start_with`\n* `does_not_contain`\n* `does_not_end_with`\n* `cidr`\n* `not_cidr`\n* `gt`\n* `gte`\n* `lt`\n* `lte`" }, "value": { "type": "array", "items": { "type": "string" }, "description": "The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package." } }, "required": [ "type", "value" ] }, "description": "Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters." }, "dateCreated": { "type": "string", "format": "date-time", "readOnly": true, "description": "When the filter was created." }, "dateUpdated": { "type": "string", "format": "date-time", "readOnly": true, "description": "When the filter was last changed." }, "legacyFilter": { "type": "string", "readOnly": true, "nullable": true, "description": "Set on a filter that holds one of the filter lists of the project settings, to the id its outcomes are reported under. Such a filter keeps its data type and its one condition: only the name, the active flag and the condition values can change, and deleting it empties the list." }, "name": { "type": "string", "nullable": true, "description": "A human-readable label for the filter.", "maxLength": 256 }, "active": { "type": "boolean", "description": "Whether the filter drops matching data. An inactive filter is kept but ignored." } }, "required": [ "conditions", "dataType", "dateCreated", "dateUpdated", "id", "legacyFilter" ] } } }, "required": true }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "readOnly": true, "description": "The ID of the filter." }, "dataType": { "enum": [ "all", "error", "log", "metric", "span" ], "type": "string", "description": "The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for.\n\n* `all`\n* `error`\n* `log`\n* `metric`\n* `span`" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "type": { "enum": [ "error_type", "error_message", "log_message", "metric_name", "release", "environment", "ip_address", "geo_country_code" ], "type": "string", "description": "The field the condition matches against. Every `dataType` accepts `release`, `environment` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.\n\n* `error_type`\n* `error_message`\n* `log_message`\n* `metric_name`\n* `release`\n* `environment`\n* `ip_address`\n* `geo_country_code`" }, "operator": { "enum": [ "glob", "equals", "starts_with", "contains", "ends_with", "does_not_start_with", "does_not_contain", "does_not_end_with", "cidr", "not_cidr", "gt", "gte", "lt", "lte" ], "type": "string", "description": "How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release`.\n\n* `glob`\n* `equals`\n* `starts_with`\n* `contains`\n* `ends_with`\n* `does_not_start_with`\n* `does_not_contain`\n* `does_not_end_with`\n* `cidr`\n* `not_cidr`\n* `gt`\n* `gte`\n* `lt`\n* `lte`" }, "value": { "type": "array", "items": { "type": "string" }, "description": "The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package." } }, "required": [ "type", "value" ] }, "description": "Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters." }, "dateCreated": { "type": "string", "format": "date-time", "readOnly": true, "description": "When the filter was created." }, "dateUpdated": { "type": "string", "format": "date-time", "readOnly": true, "description": "When the filter was last changed." }, "legacyFilter": { "type": "string", "readOnly": true, "nullable": true, "description": "Set on a filter that holds one of the filter lists of the project settings, to the id its outcomes are reported under. Such a filter keeps its data type and its one condition: only the name, the active flag and the condition values can change, and deleting it empties the list." }, "name": { "type": "string", "nullable": true, "description": "A human-readable label for the filter.", "maxLength": 256 }, "active": { "type": "boolean", "description": "Whether the filter drops matching data. An inactive filter is kept but ignored." } }, "required": [ "conditions", "dataType", "dateCreated", "dateUpdated", "id", "legacyFilter" ] }, "examples": { "CustomInboundFilter": { "value": { "id": "42", "name": "Drop TypeErrors from the 1.x releases", "active": true, "dataType": "error", "conditions": [ { "type": "error_type", "operator": "equals", "value": [ "TypeError" ] }, { "type": "error_message", "operator": "contains", "value": [ "undefined" ] }, { "type": "release", "operator": "lt", "value": [ "2.0.0" ] } ], "dateCreated": "2024-07-23T17:52:53.981206Z", "dateUpdated": "2024-07-23T17:52:53.981206Z", "legacyFilter": null }, "summary": "Custom inbound filter" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/custom-inbound-filters/{filter_id}/": { "get": { "operationId": "Retrieve a Custom Inbound Filter", "description": "**Experimental:** This API is under active development and may change.\n\nRetrieve a single custom inbound filter.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "filter_id", "schema": { "type": "string" }, "description": "The ID of the custom inbound filter.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "readOnly": true, "description": "The ID of the filter." }, "dataType": { "enum": [ "all", "error", "log", "metric", "span" ], "type": "string", "description": "The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for.\n\n* `all`\n* `error`\n* `log`\n* `metric`\n* `span`" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "type": { "enum": [ "error_type", "error_message", "log_message", "metric_name", "release", "environment", "ip_address", "geo_country_code" ], "type": "string", "description": "The field the condition matches against. Every `dataType` accepts `release`, `environment` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.\n\n* `error_type`\n* `error_message`\n* `log_message`\n* `metric_name`\n* `release`\n* `environment`\n* `ip_address`\n* `geo_country_code`" }, "operator": { "enum": [ "glob", "equals", "starts_with", "contains", "ends_with", "does_not_start_with", "does_not_contain", "does_not_end_with", "cidr", "not_cidr", "gt", "gte", "lt", "lte" ], "type": "string", "description": "How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release`.\n\n* `glob`\n* `equals`\n* `starts_with`\n* `contains`\n* `ends_with`\n* `does_not_start_with`\n* `does_not_contain`\n* `does_not_end_with`\n* `cidr`\n* `not_cidr`\n* `gt`\n* `gte`\n* `lt`\n* `lte`" }, "value": { "type": "array", "items": { "type": "string" }, "description": "The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package." } }, "required": [ "type", "value" ] }, "description": "Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters." }, "dateCreated": { "type": "string", "format": "date-time", "readOnly": true, "description": "When the filter was created." }, "dateUpdated": { "type": "string", "format": "date-time", "readOnly": true, "description": "When the filter was last changed." }, "legacyFilter": { "type": "string", "readOnly": true, "nullable": true, "description": "Set on a filter that holds one of the filter lists of the project settings, to the id its outcomes are reported under. Such a filter keeps its data type and its one condition: only the name, the active flag and the condition values can change, and deleting it empties the list." }, "name": { "type": "string", "nullable": true, "description": "A human-readable label for the filter.", "maxLength": 256 }, "active": { "type": "boolean", "description": "Whether the filter drops matching data. An inactive filter is kept but ignored." } }, "required": [ "conditions", "dataType", "dateCreated", "dateUpdated", "id", "legacyFilter" ] }, "examples": { "CustomInboundFilter": { "value": { "id": "42", "name": "Drop TypeErrors from the 1.x releases", "active": true, "dataType": "error", "conditions": [ { "type": "error_type", "operator": "equals", "value": [ "TypeError" ] }, { "type": "error_message", "operator": "contains", "value": [ "undefined" ] }, { "type": "release", "operator": "lt", "value": [ "2.0.0" ] } ], "dateCreated": "2024-07-23T17:52:53.981206Z", "dateUpdated": "2024-07-23T17:52:53.981206Z", "legacyFilter": null }, "summary": "Custom inbound filter" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true }, "put": { "operationId": "Update a Custom Inbound Filter", "description": "**Experimental:** This API is under active development and may change.\n\nUpdate a custom inbound filter's name, active state, or conditions.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "filter_id", "schema": { "type": "string" }, "description": "The ID of the custom inbound filter.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "readOnly": true, "description": "The ID of the filter." }, "dataType": { "enum": [ "all", "error", "log", "metric", "span" ], "type": "string", "description": "The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for.\n\n* `all`\n* `error`\n* `log`\n* `metric`\n* `span`" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "type": { "enum": [ "error_type", "error_message", "log_message", "metric_name", "release", "environment", "ip_address", "geo_country_code" ], "type": "string", "description": "The field the condition matches against. Every `dataType` accepts `release`, `environment` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.\n\n* `error_type`\n* `error_message`\n* `log_message`\n* `metric_name`\n* `release`\n* `environment`\n* `ip_address`\n* `geo_country_code`" }, "operator": { "enum": [ "glob", "equals", "starts_with", "contains", "ends_with", "does_not_start_with", "does_not_contain", "does_not_end_with", "cidr", "not_cidr", "gt", "gte", "lt", "lte" ], "type": "string", "description": "How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release`.\n\n* `glob`\n* `equals`\n* `starts_with`\n* `contains`\n* `ends_with`\n* `does_not_start_with`\n* `does_not_contain`\n* `does_not_end_with`\n* `cidr`\n* `not_cidr`\n* `gt`\n* `gte`\n* `lt`\n* `lte`" }, "value": { "type": "array", "items": { "type": "string" }, "description": "The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package." } }, "required": [ "type", "value" ] }, "description": "Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters." }, "dateCreated": { "type": "string", "format": "date-time", "readOnly": true, "description": "When the filter was created." }, "dateUpdated": { "type": "string", "format": "date-time", "readOnly": true, "description": "When the filter was last changed." }, "legacyFilter": { "type": "string", "readOnly": true, "nullable": true, "description": "Set on a filter that holds one of the filter lists of the project settings, to the id its outcomes are reported under. Such a filter keeps its data type and its one condition: only the name, the active flag and the condition values can change, and deleting it empties the list." }, "name": { "type": "string", "nullable": true, "description": "A human-readable label for the filter.", "maxLength": 256 }, "active": { "type": "boolean", "description": "Whether the filter drops matching data. An inactive filter is kept but ignored." } }, "required": [ "conditions", "dataType", "dateCreated", "dateUpdated", "id", "legacyFilter" ] } } }, "required": true }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "readOnly": true, "description": "The ID of the filter." }, "dataType": { "enum": [ "all", "error", "log", "metric", "span" ], "type": "string", "description": "The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for.\n\n* `all`\n* `error`\n* `log`\n* `metric`\n* `span`" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "type": { "enum": [ "error_type", "error_message", "log_message", "metric_name", "release", "environment", "ip_address", "geo_country_code" ], "type": "string", "description": "The field the condition matches against. Every `dataType` accepts `release`, `environment` and `ip_address`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types.\n\n* `error_type`\n* `error_message`\n* `log_message`\n* `metric_name`\n* `release`\n* `environment`\n* `ip_address`\n* `geo_country_code`" }, "operator": { "enum": [ "glob", "equals", "starts_with", "contains", "ends_with", "does_not_start_with", "does_not_contain", "does_not_end_with", "cidr", "not_cidr", "gt", "gte", "lt", "lte" ], "type": "string", "description": "How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release`.\n\n* `glob`\n* `equals`\n* `starts_with`\n* `contains`\n* `ends_with`\n* `does_not_start_with`\n* `does_not_contain`\n* `does_not_end_with`\n* `cidr`\n* `not_cidr`\n* `gt`\n* `gte`\n* `lt`\n* `lte`" }, "value": { "type": "array", "items": { "type": "string" }, "description": "The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package." } }, "required": [ "type", "value" ] }, "description": "Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters." }, "dateCreated": { "type": "string", "format": "date-time", "readOnly": true, "description": "When the filter was created." }, "dateUpdated": { "type": "string", "format": "date-time", "readOnly": true, "description": "When the filter was last changed." }, "legacyFilter": { "type": "string", "readOnly": true, "nullable": true, "description": "Set on a filter that holds one of the filter lists of the project settings, to the id its outcomes are reported under. Such a filter keeps its data type and its one condition: only the name, the active flag and the condition values can change, and deleting it empties the list." }, "name": { "type": "string", "nullable": true, "description": "A human-readable label for the filter.", "maxLength": 256 }, "active": { "type": "boolean", "description": "Whether the filter drops matching data. An inactive filter is kept but ignored." } }, "required": [ "conditions", "dataType", "dateCreated", "dateUpdated", "id", "legacyFilter" ] }, "examples": { "CustomInboundFilter": { "value": { "id": "42", "name": "Drop TypeErrors from the 1.x releases", "active": true, "dataType": "error", "conditions": [ { "type": "error_type", "operator": "equals", "value": [ "TypeError" ] }, { "type": "error_message", "operator": "contains", "value": [ "undefined" ] }, { "type": "release", "operator": "lt", "value": [ "2.0.0" ] } ], "dateCreated": "2024-07-23T17:52:53.981206Z", "dateUpdated": "2024-07-23T17:52:53.981206Z", "legacyFilter": null }, "summary": "Custom inbound filter" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true, "x-sentry-experimental": true }, "delete": { "operationId": "Delete a Custom Inbound Filter", "description": "**Experimental:** This API is under active development and may change.\n\nDelete a custom inbound filter.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "filter_id", "schema": { "type": "string" }, "description": "The ID of the custom inbound filter.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "204": { "description": "No response body" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/environments/": { "get": { "operationId": "listProjectEnvironments", "description": "Lists a project's environments.", "summary": "List a Project's Environments", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "visibility", "schema": { "enum": [ "all", "hidden", "visible" ], "type": "string", "default": "visible", "minLength": 1 }, "description": "The visibility of the environments to filter by. Defaults to `visible`.\n\n* `all`\n* `hidden`\n* `visible`" } ], "tags": [ "Environments" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the environment" }, "name": { "type": "string", "description": "Name of the environment" }, "isHidden": { "type": "boolean", "description": "Whether the environment is hidden in the project" } }, "required": [ "id", "isHidden", "name" ] } }, "examples": { "ListAProject'sEnvironments": { "value": [ { "id": "1", "name": "Production", "isHidden": false }, { "id": "2", "name": "Staging", "isHidden": true } ], "summary": "List a Project's Environments" } } } }, "description": "" }, "400": { "description": "Invalid value for 'visibility'." }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "Bulk Update Project Environments", "description": "Bulk update the visibility for a project's environments.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Environments" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "environmentNames": { "type": "array", "items": { "type": "string" }, "description": "List of environment names to update. Maximum 1000.", "maxItems": 1000 }, "isHidden": { "type": "boolean", "description": "Specify `true` to hide or `false` to show the specified environments." } }, "required": [ "environmentNames", "isHidden" ] } } }, "required": true }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the environment" }, "name": { "type": "string", "description": "Name of the environment" }, "isHidden": { "type": "boolean", "description": "Whether the environment is hidden in the project" } }, "required": [ "id", "isHidden", "name" ] } }, "examples": { "ListAProject'sEnvironments": { "value": [ { "id": "1", "name": "Production", "isHidden": false }, { "id": "2", "name": "Staging", "isHidden": true } ], "summary": "List a Project's Environments" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/environments/{environment}/": { "get": { "operationId": "getProjectEnvironment", "description": "Return details on a project environment.", "summary": "Retrieve a Project Environment", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "environment", "schema": { "type": "string" }, "description": "The name of the environment.", "required": true } ], "tags": [ "Environments" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the environment" }, "name": { "type": "string", "description": "Name of the environment" }, "isHidden": { "type": "boolean", "description": "Whether the environment is hidden in the project" } }, "required": [ "id", "isHidden", "name" ] }, "examples": { "RetrieveAProjectEnvironment": { "value": { "id": "1", "name": "Production", "isHidden": false }, "summary": "Retrieve a Project Environment" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateProjectEnvironment", "description": "Update the visibility for a project environment.", "summary": "Update a Project Environment", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "environment", "schema": { "type": "string" }, "description": "The name of the environment.", "required": true } ], "tags": [ "Environments" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "isHidden": { "type": "boolean", "description": "Specify `true` to make the environment visible or `false` to make the environment hidden." } }, "required": [ "isHidden" ] } } }, "required": true }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the environment" }, "name": { "type": "string", "description": "Name of the environment" }, "isHidden": { "type": "boolean", "description": "Whether the environment is hidden in the project" } }, "required": [ "id", "isHidden", "name" ] }, "examples": { "RetrieveAProjectEnvironment": { "value": { "id": "1", "name": "Production", "isHidden": false }, "summary": "Retrieve a Project Environment" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/events/": { "get": { "operationId": "listProjectEvents", "description": "Return a list of events bound to a project.", "summary": "List a Project's Error Events", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "statsPeriodStart", "schema": { "type": "string" }, "description": "How long ago the query period starts, in the same format as `statsPeriod`. Must be sent with `statsPeriodEnd`, and is ignored when `statsPeriod` is sent." }, { "in": "query", "name": "statsPeriodEnd", "schema": { "type": "string" }, "description": "How long ago the query period ends, in the same format as `statsPeriod`. Must be sent with `statsPeriodStart`, and is ignored when `statsPeriod` is sent." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "full", "schema": { "type": "boolean", "default": false }, "description": "Specify true to include the full event body, including the stacktrace, in the event payload. When true, the page size is capped at 10." }, { "in": "query", "name": "sample", "schema": { "type": "boolean", "default": false }, "description": "Return events in pseudo-random order. This is deterministic so an identical query will always return the same events in the same order." } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "event.type": { "type": "string", "description": "Event type, such as error, default or transaction" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" }, "name": { "type": "string", "nullable": true, "description": "Name of the user" }, "geo": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Location of the user, with keys such as country_code, city and region" }, "data": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Extra data the SDK sent about the user" } }, "nullable": true, "description": "User context of the event" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query that matches this tag's user, such as user.email:\"user@example.com\". Only set for user tags" }, "key": { "type": "string", "description": "Tag key" }, "value": { "type": "string", "description": "Tag value" } }, "required": [ "key", "value" ] }, "description": "Tags attached to the event" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } } }, "required": [ "crashFile", "culprit", "dateCreated", "event.type", "eventID", "groupID", "id", "location", "message", "metadata", "platform", "projectID", "tags", "title", "user" ] } }, "examples": { "ReturnAListOfErrorEventsBoundToAProject": { "value": [ { "eventID": "9fac2ceed9344f2bbfdd1fdacb0ed9b1", "tags": [ { "key": "browser", "value": "Chrome 60.0" }, { "key": "device", "value": "Other" }, { "key": "environment", "value": "production" }, { "value": "fatal", "key": "level" }, { "key": "os", "value": "Mac OS X 10.12.6" }, { "value": "CPython 2.7.16", "key": "runtime" }, { "key": "release", "value": "17642328ead24b51867165985996d04b29310337" }, { "key": "server_name", "value": "web1.example.com" } ], "dateCreated": "2020-09-11T17:46:36Z", "user": null, "message": "", "title": "This is an example Python exception", "id": "dfb1a2d057194e76a4186cc8a5271553", "platform": "python", "event.type": "error", "groupID": "1889724436", "crashFile": null, "location": "example.py:123", "culprit": "/books/new/", "projectID": "49271", "metadata": { "type": "ExampleException", "value": "This is an example Python exception" } } ], "summary": "Return a list of error events bound to a project" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/events/{event_id}/": { "get": { "operationId": "getProjectEvent", "description": "Return details on an individual event.", "summary": "Retrieve an Event for a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "event_id", "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "description": "The ID of the event. It is a 32-character hexadecimal string as reported by the client.", "required": true }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "statsPeriodStart", "schema": { "type": "string" }, "description": "How long ago the query period starts, in the same format as `statsPeriod`. Must be sent with `statsPeriodEnd`, and is ignored when `statsPeriod` is sent." }, { "in": "query", "name": "statsPeriodEnd", "schema": { "type": "string" }, "description": "How long ago the query period ends, in the same format as `statsPeriod`. Must be sent with `statsPeriodStart`, and is ignored when `statsPeriod` is sent." }, { "in": "query", "name": "collapse", "schema": { "type": "array", "items": { "type": "string", "enum": [ "adjacentEvents" ] } }, "description": "Parts of the response to skip computing. Specify `adjacentEvents` to skip looking up the neighboring events in the issue; `nextEventID` and `previousEventID` are then always `null`. Unknown values are ignored." } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "nullable": true, "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateReceived": { "type": "string", "format": "date-time", "nullable": true, "description": "When Sentry received the event (ISO 8601)" }, "size": { "type": "integer", "nullable": true, "description": "Size of the event payload in bytes" }, "entries": { "type": "array", "items": {}, "description": "Event interfaces, such as exception, breadcrumbs and request, each with a type and data" }, "dist": { "type": "string", "nullable": true, "description": "Distribution of the release the event was sent with" }, "packages": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Modules loaded when the event occurred, keyed by module name with their versions" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type, such as error, default or transaction" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "occurrence": { "anyOf": [ { "type": "object", "description": "A metric issue occurrence. `evidenceData` describes the detector and query that fired.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "enum": [ 8001 ], "type": "integer", "description": "Group type ID of metric issues, always 8001" }, "evidenceData": { "type": "object", "properties": { "detectorId": { "type": "integer", "description": "ID of the detector that created the occurrence" }, "alertId": { "type": "integer", "nullable": true, "description": "ID of the metric alert rule the detector replaces. Null when there's none" }, "value": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Metric value the anomaly detection model scored" }, "sourceId": { "type": "string", "description": "ID of the data source that produced the value" }, "subscriptionId": { "type": "string", "description": "ID of the query subscription that produced the value" }, "timestamp": { "type": "string", "description": "When the value was measured" } }, "required": [ "sourceId", "subscriptionId", "timestamp", "value" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Metric value that triggered the detector, or the anomaly detection result for dynamic detectors" }, "dataPacketSourceId": { "type": "string", "description": "ID of the query subscription that sent the data" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the detector condition" }, "type": { "type": "string", "description": "Type of the condition, such as gt, lt or anomaly_detection" }, "comparison": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "sensitivity": { "enum": [ "low", "medium", "high" ], "type": "string", "description": "How sensitive the anomaly detection is" }, "seasonality": { "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "type": "string", "description": "Seasonality the anomaly detection model uses" }, "thresholdType": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "Direction of anomalies to detect: 0 above, 1 below, 2 above and below" } }, "required": [ "seasonality", "sensitivity", "thresholdType" ] } ], "description": "Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition" }, "conditionResult": { "type": "integer", "description": "Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions of the detector" }, "config": { "type": "object", "properties": { "detectionType": { "enum": [ "static", "percent", "dynamic" ], "type": "string", "description": "How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection" }, "comparisonDelta": { "type": "integer", "nullable": true, "description": "Time window in seconds that a percent change detector compares with" } }, "required": [ "detectionType" ], "description": "Configuration of the detector" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "type": "string", "description": "Type of the data source, such as snuba_query_subscription" }, "sourceId": { "type": "string", "description": "ID of the source object, such as the query subscription" }, "queryObj": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ], "description": "Query subscription the data source reads" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "description": "Data sources of the detector" } }, "required": [ "alertId", "conditions", "config", "dataPacketSourceId", "dataSources", "detectorId", "value" ], "description": "Detector and query that created the occurrence" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "description": "An issue occurrence of any type. `evidenceData` keys are camelCase.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "type": "integer", "description": "Group type ID of the occurrence" }, "evidenceData": { "type": "object", "additionalProperties": {}, "description": "Data of the occurrence. Its keys depend on the group type" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise" }, "_meta": { "type": "object", "additionalProperties": {}, "description": "Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" }, "name": { "type": "string", "nullable": true, "description": "Name of the user" }, "geo": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Location of the user, with keys such as country_code, city and region" }, "data": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Extra data the SDK sent about the user" } }, "nullable": true, "description": "User context of the event" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query that matches this tag's user, such as user.email:\"user@example.com\". Only set for user tags" }, "key": { "type": "string", "description": "Tag key" }, "value": { "type": "string", "description": "Tag value" } }, "required": [ "key", "value" ] }, "description": "Tags attached to the event" }, "contexts": { "type": "object", "nullable": true, "additionalProperties": { "anyOf": [ { "description": "Application information.\n\n App context describes the application. As opposed to the runtime, this is the actual\n application that was running and carries metadata about the current session.", "type": "object", "additionalProperties": true, "properties": { "app_build": { "description": "Internal build ID as it appears on the platform.", "type": "string", "nullable": true }, "app_identifier": { "description": "Version-independent application identifier, often a dotted bundle ID.", "type": "string", "nullable": true }, "app_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Amount of memory used by the application in bytes." }, "app_name": { "description": "Application name as it appears on the platform.", "type": "string", "nullable": true }, "app_start_time": { "description": "Start time of the app.\n\n Formatted UTC timestamp when the user started the application.", "type": "string", "nullable": true }, "app_version": { "description": "Application version as it appears on the platform.", "type": "string", "nullable": true }, "build_type": { "description": "String identifying the kind of build. For example, `testflight`.", "type": "string", "nullable": true }, "device_app_hash": { "description": "Application-specific device identifier.", "type": "string", "nullable": true }, "in_foreground": { "description": "A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user.", "type": "boolean", "nullable": true }, "view_names": { "description": "The names of the currently visible views.", "type": "array", "items": { "type": "string", "nullable": true }, "nullable": true }, "type": { "type": "string", "enum": [ "app" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Web browser information.", "type": "object", "additionalProperties": true, "properties": { "name": { "description": "Display name of the browser application.", "type": "string", "nullable": true }, "version": { "description": "Version string of the browser.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "browser" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "default" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true }, { "description": "Device information.\n\n Device context describes the device that caused the event. This is most appropriate for mobile\n applications.", "type": "object", "additionalProperties": true, "properties": { "arch": { "description": "Native cpu architecture of the device.", "type": "string", "nullable": true }, "battery_level": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Current battery level in %.\n\n If the device has a battery, this can be a floating point value defining the battery level\n (in the range 0-100)." }, "battery_status": { "description": "Status of the device's battery.\n\n For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`.", "type": "string", "nullable": true }, "boot_time": { "description": "Indicator when the device was booted.", "type": "string", "nullable": true }, "brand": { "description": "Brand of the device.", "type": "string", "nullable": true }, "charging": { "description": "Whether the device was charging or not.", "type": "boolean", "nullable": true }, "cpu_description": { "description": "CPU description.\n\n For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz.", "type": "string", "nullable": true }, "device_type": { "description": "Kind of device the application is running on.\n\n For example, `Unknown`, `Handheld`, `Console`, `Desktop`.", "type": "string", "nullable": true }, "device_unique_identifier": { "description": "Unique device identifier.", "type": "string", "nullable": true }, "external_free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Free size of the attached external storage in bytes (eg: android SDK card)." }, "external_storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total size of the attached external storage in bytes (eg: android SDK card)." }, "family": { "description": "Family of the device model.\n\n This is usually the common part of model names across generations. For instance, `iPhone`\n would be a reasonable family, so would be `Samsung Galaxy`.", "type": "string", "nullable": true }, "free_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is still available in bytes." }, "free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much storage is free in bytes." }, "locale": { "description": "ISO 639-1 code of the locale the device is set to.", "type": "string", "nullable": true }, "low_memory": { "description": "Whether the device was low on memory.", "type": "boolean", "nullable": true }, "manufacturer": { "description": "Manufacturer of the device.", "type": "string", "nullable": true }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total memory available in bytes." }, "model": { "description": "Device model.\n\n This, for example, can be `Samsung Galaxy S3`.", "type": "string", "nullable": true }, "model_id": { "description": "Device model (internal identifier).\n\n An internal hardware revision to identify the device exactly.", "type": "string", "nullable": true }, "name": { "description": "Name of the device.", "type": "string", "nullable": true }, "online": { "description": "Whether the device was online or not.", "type": "boolean", "nullable": true }, "orientation": { "description": "Current screen orientation.\n\n This can be a string `portrait` or `landscape` to define the orientation of a device.", "type": "string", "nullable": true }, "processor_count": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Number of \"logical processors\".\n\n For example, 8." }, "processor_frequency": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Processor frequency in MHz.\n\n Note that the actual CPU frequency might vary depending on current load and\n power conditions, especially on low-powered devices like phones and laptops." }, "screen_density": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Device screen density." }, "screen_dpi": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Screen density as dots-per-inch." }, "screen_height_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Height of the screen in pixels." }, "screen_resolution": { "description": "Device screen resolution.\n\n (e.g.: 800x600, 3040x1444)", "type": "string", "nullable": true }, "screen_width_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Width of the screen in pixels." }, "simulator": { "description": "Simulator/prod indicator.", "type": "boolean", "nullable": true }, "storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total storage size of the device in bytes." }, "supports_accelerometer": { "description": "Whether the accelerometer is available on the device.", "type": "boolean", "nullable": true }, "supports_audio": { "description": "Whether audio is available on the device.", "type": "boolean", "nullable": true }, "supports_gyroscope": { "description": "Whether the gyroscope is available on the device.", "type": "boolean", "nullable": true }, "supports_location_service": { "description": "Whether location support is available on the device.", "type": "boolean", "nullable": true }, "supports_vibration": { "description": "Whether vibration is available on the device.", "type": "boolean", "nullable": true }, "timezone": { "description": "Timezone of the device.", "type": "string", "nullable": true }, "usable_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is usable for the app in bytes." }, "uuid": { "description": "UUID of the device.", "type": "string", "format": "uuid", "nullable": true }, "type": { "type": "string", "enum": [ "device" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "GPU information.\n\n Example:\n\n ```json\n \"gpu\": {\n \"name\": \"AMD Radeon Pro 560\",\n \"vendor_name\": \"Apple\",\n \"memory_size\": 4096,\n \"api_type\": \"Metal\",\n \"multi_threaded_rendering\": true,\n \"version\": \"Metal\",\n \"npot_support\": \"Full\"\n }\n ```", "type": "object", "additionalProperties": true, "properties": { "api_type": { "description": "The device low-level API type.\n\n Examples: `\"Apple Metal\"` or `\"Direct3D11\"`", "type": "string", "nullable": true }, "graphics_shader_level": { "description": "Approximate \"shader capability\" level of the graphics device.\n\n For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown)", "type": "string", "nullable": true }, "id": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "The PCI identifier of the graphics device." }, "max_texture_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Largest size of a texture that is supported by the graphics hardware.\n\n For Example: 16384" }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The total GPU memory available in Megabytes." }, "multi_threaded_rendering": { "description": "Whether the GPU has multi-threaded rendering or not.", "type": "boolean", "nullable": true }, "name": { "description": "The name of the graphics device.", "type": "string", "nullable": true }, "npot_support": { "description": "The Non-Power-Of-Two support.", "type": "string", "nullable": true }, "supports_compute_shaders": { "description": "Whether compute shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_draw_call_instancing": { "description": "Whether GPU draw call instancing is supported.", "type": "boolean", "nullable": true }, "supports_geometry_shaders": { "description": "Whether geometry shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_ray_tracing": { "description": "Whether ray tracing is available on the device.", "type": "boolean", "nullable": true }, "vendor_id": { "description": "The PCI vendor identifier of the graphics device.", "type": "string", "nullable": true }, "vendor_name": { "description": "The vendor name as reported by the graphics device.", "type": "string", "nullable": true }, "version": { "description": "The Version of the graphics device.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "gpu" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Monitor information.", "type": "object", "additionalProperties": true, "properties": { "type": { "type": "string", "enum": [ "monitor" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Operating system information.\n\n OS context describes the operating system on which the event was created. In web contexts, this\n is the operating system of the browser (generally pulled from the User-Agent string).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Internal build number of the operating system.", "type": "string", "nullable": true }, "kernel_version": { "description": "Current kernel version.\n\n This is typically the entire output of the `uname` syscall.", "type": "string", "nullable": true }, "name": { "description": "Name of the operating system.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed operating system info.\n\n An unprocessed description string obtained by the operating system. For some well-known\n runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are\n not explicitly given.", "type": "string", "nullable": true }, "rooted": { "description": "Indicator if the OS is rooted (mobile mostly).", "type": "boolean", "nullable": true }, "version": { "description": "Version of the operating system.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "os" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "OpenTelemetry Context\n\n If an event has this context, it was generated from an OpenTelemetry signal (trace, metric, log).", "type": "object", "additionalProperties": true, "properties": { "attributes": { "description": "Attributes of the OpenTelemetry span that maps to a Sentry event.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "resource": { "description": "Information about an OpenTelemetry resource.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "type": { "type": "string", "enum": [ "otel" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Runtime information.\n\n Runtime context describes a runtime in more detail. Typically, this context is present in\n `contexts` multiple times if multiple runtimes are involved (for instance, if you have a\n JavaScript application running on top of JVM).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Application build string, if it is separate from the version.", "type": "string", "nullable": true }, "name": { "description": "Runtime name.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed runtime info.\n\n An unprocessed description string obtained by the runtime. For some well-known runtimes,\n Sentry will attempt to parse `name` and `version` from this string, if they are not\n explicitly given.", "type": "string", "nullable": true }, "version": { "description": "Runtime version string.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "runtime" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Trace context", "type": "object", "additionalProperties": true, "properties": { "client_sample_rate": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The client-side sample rate as reported in the envelope's `trace.sample_rate` header.\n\n The server takes this field from envelope headers and writes it back into the event. Clients\n should not ever send this value." }, "exclusive_time": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The amount of time in milliseconds spent in this transaction span,\n excluding its immediate child spans." }, "op": { "description": "Span type (see `OperationType` docs).", "type": "string", "nullable": true }, "origin": { "description": "The origin of the trace indicates what created the trace (see [OriginType] docs).", "type": "string", "nullable": true }, "parent_span_id": { "description": "The ID of the span enclosing this span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "sampled": { "description": "Track whether the trace connected to this event has been sampled entirely.\n\n This flag only applies to events with [`Error`] type that have an associated dynamic sampling context.", "type": "boolean", "nullable": true }, "span_id": { "description": "The ID of the span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "status": { "description": "Whether the trace failed or succeeded. Currently only used to indicate status of individual\n transactions.", "nullable": true, "type": "string", "enum": [ "ok", "cancelled", "unknown", "invalid_argument", "deadline_exceeded", "not_found", "already_exists", "permission_denied", "resource_exhausted", "failed_precondition", "aborted", "out_of_range", "unimplemented", "internal_error", "unavailable", "data_loss", "unauthenticated", null ] }, "trace_id": { "description": "The trace ID.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "type": { "type": "string", "enum": [ "trace" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "unity" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true } ] }, "description": "Contexts of the event, such as device, os, browser and runtime, keyed by alias" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the SDK that sent the event, such as sentry.python" }, "version": { "type": "string", "nullable": true, "description": "Version of the SDK" } }, "required": [ "name", "version" ], "nullable": true, "description": "SDK that sent the event" }, "context": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Additional data sent with the event in its extra field" }, "errors": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Type of the processing error, such as invalid_data or js_no_source" }, "message": { "type": "string", "description": "Human-readable message of the error" }, "data": { "type": "object", "description": "Details of the error, such as the name of the invalid field. Other keys depend on the error type", "properties": { "name": { "type": "string", "nullable": true, "description": "Affected key or path in the event" }, "message": { "type": "string", "description": "Details of the error from the processor that hit it" }, "url": { "type": "string", "description": "URL that couldn't be fetched, such as a source file" }, "image_path": { "type": "string", "description": "Path of the debug image the error is about" }, "image_name": { "type": "string", "description": "Name of the debug image the error is about" }, "image_uuid": { "type": "string", "description": "Debug ID of the image the error is about" }, "image_arch": { "type": "string", "description": "CPU architecture of the image the error is about" }, "symbolicator_type": { "type": "string", "description": "Error type Symbolicator reported, such as missing_source" }, "source": { "type": "string", "description": "Source file or URL the error is about" }, "sourcemap": { "type": "string", "description": "Source map the error is about" }, "row": { "type": "integer", "description": "Line of the location that couldn't be mapped" }, "column": { "type": "integer", "description": "Column of the location that couldn't be mapped" }, "sdk_time": { "type": "string", "description": "Time the SDK reported, for clock drift errors" }, "server_time": { "type": "string", "description": "Time the server received the event, for clock drift errors" } } } }, "required": [ "data", "message", "type" ] }, "description": "Errors Sentry found while processing the event" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "fingerprints": { "type": "array", "items": { "type": "string" }, "description": "Grouping hashes calculated for the event" }, "groupingConfig": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the grouping config, such as newstyle:2026-01-20" }, "enhancements": { "type": "string", "description": "Stack trace rules of the project, as an encoded string" } }, "required": [ "enhancements", "id" ], "description": "Grouping configuration used to group the event" }, "startTimestamp": { "type": "number", "format": "double", "description": "When the transaction started, as a Unix timestamp in seconds" }, "endTimestamp": { "type": "number", "format": "double", "description": "When the transaction ended, as a Unix timestamp in seconds" }, "measurements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] }, "nullable": true, "description": "Measurements recorded for the transaction, such as web vitals, keyed by name" }, "breakdowns": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] } }, "nullable": true, "description": "Span operation breakdowns for the transaction, keyed by breakdown name" }, "release": { "type": "object", "properties": { "id": { "type": "integer", "description": "Release ID" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the release was created (ISO 8601)" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "version": { "type": "string", "nullable": true, "description": "Version of the release" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" } }, "nullable": true, "description": "Release the event was sent with. Null when the event has no release" }, "userReport": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the feedback" }, "eventID": { "type": "string", "description": "ID of the event the feedback is attached to" }, "name": { "type": "string", "nullable": true, "description": "Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user who submitted the feedback. Falls back to the event user's email address" }, "comments": { "type": "string", "description": "Comments the user submitted" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the feedback was submitted (ISO 8601)" }, "user": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the user, as sent with the event" }, "username": { "type": "string", "nullable": true, "description": "Username sent with the event" }, "email": { "type": "string", "nullable": true, "description": "Email address sent with the event" }, "name": { "type": "string", "nullable": true, "description": "Display name of the user: the name, email address or username sent with the event, whichever is set first" }, "ipAddress": { "type": "string", "nullable": true, "description": "IP address sent with the event" }, "avatarUrl": { "type": "string", "nullable": true, "description": "Gravatar URL for the user's email address" } }, "required": [ "avatarUrl", "email", "id", "ipAddress", "name", "username" ], "nullable": true, "description": "User recorded on the feedback's event. Null when the event isn't found or has no user" }, "event": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the event the feedback is attached to" }, "eventID": { "type": "string", "description": "ID of the event the feedback is attached to" } }, "required": [ "eventID", "id" ], "description": "Event the feedback is attached to" } }, "required": [ "comments", "dateCreated", "email", "event", "eventID", "id", "name", "user" ], "nullable": true, "description": "User feedback submitted for the event. Null when there's none" }, "sdkUpdates": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggested updates for the SDK that sent the event" }, "resolvedWith": { "type": "array", "items": { "type": "string" }, "description": "How the event's stack frames were resolved during processing, such as which source map lookup method was used" }, "nextEventID": { "type": "string", "nullable": true, "description": "ID of the next event in the issue. Null for the latest event or when adjacentEvents is collapsed" }, "previousEventID": { "type": "string", "nullable": true, "description": "ID of the previous event in the issue. Null for the first event or when adjacentEvents is collapsed" } }, "required": [ "_meta", "context", "contexts", "dateReceived", "dist", "entries", "errors", "eventID", "groupID", "id", "location", "message", "metadata", "nextEventID", "occurrence", "packages", "platform", "previousEventID", "projectID", "release", "resolvedWith", "sdk", "sdkUpdates", "size", "tags", "title", "type", "user", "userReport" ] }, "examples": { "ReturnAnIssueEvent": { "value": { "groupID": "1341191803", "eventID": "9999aaaaca8b46d797c23c6077c6ff01", "dist": null, "userReport": null, "previousEventID": null, "message": "", "title": "This is an example Python exception", "id": "9999aaafcc8b46d797c23c6077c6ff01", "size": 107762, "errors": [ { "data": { "column": 8, "source": "https://s1.sentry-cdn.com/_static/bloopbloop/sentry/dist/app.js.map", "row": 15 }, "message": "Invalid location in sourcemap", "type": "js_invalid_sourcemap_location" } ], "platform": "javascript", "nextEventID": "99f9e199e9a74a14bfef6196ad741619", "type": "error", "metadata": { "type": "ForbiddenError", "value": "GET /organizations/hellboy-meowmeow/users/ 403" }, "tags": [ { "value": "Chrome 83.0.4103", "key": "browser" }, { "value": "Chrome", "key": "browser.name" }, { "value": "prod", "key": "environment" }, { "value": "yes", "key": "handled" }, { "value": "error", "key": "level" }, { "value": "generic", "key": "mechanism" } ], "dateCreated": "2020-06-17T22:26:56.098086Z", "dateReceived": "2020-06-17T22:26:56.428721Z", "user": { "username": null, "name": "Hell Boy", "ip_address": "192.168.1.1", "email": "hell@boy.cat", "data": { "isStaff": false }, "id": "550747" }, "entries": [ { "type": "exception", "data": { "values": [ { "stacktrace": { "frames": [ { "function": "ignoreOnError", "errors": null, "colNo": 23, "vars": null, "package": null, "absPath": "webpack:////usr/src/getsentry/src/sentry/node_modules/@sentry/browser/esm/helpers.js", "inApp": false, "lineNo": 71, "module": "usr/src/getsentry/src/sentry/node_modules/@sentry/browser/esm/helpers", "filename": "/usr/src/getsentry/src/sentry/node_modules/@sentry/browser/esm/helpers.js", "platform": null, "instructionAddr": null, "context": [ [ 66, " }" ], [ 67, " // Attempt to invoke user-land function" ], [ 68, " // NOTE: If you are a Sentry user, and you are seeing this stack frame, it" ], [ 69, " // means the sentry.javascript SDK caught an error invoking your application code. This" ], [ 70, " // is expected behavior and NOT indicative of a bug with sentry.javascript." ], [ 71, " return fn.apply(this, wrappedArguments);" ], [ 72, " // tslint:enable:no-unsafe-any" ], [ 73, " }" ], [ 74, " catch (ex) {" ], [ 75, " ignoreNextOnError();" ], [ 76, " withScope(function (scope) {" ] ], "symbolAddr": null, "trust": null, "symbol": null }, { "function": "apply", "errors": null, "colNo": 24, "vars": null, "package": null, "absPath": "webpack:////usr/src/getsentry/src/sentry/node_modules/reflux-core/lib/PublisherMethods.js", "inApp": false, "lineNo": 74, "module": "usr/src/getsentry/src/sentry/node_modules/reflux-core/lib/PublisherMethods", "filename": "/usr/src/getsentry/src/sentry/node_modules/reflux-core/lib/PublisherMethods.js", "platform": null, "instructionAddr": null, "context": [ [ 69, " */" ], [ 70, " triggerAsync: function triggerAsync() {" ], [ 71, " var args = arguments," ], [ 72, " me = this;" ], [ 73, " _.nextTick(function () {" ], [ 74, " me.trigger.apply(me, args);" ], [ 75, " });" ], [ 76, " }," ], [ 77, "" ], [ 78, " /**" ], [ 79, " * Wraps the trigger mechanism with a deferral function." ] ], "symbolAddr": null, "trust": null, "symbol": null } ], "framesOmitted": null, "registers": null, "hasSystemFrames": true }, "module": null, "rawStacktrace": { "frames": [ { "function": "a", "errors": null, "colNo": 88800, "vars": null, "package": null, "absPath": "https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js", "inApp": false, "lineNo": 81, "module": null, "filename": "/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js", "platform": null, "instructionAddr": null, "context": [ [ 76, "/*!" ], [ 77, " Copyright (c) 2018 Jed Watson." ], [ 78, " Licensed under the MIT License (MIT), see" ], [ 79, " http://jedwatson.github.io/react-select" ], [ 80, "*/" ], [ 81, "{snip} e,t)}));return e.handleEvent?e.handleEvent.apply(this,s):e.apply(this,s)}catch(e){throw c(),Object(o.m)((function(n){n.addEventProcessor((fu {snip}" ], [ 82, "/*!" ], [ 83, " * JavaScript Cookie v2.2.1" ], [ 84, " * https://github.com/js-cookie/js-cookie" ], [ 85, " *" ], [ 86, " * Copyright 2006, 2015 Klaus Hartl & Fagner Brack" ] ], "symbolAddr": null, "trust": null, "symbol": null }, { "function": null, "errors": null, "colNo": 149484, "vars": null, "package": null, "absPath": "https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js", "inApp": false, "lineNo": 119, "module": null, "filename": "/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js", "platform": null, "instructionAddr": null, "context": [ [ 114, "/* @license" ], [ 115, "Papa Parse" ], [ 116, "v5.2.0" ], [ 117, "https://github.com/mholt/PapaParse" ], [ 118, "License: MIT" ], [ 119, "{snip} (){var e=arguments,t=this;r.nextTick((function(){t.trigger.apply(t,e)}))},deferWith:function(e){var t=this.trigger,n=this,r=function(){t.app {snip}" ], [ 120, "/**!" ], [ 121, " * @fileOverview Kickass library to create and place poppers near their reference elements." ], [ 122, " * @version 1.16.1" ], [ 123, " * @license" ], [ 124, " * Copyright (c) 2016 Federico Zivolo and contributors" ] ], "symbolAddr": null, "trust": null, "symbol": null } ], "framesOmitted": null, "registers": null, "hasSystemFrames": true }, "mechanism": { "type": "generic", "handled": true }, "threadId": null, "value": "GET /organizations/hellboy-meowmeow/users/ 403", "type": "ForbiddenError" } ], "excOmitted": null, "hasSystemFrames": true } }, { "type": "breadcrumbs", "data": { "values": [ { "category": "tracing", "level": "debug", "event_id": null, "timestamp": "2020-06-17T22:26:55.266586Z", "data": null, "message": "[Tracing] pushActivity: idleTransactionStarted#1", "type": "debug" }, { "category": "xhr", "level": "info", "event_id": null, "timestamp": "2020-06-17T22:26:55.619446Z", "data": { "url": "/api/0/internal/health/", "status_code": 200, "method": "GET" }, "message": null, "type": "http" }, { "category": "sentry.transaction", "level": "info", "event_id": null, "timestamp": "2020-06-17T22:26:55.945016Z", "data": null, "message": "7787a027f3fb46c985aaa2287b3f4d09", "type": "default" } ] } }, { "type": "request", "data": { "fragment": null, "cookies": [], "inferredContentType": null, "env": null, "headers": [ [ "User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36" ] ], "url": "https://sentry.io/organizations/hellboy-meowmeow/issues/", "query": [ [ "project", "5236886" ] ], "data": null, "method": null } } ], "packages": {}, "sdk": { "version": "5.17.0", "name": "sentry.javascript.browser" }, "_meta": { "user": null, "context": null, "entries": {}, "contexts": null, "message": null, "packages": null, "tags": {}, "sdk": null }, "contexts": { "ForbiddenError": { "status": 403, "statusText": "Forbidden", "responseJSON": { "detail": "You do not have permission to perform this action." }, "type": "default" }, "browser": { "version": "83.0.4103", "type": "browser", "name": "Chrome" }, "os": { "version": "10", "type": "os", "name": "Windows" }, "trace": { "span_id": "83db1ad17e67dfe7", "type": "trace", "trace_id": "da6caabcd90e45fdb81f6655824a5f88", "op": "navigation" }, "organization": { "type": "default", "id": "323938", "slug": "hellboy-meowmeow" } }, "fingerprints": [ "fbe908cc63d63ea9763fd84cb6bad177" ], "context": { "resp": { "status": 403, "responseJSON": { "detail": "You do not have permission to perform this action." }, "name": "ForbiddenError", "statusText": "Forbidden", "message": "GET /organizations/hellboy-meowmeow/users/ 403", "stack": "Error\n at https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/app.js:1:480441\n at u (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:165:51006)\n at Generator._invoke (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:165:50794)\n at Generator.A.forEach.e. [as next] (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:165:51429)\n at n (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:16:68684)\n at s (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:16:68895)\n at https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:16:68954\n at new Promise ()\n at https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:16:68835\n at v (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/app.js:1:480924)\n at m (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/app.js:1:480152)\n at t.fetchMemberList (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/app.js:1:902983)\n at t.componentDidMount (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/app.js:1:900527)\n at t.componentDidMount (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:189:15597)\n at Pc (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:101023)\n at t.unstable_runWithPriority (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:189:3462)\n at Ko (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:45529)\n at Rc (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:97371)\n at Oc (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:87690)\n at https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:45820\n at t.unstable_runWithPriority (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:189:3462)\n at Ko (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:45529)\n at Zo (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:45765)\n at Jo (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:45700)\n at gc (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:84256)\n at Object.enqueueSetState (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:50481)\n at t.M.setState (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:173:1439)\n at t.onUpdate (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/app.js:1:543076)\n at a.n (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:119:149090)\n at a.emit (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:189:6550)\n at p.trigger (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:119:149379)\n at p.onInitializeUrlState (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/app.js:1:541711)\n at a.n (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:119:149090)\n at a.emit (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:189:6550)\n at Function.trigger (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:119:149379)\n at https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:119:149484\n at a (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:81:88800)" } }, "release": { "dateReleased": "2020-06-17T19:21:02.186004Z", "commitCount": 11, "url": "https://freight.getsentry.net/deploys/getsentry/production/8868/", "data": {}, "lastDeploy": { "name": "b65bc521378269d3eaefdc964f8ef56621414943 to prod", "url": null, "environment": "prod", "dateStarted": null, "dateFinished": "2020-06-17T19:20:55.641748Z", "id": "6883490" }, "deployCount": 1, "dateCreated": "2020-06-17T18:45:31.042157Z", "version": "b65bc521378269d3eaefdc964f8ef56621414943", "lastCommit": { "repository": { "status": "active", "integrationId": "2933", "externalSlug": "getsentry/getsentry", "name": "getsentry/getsentry", "provider": { "id": "integrations:github", "name": "GitHub" }, "url": "https://github.com/getsentry/getsentry", "id": "2", "dateCreated": "2016-10-10T21:36:45.373994Z" }, "pullRequest": null, "suspectCommitType": "", "dateCreated": "2020-06-17T18:43:37Z", "message": "feat(billing): Get a lot of money", "id": "b65bc521378269d3eaefdc964f8ef56621414943" }, "ref": "master" }, "crashFile": null, "location": "example.py:123", "culprit": "/books/new/", "groupingConfig": { "enhancements": "abc", "id": "2359823092345612392" }, "occurrence": null, "projectID": "5236886", "resolvedWith": [], "sdkUpdates": [] }, "summary": "Return an issue event" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/events/{event_id}/attachments/": { "get": { "operationId": "listProjectEventAttachments", "description": "Retrieve a list of attachments uploaded for a given event.\n\nRequires the `event-attachments` organization feature.", "summary": "List an Event's Attachments", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "event_id", "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "description": "The ID of the event. It is a 32-character hexadecimal string as reported by the client.", "required": true }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Filter the attachments by name (substring match) or by attachment kind. Use `is:screenshot` to restrict the results to screenshot attachments." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the attachment" }, "event_id": { "type": "string", "description": "ID of the event the attachment belongs to" }, "type": { "type": "string", "description": "Type of the attachment, such as event.attachment or event.minidump" }, "name": { "type": "string", "description": "File name of the attachment" }, "mimetype": { "type": "string", "nullable": true, "description": "MIME type of the attachment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the attachment was stored (ISO 8601)" }, "size": { "type": "integer", "description": "Size of the attachment in bytes" }, "headers": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Legacy field. Only contains Content-Type, which matches mimetype" }, "sha1": { "type": "string", "nullable": true, "description": "Legacy field, always null" } }, "required": [ "dateCreated", "event_id", "headers", "id", "mimetype", "name", "sha1", "size", "type" ] } }, "examples": { "ReturnAListOfAttachmentsForAnEvent": { "value": [ { "id": "1234", "event_id": "9b29bbe17e9d4ee3a6d0fe9b2e8a3b1c", "type": "event.attachment", "name": "screenshot.png", "mimetype": "image/png", "dateCreated": "2026-04-15T18:22:31Z", "size": 248137, "headers": { "Content-Type": "image/png" }, "sha1": "d3f299af02d6abbe92dd8368bab781824a9702ed" }, { "id": "1235", "event_id": "9b29bbe17e9d4ee3a6d0fe9b2e8a3b1c", "type": "event.view_hierarchy", "name": "view-hierarchy.json", "mimetype": "application/json", "dateCreated": "2026-04-15T18:22:31Z", "size": 8421, "headers": { "Content-Type": "application/json" }, "sha1": "fa0a5fad9e64129f6b5f60cca3a5b8c9b8a1a3a0" } ], "summary": "Return a list of attachments for an event" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/events/{event_id}/attachments/{attachment_id}/": { "get": { "operationId": "getProjectEventAttachment", "description": "Retrieve metadata for a single attachment on an event, or download its\ncontents by passing the `download` query parameter.\n\nRequires the `event-attachments` organization feature.", "summary": "Retrieve an Event Attachment", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "event_id", "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "description": "The ID of the event. It is a 32-character hexadecimal string as reported by the client.", "required": true }, { "in": "path", "name": "attachment_id", "schema": { "type": "string" }, "description": "The numeric ID of the attachment, as returned from the attachments list endpoint.", "required": true }, { "in": "query", "name": "download", "schema": { "type": "string" }, "description": "If this parameter is present, the response will be a binary file download instead of JSON metadata. The value does not matter — any value (including empty) triggers the download. Depending on where the attachment is stored, the response may be a redirect to the storage service, so clients must follow redirects." } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the attachment" }, "event_id": { "type": "string", "description": "ID of the event the attachment belongs to" }, "type": { "type": "string", "description": "Type of the attachment, such as event.attachment or event.minidump" }, "name": { "type": "string", "description": "File name of the attachment" }, "mimetype": { "type": "string", "nullable": true, "description": "MIME type of the attachment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the attachment was stored (ISO 8601)" }, "size": { "type": "integer", "description": "Size of the attachment in bytes" }, "headers": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Legacy field. Only contains Content-Type, which matches mimetype" }, "sha1": { "type": "string", "nullable": true, "description": "Legacy field, always null" } }, "required": [ "dateCreated", "event_id", "headers", "id", "mimetype", "name", "sha1", "size", "type" ] }, "examples": { "ReturnASingleEventAttachment": { "value": { "id": "1234", "event_id": "9b29bbe17e9d4ee3a6d0fe9b2e8a3b1c", "type": "event.attachment", "name": "screenshot.png", "mimetype": "image/png", "dateCreated": "2026-04-15T18:22:31Z", "size": 248137, "headers": { "Content-Type": "image/png" }, "sha1": "d3f299af02d6abbe92dd8368bab781824a9702ed" }, "summary": "Return a single event attachment" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/events/{event_id}/source-map-debug/": { "get": { "operationId": "getProjectEventSourceMapDebug", "description": "Return a list of source map errors for a given event.", "summary": "Get Debug Information Related to Source Maps for a Given Event", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "event_id", "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "description": "The ID of the event. It is a 32-character hexadecimal string as reported by the client.", "required": true } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "dist": { "type": "string", "nullable": true, "description": "Distribution of the event" }, "release": { "type": "string", "nullable": true, "description": "Release of the event" }, "exceptions": { "type": "array", "items": { "type": "object", "properties": { "frames": { "type": "array", "items": { "type": "object", "properties": { "debug_id_process": { "type": "object", "properties": { "debug_id": { "type": "string", "nullable": true, "description": "Debug ID of the frame's source file. Null when the frame has none" }, "uploaded_source_file_with_correct_debug_id": { "type": "boolean", "description": "Whether a source file with the frame's debug ID was uploaded" }, "uploaded_source_map_with_correct_debug_id": { "type": "boolean", "description": "Whether a source map with the frame's debug ID was uploaded" } }, "required": [ "debug_id", "uploaded_source_file_with_correct_debug_id", "uploaded_source_map_with_correct_debug_id" ], "description": "Results of resolving the frame with debug IDs" }, "release_process": { "type": "object", "properties": { "abs_path": { "type": "string", "description": "Absolute path of the frame's file" }, "matching_source_file_names": { "type": "array", "items": { "type": "string" }, "description": "Uploaded file names that could match the frame's file" }, "matching_source_map_name": { "type": "string", "nullable": true, "description": "Name of the uploaded source map that matches the frame's file" }, "source_map_reference": { "type": "string", "nullable": true, "description": "Source map the source file refers to, from its sourceMappingURL or SourceMap header" }, "source_file_lookup_result": { "enum": [ "found", "wrong-dist", "unsuccessful" ], "type": "string", "description": "Result of looking up the source file in the release: found, wrong-dist or unsuccessful" }, "source_map_lookup_result": { "enum": [ "found", "wrong-dist", "unsuccessful" ], "type": "string", "description": "Result of looking up the source map in the release: found, wrong-dist or unsuccessful" } }, "required": [ "abs_path", "matching_source_file_names", "matching_source_map_name", "source_file_lookup_result", "source_map_lookup_result", "source_map_reference" ], "nullable": true, "description": "Results of resolving the frame with release artifacts. Null when the event has no release" }, "scraping_process": { "type": "object", "properties": { "source_file": { "anyOf": [ { "type": "object", "properties": { "url": { "type": "string", "format": "uri", "description": "URL Sentry fetched" }, "status": { "enum": [ "success" ], "type": "string", "description": "Result of fetching the file, always success" } }, "required": [ "status", "url" ] }, { "type": "object", "properties": { "url": { "type": "string", "format": "uri", "description": "URL Sentry didn't fetch" }, "status": { "enum": [ "not_attempted" ], "type": "string", "description": "Result of fetching the file, always not_attempted" } }, "required": [ "status", "url" ] }, { "type": "object", "properties": { "url": { "type": "string", "format": "uri", "description": "URL Sentry failed to fetch" }, "status": { "enum": [ "failure" ], "type": "string", "description": "Result of fetching the file, always failure" }, "reason": { "enum": [ "not_found", "disabled", "invalid_host", "permission_denied", "timeout", "download_error", "other" ], "type": "string", "description": "Why fetching failed, such as not_found, disabled, invalid_host, permission_denied or timeout" }, "details": { "type": "string", "nullable": true, "description": "More details about the failure" } }, "required": [ "details", "reason", "status", "url" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result of fetching the frame's source file from the web. Null when there's no data" }, "source_map": { "anyOf": [ { "type": "object", "properties": { "url": { "type": "string", "format": "uri", "description": "URL Sentry fetched" }, "status": { "enum": [ "success" ], "type": "string", "description": "Result of fetching the file, always success" } }, "required": [ "status", "url" ] }, { "type": "object", "properties": { "url": { "type": "string", "format": "uri", "description": "URL Sentry didn't fetch" }, "status": { "enum": [ "not_attempted" ], "type": "string", "description": "Result of fetching the file, always not_attempted" } }, "required": [ "status", "url" ] }, { "type": "object", "properties": { "url": { "type": "string", "format": "uri", "description": "URL Sentry failed to fetch" }, "status": { "enum": [ "failure" ], "type": "string", "description": "Result of fetching the file, always failure" }, "reason": { "enum": [ "not_found", "disabled", "invalid_host", "permission_denied", "timeout", "download_error", "other" ], "type": "string", "description": "Why fetching failed, such as not_found, disabled, invalid_host, permission_denied or timeout" }, "details": { "type": "string", "nullable": true, "description": "More details about the failure" } }, "required": [ "details", "reason", "status", "url" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result of fetching the frame's source map from the web. Null when there's no data" } }, "required": [ "source_file", "source_map" ], "description": "Results of fetching the frame's files from the web" } }, "required": [ "debug_id_process", "release_process", "scraping_process" ] }, "description": "Source map debug results for each frame of the exception" } }, "required": [ "frames" ] }, "description": "Source map debug results for each exception in the event" }, "has_debug_ids": { "type": "boolean", "description": "Whether the event has debug IDs" }, "min_debug_id_sdk_version": { "type": "string", "nullable": true, "description": "Minimum SDK version that supports debug IDs. Null when there's none" }, "sdk_version": { "type": "string", "nullable": true, "description": "Version of the SDK that sent the event" }, "project_has_some_artifact_bundle": { "type": "boolean", "description": "Whether the project has any artifact bundles" }, "release_has_some_artifact": { "type": "boolean", "description": "Whether the event's release has any uploaded artifacts" }, "has_uploaded_some_artifact_with_a_debug_id": { "type": "boolean", "description": "Whether any artifact with a debug ID was uploaded for the project" }, "sdk_debug_id_support": { "enum": [ "not-supported", "unofficial-sdk", "needs-upgrade", "full" ], "type": "string", "description": "Whether the event's SDK supports debug IDs: not-supported, unofficial-sdk, needs-upgrade or full" }, "has_scraping_data": { "type": "boolean", "description": "Whether the event has data about fetching source files from the web" } }, "required": [ "dist", "exceptions", "has_debug_ids", "has_scraping_data", "has_uploaded_some_artifact_with_a_debug_id", "min_debug_id_sdk_version", "project_has_some_artifact_bundle", "release", "release_has_some_artifact", "sdk_debug_id_support", "sdk_version" ] }, "examples": { "SourceMapDebugInformationForAnEvent": { "value": { "dist": "1.0.0", "release": "frontend@1.0.0", "exceptions": [ { "frames": [ { "debug_id_process": { "debug_id": "f206e0e7-3d0c-41cb-bccc-11b716728e27", "uploaded_source_file_with_correct_debug_id": true, "uploaded_source_map_with_correct_debug_id": true }, "release_process": { "abs_path": "https://example.com/static/js/main.js", "matching_source_file_names": [ "~/static/js/main.js" ], "matching_source_map_name": "~/static/js/main.js.map", "source_map_reference": "main.js.map", "source_file_lookup_result": "found", "source_map_lookup_result": "found" }, "scraping_process": { "source_file": { "url": "https://example.com/static/js/main.js", "status": "success" }, "source_map": { "url": "https://example.com/static/js/main.js.map", "status": "success" } } } ] } ], "has_debug_ids": true, "min_debug_id_sdk_version": "7.56.0", "sdk_version": "7.60.0", "project_has_some_artifact_bundle": true, "release_has_some_artifact": true, "has_uploaded_some_artifact_with_a_debug_id": true, "sdk_debug_id_support": "full", "has_scraping_data": true }, "summary": "Source map debug information for an event" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/files/difs/assemble/": { "post": { "operationId": "assembleProjectDebugFiles", "description": "**Experimental:** This API is under active development and may change.\n\nAssemble previously uploaded chunks into debug information files.\n\nThe response reports each file's `state`, keyed by the same checksums. If chunks are\nmissing, upload them and send the request again. Repeat the request to poll until the\nstate is `ok` or `error`. Resending an identical request is safe: a file that is\nalready assembling or assembled reports its state instead of starting a new job.", "summary": "Assemble Debug Information Files", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "The files to assemble, keyed by the SHA-1 checksum of each whole file.", "additionalProperties": { "type": "object", "required": [ "name", "chunks" ], "properties": { "name": { "type": "string", "description": "The file name. A ProGuard mapping without `debug_id` can carry it in the name, as in `/proguard/mapping-.txt`." }, "chunks": { "type": "array", "items": { "type": "string", "pattern": "^[0-9a-f]{40}$" }, "description": "The SHA-1 checksums of the file's chunks, in order. Upload missing chunks with the chunk upload endpoint. Send an empty list to poll the file's state." }, "debug_id": { "type": "string", "pattern": "^[A-Fa-f0-9-]+$", "description": "The debug ID to store the file under, overriding the one read from the file." } }, "additionalProperties": true } } } } }, "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "object", "properties": { "state": { "type": "string", "description": "State of the file: ok, not_found, created, assembling or error" }, "missingChunks": { "type": "array", "items": { "type": "string" }, "description": "Checksums of the chunks the server doesn't have yet" }, "detail": { "type": "string", "nullable": true, "description": "Error message when the state is error" }, "dif": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the debug file" }, "uuid": { "type": "string", "description": "Debug ID without the age suffix, as a UUID" }, "debugId": { "type": "string", "description": "Debug ID of the file" }, "codeId": { "type": "string", "nullable": true, "description": "Code ID of the file, such as the GNU build ID. Null when the file has none" }, "cpuName": { "type": "string", "description": "CPU architecture of the file, such as x86_64 or arm64" }, "objectName": { "type": "string", "description": "Name of the object file" }, "symbolType": { "type": "string", "description": "Format of the file, such as macho, elf, pe, pdb, breakpad or proguard" }, "headers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "HTTP headers to download the file with, such as Content-Type" }, "size": { "type": "integer", "description": "Size of the file in bytes" }, "sha1": { "type": "string", "description": "SHA-1 checksum of the file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the file was uploaded (ISO 8601)" }, "data": { "type": "object", "description": "Extra data about the file, such as its features. Empty when not known", "properties": { "type": { "type": "string", "description": "Kind of the object, such as executable, debug companion or library. Left out for mapping files" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Debug features the file provides, such as symtab, debug, unwind, sources or mapping" } } } }, "required": [ "codeId", "cpuName", "data", "dateCreated", "debugId", "headers", "id", "objectName", "sha1", "size", "symbolType", "uuid" ], "description": "Debug file created from the chunks. Only set when the state is ok" } }, "required": [ "missingChunks", "state" ] } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true, "x-sentry-experimental": true } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/files/dsyms/": { "get": { "operationId": "listProjectDebugFiles", "description": "Retrieve a list of debug information files for a given project.", "summary": "List a Project's Debug Information Files", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Substring filter matched against object name, debug ID, code ID, CPU name, and file headers." }, { "in": "query", "name": "debug_id", "schema": { "type": "string" }, "description": "Filter results to debug information files matching the given debug ID." }, { "in": "query", "name": "code_id", "schema": { "type": "string" }, "description": "Filter results to debug information files matching the given code ID." }, { "in": "query", "name": "file_formats", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Restrict results to one or more file formats." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the debug file" }, "uuid": { "type": "string", "description": "Debug ID without the age suffix, as a UUID" }, "debugId": { "type": "string", "description": "Debug ID of the file" }, "codeId": { "type": "string", "nullable": true, "description": "Code ID of the file, such as the GNU build ID. Null when the file has none" }, "cpuName": { "type": "string", "description": "CPU architecture of the file, such as x86_64 or arm64" }, "objectName": { "type": "string", "description": "Name of the object file" }, "symbolType": { "type": "string", "description": "Format of the file, such as macho, elf, pe, pdb, breakpad or proguard" }, "headers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "HTTP headers to download the file with, such as Content-Type" }, "size": { "type": "integer", "description": "Size of the file in bytes" }, "sha1": { "type": "string", "description": "SHA-1 checksum of the file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the file was uploaded (ISO 8601)" }, "data": { "type": "object", "description": "Extra data about the file, such as its features. Empty when not known", "properties": { "type": { "type": "string", "description": "Kind of the object, such as executable, debug companion or library. Left out for mapping files" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Debug features the file provides, such as symtab, debug, unwind, sources or mapping" } } } }, "required": [ "codeId", "cpuName", "data", "dateCreated", "debugId", "headers", "id", "objectName", "sha1", "size", "symbolType", "uuid" ] } }, "examples": { "ReturnAListOfDebugInformationFilesForAProject": { "value": [ { "id": "1066716922", "uuid": "d8f92f82-3dbc-4fbb-ae68-69e881a9becc", "debugId": "d8f92f82-3dbc-4fbb-ae68-69e881a9becc", "codeId": null, "cpuName": "any", "objectName": "proguard-mapping", "symbolType": "proguard", "headers": { "Content-Type": "text/x-proguard+plain" }, "size": 12868987, "sha1": "c31bcca43ff75e8c94c336e647d518fb05dcf658", "dateCreated": "2026-03-24T23:31:18.583107Z", "data": { "features": [ "mapping" ] } }, { "id": "1066716918", "uuid": "d50e6bca-81a4-662b-8461-e1c5e27f157b", "debugId": "d50e6bca-81a4-662b-8461-e1c5e27f157b", "codeId": "ca6b0ed5a4812b668461e1c5e27f157b8422d5bd", "cpuName": "arm64", "objectName": "libxamarin-app.dbg.so", "symbolType": "elf", "headers": { "Content-Type": "application/x-elf-binary" }, "size": 41584, "sha1": "ac40db6f7fff550f82c63242f618e2d3987cc3c7", "dateCreated": "2026-03-24T23:31:18.465820Z", "data": { "type": "dbg", "features": [ "symtab" ] } } ], "summary": "Return a list of debug information files for a project" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/files/preprodartifacts/assemble/": { "post": { "operationId": "assembleProjectPreprodArtifact", "description": "Assemble previously uploaded chunks into a mobile build, such as an APK, AAB or\nXCArchive, and queue it for size analysis.\n\nUpload the build file's chunks with the chunk upload endpoint first. If chunks are\nmissing, the response has the state `not_found` and lists them in\n`missingChunks`: upload them and send the request again. Once all chunks are there,\nthe build is created, the response has the state `created`, and `artifactUrl` links\nto the build in Sentry.\n\nDon't resend a request that succeeded: each successful request creates a build.\nEmpty strings in optional fields count as not set. The VCS fields `head_sha`,\n`head_repo_name` and `provider` must be set together. `provider` must be one of\n`github`, `github_enterprise`, `gitlab`, `bitbucket` or `bitbucket_server`.", "summary": "Assemble a Mobile Build", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Mobile Builds" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "checksum": { "type": "string", "pattern": "^[0-9a-f]{40}$", "description": "SHA-1 checksum of the whole build file." }, "chunks": { "type": "array", "items": { "type": "string", "pattern": "^[0-9a-f]{40}$" }, "description": "SHA-1 checksums of the file's chunks, in order. Upload missing chunks with the chunk upload endpoint first." }, "build_configuration": { "type": "string", "description": "Name of the build configuration, such as `Release` or `Debug`." }, "release_notes": { "type": "string", "description": "Release notes to show with the build." }, "install_groups": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 255 }, "minItems": 1, "maxItems": 16, "uniqueItems": true, "description": "Install groups that can install the build." }, "head_sha": { "type": "string", "pattern": "^(|[0-9a-f]{40})$", "description": "SHA of the commit the build was made from." }, "base_sha": { "type": "string", "pattern": "^(|[0-9a-f]{40})$", "description": "SHA of the commit to compare against, such as the merge base of a pull request. Requires `head_sha`." }, "provider": { "type": "string", "maxLength": 255, "description": "VCS provider of the repository, such as `github`." }, "head_repo_name": { "type": "string", "maxLength": 255, "description": "Name of the repository the build was made from, such as `owner/repo`." }, "base_repo_name": { "type": "string", "maxLength": 255, "description": "Name of the repository of the base commit, such as `owner/repo`." }, "head_ref": { "type": "string", "maxLength": 255, "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "description": "Branch or ref the build was made from, such as `feature/xyz`." }, "base_ref": { "type": "string", "maxLength": 255, "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "description": "Branch or ref of the base commit, such as `main`." }, "pr_number": { "type": "integer", "minimum": 1, "description": "Number of the pull request the build belongs to." } }, "required": [ "checksum", "chunks" ], "additionalProperties": false } } } }, "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "state": { "type": "string", "description": "State of the build file: not_found if chunks are missing or none were sent, created once the build is queued for assembly" }, "missingChunks": { "type": "array", "items": { "type": "string" }, "description": "Checksums of the chunks the server doesn't have yet" }, "artifactUrl": { "type": "string", "format": "uri", "description": "URL of the build in Sentry. Only set when the state is created" } }, "required": [ "missingChunks", "state" ] }, "examples": { "BuildCreated": { "value": { "state": "created", "missingChunks": [], "artifactUrl": "https://org-slug.sentry.io/preprod/size/123/" }, "summary": "Build created" }, "ChunksMissing": { "value": { "state": "not_found", "missingChunks": [ "5b1e9c6d0f2a4e8b7c3d1a9f0e6b2c4d8a7f3e1b" ] }, "summary": "Chunks missing" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/filters/": { "get": { "operationId": "listProjectFilters", "description": "Retrieve a list of filters for a given project.\n`active` will be either a boolean or a list for the legacy browser filters.", "summary": "List a Project's Data Filters", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the inbound filter, such as browser-extensions or legacy-browsers" }, "active": { "anyOf": [ { "type": "boolean" }, { "type": "array", "items": { "type": "string" } } ], "description": "Whether the filter is on. For legacy-browsers, the list of browsers it filters" } }, "required": [ "active", "id" ] } }, "examples": { "ListAProject'sFilters": { "value": [ { "id": "browser-extensions", "active": false }, { "id": "filtered-transaction", "active": true }, { "id": "legacy-browsers", "active": [ "opera", "edge", "safari", "chrome", "ie", "opera_mini", "firefox", "android" ] }, { "id": "localhost", "active": false }, { "id": "web-crawlers", "active": true } ], "summary": "List a project's filters" } } } }, "description": "" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/filters/{filter_id}/": { "put": { "operationId": "updateProjectFilter", "description": "Update various inbound data filters for a project.", "summary": "Update an Inbound Data Filter", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "filter_id", "schema": { "type": "string" }, "description": "The type of filter toggle to update. The options are:\n- `browser-extensions` - Filter out errors known to be caused by browser extensions.\n- `localhost` - Filter out events coming from localhost. This applies to both IPv4 (``127.0.0.1``)\nand IPv6 (``::1``) addresses.\n- `filtered-transaction` - Filter out transactions for healthcheck and ping endpoints.\n- `web-crawlers` - Filter out known web crawlers. Some crawlers may execute pages in incompatible\nways which cause errors that are unlikely to be seen by a normal user.\n- `legacy-browser` - Filter out known errors from legacy browsers. Older browsers often give less\naccurate information, and while they may report valid issues, the context to understand them is\nincorrect or missing.\n", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "active": { "type": "boolean", "description": "Toggle the browser-extensions, localhost, filtered-transaction, or web-crawlers filter on or off." }, "subfilters": { "type": "array", "items": { "enum": [ "ie", "edge", "safari", "firefox", "chrome", "opera", "android", "opera_mini", "ie_pre_9", "ie9", "ie10", "ie11", "opera_pre_15", "android_pre_4", "safari_pre_6", "opera_mini_pre_8", "edge_pre_79" ], "type": "string", "description": "* `ie`\n* `edge`\n* `safari`\n* `firefox`\n* `chrome`\n* `opera`\n* `android`\n* `opera_mini`\n* `ie_pre_9`\n* `ie9`\n* `ie10`\n* `ie11`\n* `opera_pre_15`\n* `android_pre_4`\n* `safari_pre_6`\n* `opera_mini_pre_8`\n* `edge_pre_79`" }, "description": "\nSpecifies which legacy browser filters should be active. Anything excluded from the list will be\ndisabled. The options are:\n- `ie` - Internet Explorer Version 11 and lower\n- `edge` - Edge Version 110 and lower\n- `safari` - Safari Version 15 and lower\n- `firefox` - Firefox Version 110 and lower\n- `chrome` - Chrome Version 110 and lower\n- `opera` - Opera Version 99 and lower\n- `android` - Android Version 3 and lower\n- `opera_mini` - Opera Mini Version 34 and lower\n\nDeprecated options:\n- `ie_pre_9` - Internet Explorer Version 8 and lower\n- `ie9` - Internet Explorer Version 9\n- `ie10` - Internet Explorer Version 10\n- `ie11` - Internet Explorer Version 11\n- `safari_pre_6` - Safari Version 5 and lower\n- `opera_pre_15` - Opera Version 14 and lower\n- `opera_mini_pre_8` - Opera Mini Version 8 and lower\n- `android_pre_4` - Android Version 3 and lower\n- `edge_pre_79` - Edge Version 18 and lower (non Chromium based)\n" } } } } } }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/keys/": { "get": { "operationId": "listProjectKeys", "description": "Return a list of client keys bound to a project.", "summary": "List a Project's Client Keys", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "status", "schema": { "type": "string" }, "description": "\nFilter client keys by `active` or `inactive`. Defaults to returning all\nkeys if not specified.\n" } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "description": "This represents a Sentry Project Client Key.", "properties": { "id": { "type": "string", "description": "ID of the client key, same as its public key" }, "name": { "type": "string", "description": "Name of the client key" }, "label": { "type": "string", "description": "Name of the client key, same as name" }, "public": { "type": "string", "nullable": true, "description": "Public key" }, "secret": { "type": "string", "nullable": true, "description": "Secret key" }, "projectId": { "type": "integer", "description": "ID of the project the key belongs to" }, "isActive": { "type": "boolean", "description": "Whether the client key accepts events" }, "rateLimit": { "type": "object", "properties": { "window": { "type": "integer", "description": "Rate limit window in seconds" }, "count": { "type": "integer", "description": "Number of events accepted per window" } }, "required": [ "count", "window" ], "nullable": true, "description": "Rate limit for events sent with the key. Null when there's none" }, "dsn": { "type": "object", "properties": { "secret": { "type": "string", "format": "uri", "description": "DSN that includes the secret key" }, "public": { "type": "string", "format": "uri", "description": "Public DSN to configure SDKs with" }, "csp": { "type": "string", "format": "uri", "description": "Endpoint for Content Security Policy reports" }, "security": { "type": "string", "format": "uri", "description": "Endpoint for security reports" }, "minidump": { "type": "string", "format": "uri", "description": "Endpoint for minidump crash reports" }, "nel": { "type": "string", "format": "uri", "description": "Endpoint for Network Error Logging reports" }, "unreal": { "type": "string", "format": "uri", "description": "Endpoint for Unreal Engine crash reports" }, "crons": { "type": "string", "format": "uri", "description": "Endpoint for cron monitor check-ins" }, "cdn": { "type": "string", "format": "uri", "description": "URL of the JavaScript SDK Loader script" }, "playstation": { "type": "string", "format": "uri", "description": "Endpoint for PlayStation crash reports" }, "integration": { "type": "string", "format": "uri", "description": "Base URL for integration endpoints, such as the OpenTelemetry endpoints" }, "otlp_traces": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for traces" }, "otlp_logs": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for logs" } }, "required": [ "cdn", "crons", "csp", "integration", "minidump", "nel", "otlp_logs", "otlp_traces", "playstation", "public", "secret", "security", "unreal" ], "description": "DSN and ingestion endpoints for the key" }, "browserSdkVersion": { "type": "string", "description": "JavaScript SDK version the Loader serves" }, "browserSdk": { "type": "object", "properties": { "choices": { "type": "array", "items": { "type": "array", "items": { "type": "string" } }, "description": "JavaScript SDK versions the Loader can serve, as [value, label] pairs" } }, "required": [ "choices" ], "description": "JavaScript SDK versions the Loader can serve" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the client key was created (ISO 8601)" }, "dynamicSdkLoaderOptions": { "type": "object", "properties": { "hasReplay": { "type": "boolean", "description": "Whether the Loader enables Session Replay" }, "hasPerformance": { "type": "boolean", "description": "Whether the Loader enables tracing" }, "hasDebug": { "type": "boolean", "description": "Whether the Loader loads the debug bundle" }, "hasFeedback": { "type": "boolean", "description": "Whether the Loader enables User Feedback" }, "hasLogsAndMetrics": { "type": "boolean", "description": "Whether the Loader enables logs and metrics" } }, "required": [ "hasDebug", "hasFeedback", "hasLogsAndMetrics", "hasPerformance", "hasReplay" ], "description": "Features the JavaScript SDK Loader enables" }, "useCase": { "type": "string", "description": "What the key is used for, such as user or profiling. Only included for superusers" } }, "required": [ "browserSdk", "browserSdkVersion", "dateCreated", "dsn", "dynamicSdkLoaderOptions", "id", "isActive", "label", "name", "projectId", "public", "rateLimit", "secret" ] } }, "examples": { "ListClientKeysForAProject": { "value": [ { "id": "60120449b6b1d5e45f75561e6dabd80b", "name": "Liked Pegasus", "label": "Liked Pegasus", "public": "60120449b6b1d5e45f75561e6dabd80b", "secret": "189485c3b8ccf582bf5e12c530ef8858", "projectId": 4505281256090153, "isActive": true, "rateLimit": { "window": 7200, "count": 1000 }, "dsn": { "secret": "https://a785682ddda742d7a8a4088810e67701:bcd99b3790b3441c85ce4b1eaa854f66@o4504765715316736.ingest.sentry.io/4505281256090153", "public": "https://a785682ddda742d7a8a4088810e67791@o4504765715316736.ingest.sentry.io/4505281256090153", "csp": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/csp-report/?sentry_key=a785682ddda719b7a8a4011110d75598", "security": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/security/?sentry_key=a785682ddda719b7a8a4011110d75598", "minidump": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/minidump/?sentry_key=a785682ddda719b7a8a4011110d75598", "playstation": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/playstation/?sentry_key=a785682ddda719b7a8a4011110d75598", "integration": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/", "otlp_traces": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/traces", "otlp_logs": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/logs", "nel": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/nel/?sentry_key=a785682ddda719b7a8a4011110d75598", "unreal": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/unreal/a785682ddda719b7a8a4011110d75598/", "cdn": "https://js.sentry-cdn.com/a785682ddda719b7a8a4011110d75598.min.js", "crons": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/crons/___MONITOR_SLUG___/a785682ddda719b7a8a4011110d75598/" }, "browserSdkVersion": "7.x", "browserSdk": { "choices": [ [ "latest", "latest" ], [ "7.x", "7.x" ] ] }, "dateCreated": "2023-06-21T19:50:26.036254Z", "dynamicSdkLoaderOptions": { "hasReplay": true, "hasPerformance": true, "hasDebug": true, "hasFeedback": false, "hasLogsAndMetrics": false } }, { "id": "da8d69cb17e80677b76e08fde4656b93", "name": "Bold Oarfish", "label": "Bold Oarfish", "public": "da8d69cb17e80677b76e08fde4656b93", "secret": "5c241ebc42ccfbec281cbefbedc7ab96", "projectId": 4505281256090153, "isActive": true, "rateLimit": null, "dsn": { "secret": "https://a785682ddda742d7a8a4088810e67701:bcd99b3790b3441c85ce4b1eaa854f66@o4504765715316736.ingest.sentry.io/4505281256090153", "public": "https://a785682ddda742d7a8a4088810e67791@o4504765715316736.ingest.sentry.io/4505281256090153", "csp": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/csp-report/?sentry_key=a785682ddda719b7a8a4011110d75598", "security": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/security/?sentry_key=a785682ddda719b7a8a4011110d75598", "minidump": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/minidump/?sentry_key=a785682ddda719b7a8a4011110d75598", "playstation": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/playstation/?sentry_key=a785682ddda719b7a8a4011110d75598", "integration": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/", "otlp_traces": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/traces", "otlp_logs": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/logs", "nel": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/nel/?sentry_key=a785682ddda719b7a8a4011110d75598", "unreal": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/unreal/a785682ddda719b7a8a4011110d75598/", "cdn": "https://js.sentry-cdn.com/a785682ddda719b7a8a4011110d75598.min.js", "crons": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/crons/___MONITOR_SLUG___/a785682ddda719b7a8a4011110d75598/" }, "browserSdkVersion": "7.x", "browserSdk": { "choices": [ [ "latest", "latest" ], [ "7.x", "7.x" ] ] }, "dateCreated": "2023-06-21T19:50:26.036254Z", "dynamicSdkLoaderOptions": { "hasReplay": true, "hasPerformance": true, "hasDebug": true, "hasFeedback": false, "hasLogsAndMetrics": false } } ], "summary": "List Client Keys for a Project" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createProjectKey", "description": "Create a new client key bound to a project. The key's secret and public key\nare generated by the server.", "summary": "Create a New Client Key", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "The optional name of the key. If not provided it will be automatically generated.", "maxLength": 64 }, "rateLimit": { "type": "object", "description": "Applies a rate limit to cap the number of errors accepted during a given time window. To\ndisable entirely set `rateLimit` to null.\n```json\n{\n \"rateLimit\": {\n \"window\": 7200, // time in seconds\n \"count\": 1000 // error cap\n }\n}\n```", "properties": { "count": { "type": "integer", "minimum": 0, "nullable": true }, "window": { "type": "integer", "maximum": 86400, "minimum": 0, "nullable": true } } }, "useCase": { "enum": [ "user", "profiling", "tempest", "demo" ], "type": "string", "description": "* `user`\n* `profiling`\n* `tempest`\n* `demo`", "default": "user" } } } } } }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "description": "This represents a Sentry Project Client Key.", "properties": { "id": { "type": "string", "description": "ID of the client key, same as its public key" }, "name": { "type": "string", "description": "Name of the client key" }, "label": { "type": "string", "description": "Name of the client key, same as name" }, "public": { "type": "string", "nullable": true, "description": "Public key" }, "secret": { "type": "string", "nullable": true, "description": "Secret key" }, "projectId": { "type": "integer", "description": "ID of the project the key belongs to" }, "isActive": { "type": "boolean", "description": "Whether the client key accepts events" }, "rateLimit": { "type": "object", "properties": { "window": { "type": "integer", "description": "Rate limit window in seconds" }, "count": { "type": "integer", "description": "Number of events accepted per window" } }, "required": [ "count", "window" ], "nullable": true, "description": "Rate limit for events sent with the key. Null when there's none" }, "dsn": { "type": "object", "properties": { "secret": { "type": "string", "format": "uri", "description": "DSN that includes the secret key" }, "public": { "type": "string", "format": "uri", "description": "Public DSN to configure SDKs with" }, "csp": { "type": "string", "format": "uri", "description": "Endpoint for Content Security Policy reports" }, "security": { "type": "string", "format": "uri", "description": "Endpoint for security reports" }, "minidump": { "type": "string", "format": "uri", "description": "Endpoint for minidump crash reports" }, "nel": { "type": "string", "format": "uri", "description": "Endpoint for Network Error Logging reports" }, "unreal": { "type": "string", "format": "uri", "description": "Endpoint for Unreal Engine crash reports" }, "crons": { "type": "string", "format": "uri", "description": "Endpoint for cron monitor check-ins" }, "cdn": { "type": "string", "format": "uri", "description": "URL of the JavaScript SDK Loader script" }, "playstation": { "type": "string", "format": "uri", "description": "Endpoint for PlayStation crash reports" }, "integration": { "type": "string", "format": "uri", "description": "Base URL for integration endpoints, such as the OpenTelemetry endpoints" }, "otlp_traces": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for traces" }, "otlp_logs": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for logs" } }, "required": [ "cdn", "crons", "csp", "integration", "minidump", "nel", "otlp_logs", "otlp_traces", "playstation", "public", "secret", "security", "unreal" ], "description": "DSN and ingestion endpoints for the key" }, "browserSdkVersion": { "type": "string", "description": "JavaScript SDK version the Loader serves" }, "browserSdk": { "type": "object", "properties": { "choices": { "type": "array", "items": { "type": "array", "items": { "type": "string" } }, "description": "JavaScript SDK versions the Loader can serve, as [value, label] pairs" } }, "required": [ "choices" ], "description": "JavaScript SDK versions the Loader can serve" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the client key was created (ISO 8601)" }, "dynamicSdkLoaderOptions": { "type": "object", "properties": { "hasReplay": { "type": "boolean", "description": "Whether the Loader enables Session Replay" }, "hasPerformance": { "type": "boolean", "description": "Whether the Loader enables tracing" }, "hasDebug": { "type": "boolean", "description": "Whether the Loader loads the debug bundle" }, "hasFeedback": { "type": "boolean", "description": "Whether the Loader enables User Feedback" }, "hasLogsAndMetrics": { "type": "boolean", "description": "Whether the Loader enables logs and metrics" } }, "required": [ "hasDebug", "hasFeedback", "hasLogsAndMetrics", "hasPerformance", "hasReplay" ], "description": "Features the JavaScript SDK Loader enables" }, "useCase": { "type": "string", "description": "What the key is used for, such as user or profiling. Only included for superusers" } }, "required": [ "browserSdk", "browserSdkVersion", "dateCreated", "dsn", "dynamicSdkLoaderOptions", "id", "isActive", "label", "name", "projectId", "public", "rateLimit", "secret" ] }, "examples": { "ClientKeyWithRateLimiting": { "value": { "id": "60120449b6b1d5e45f75561e6dabd80b", "name": "Liked Pegasus", "label": "Liked Pegasus", "public": "60120449b6b1d5e45f75561e6dabd80b", "secret": "189485c3b8ccf582bf5e12c530ef8858", "projectId": 4505281256090153, "isActive": true, "rateLimit": { "window": 7200, "count": 1000 }, "dsn": { "secret": "https://a785682ddda742d7a8a4088810e67701:bcd99b3790b3441c85ce4b1eaa854f66@o4504765715316736.ingest.sentry.io/4505281256090153", "public": "https://a785682ddda742d7a8a4088810e67791@o4504765715316736.ingest.sentry.io/4505281256090153", "csp": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/csp-report/?sentry_key=a785682ddda719b7a8a4011110d75598", "security": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/security/?sentry_key=a785682ddda719b7a8a4011110d75598", "minidump": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/minidump/?sentry_key=a785682ddda719b7a8a4011110d75598", "playstation": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/playstation/?sentry_key=a785682ddda719b7a8a4011110d75598", "integration": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/", "otlp_traces": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/traces", "otlp_logs": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/logs", "nel": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/nel/?sentry_key=a785682ddda719b7a8a4011110d75598", "unreal": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/unreal/a785682ddda719b7a8a4011110d75598/", "cdn": "https://js.sentry-cdn.com/a785682ddda719b7a8a4011110d75598.min.js", "crons": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/crons/___MONITOR_SLUG___/a785682ddda719b7a8a4011110d75598/" }, "browserSdkVersion": "7.x", "browserSdk": { "choices": [ [ "latest", "latest" ], [ "7.x", "7.x" ] ] }, "dateCreated": "2023-06-21T19:50:26.036254Z", "dynamicSdkLoaderOptions": { "hasReplay": true, "hasPerformance": true, "hasDebug": true, "hasFeedback": false, "hasLogsAndMetrics": false } }, "summary": "Client key with rate limiting" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/keys/{key_id}/": { "get": { "operationId": "getProjectKey", "description": "Return a client key bound to a project.", "summary": "Retrieve a Client Key", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "key_id", "schema": { "type": "string" }, "description": "The ID of the client key", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "description": "This represents a Sentry Project Client Key.", "properties": { "id": { "type": "string", "description": "ID of the client key, same as its public key" }, "name": { "type": "string", "description": "Name of the client key" }, "label": { "type": "string", "description": "Name of the client key, same as name" }, "public": { "type": "string", "nullable": true, "description": "Public key" }, "secret": { "type": "string", "nullable": true, "description": "Secret key" }, "projectId": { "type": "integer", "description": "ID of the project the key belongs to" }, "isActive": { "type": "boolean", "description": "Whether the client key accepts events" }, "rateLimit": { "type": "object", "properties": { "window": { "type": "integer", "description": "Rate limit window in seconds" }, "count": { "type": "integer", "description": "Number of events accepted per window" } }, "required": [ "count", "window" ], "nullable": true, "description": "Rate limit for events sent with the key. Null when there's none" }, "dsn": { "type": "object", "properties": { "secret": { "type": "string", "format": "uri", "description": "DSN that includes the secret key" }, "public": { "type": "string", "format": "uri", "description": "Public DSN to configure SDKs with" }, "csp": { "type": "string", "format": "uri", "description": "Endpoint for Content Security Policy reports" }, "security": { "type": "string", "format": "uri", "description": "Endpoint for security reports" }, "minidump": { "type": "string", "format": "uri", "description": "Endpoint for minidump crash reports" }, "nel": { "type": "string", "format": "uri", "description": "Endpoint for Network Error Logging reports" }, "unreal": { "type": "string", "format": "uri", "description": "Endpoint for Unreal Engine crash reports" }, "crons": { "type": "string", "format": "uri", "description": "Endpoint for cron monitor check-ins" }, "cdn": { "type": "string", "format": "uri", "description": "URL of the JavaScript SDK Loader script" }, "playstation": { "type": "string", "format": "uri", "description": "Endpoint for PlayStation crash reports" }, "integration": { "type": "string", "format": "uri", "description": "Base URL for integration endpoints, such as the OpenTelemetry endpoints" }, "otlp_traces": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for traces" }, "otlp_logs": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for logs" } }, "required": [ "cdn", "crons", "csp", "integration", "minidump", "nel", "otlp_logs", "otlp_traces", "playstation", "public", "secret", "security", "unreal" ], "description": "DSN and ingestion endpoints for the key" }, "browserSdkVersion": { "type": "string", "description": "JavaScript SDK version the Loader serves" }, "browserSdk": { "type": "object", "properties": { "choices": { "type": "array", "items": { "type": "array", "items": { "type": "string" } }, "description": "JavaScript SDK versions the Loader can serve, as [value, label] pairs" } }, "required": [ "choices" ], "description": "JavaScript SDK versions the Loader can serve" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the client key was created (ISO 8601)" }, "dynamicSdkLoaderOptions": { "type": "object", "properties": { "hasReplay": { "type": "boolean", "description": "Whether the Loader enables Session Replay" }, "hasPerformance": { "type": "boolean", "description": "Whether the Loader enables tracing" }, "hasDebug": { "type": "boolean", "description": "Whether the Loader loads the debug bundle" }, "hasFeedback": { "type": "boolean", "description": "Whether the Loader enables User Feedback" }, "hasLogsAndMetrics": { "type": "boolean", "description": "Whether the Loader enables logs and metrics" } }, "required": [ "hasDebug", "hasFeedback", "hasLogsAndMetrics", "hasPerformance", "hasReplay" ], "description": "Features the JavaScript SDK Loader enables" }, "useCase": { "type": "string", "description": "What the key is used for, such as user or profiling. Only included for superusers" } }, "required": [ "browserSdk", "browserSdkVersion", "dateCreated", "dsn", "dynamicSdkLoaderOptions", "id", "isActive", "label", "name", "projectId", "public", "rateLimit", "secret" ] }, "examples": { "ClientKeyWithRateLimiting": { "value": { "id": "60120449b6b1d5e45f75561e6dabd80b", "name": "Liked Pegasus", "label": "Liked Pegasus", "public": "60120449b6b1d5e45f75561e6dabd80b", "secret": "189485c3b8ccf582bf5e12c530ef8858", "projectId": 4505281256090153, "isActive": true, "rateLimit": { "window": 7200, "count": 1000 }, "dsn": { "secret": "https://a785682ddda742d7a8a4088810e67701:bcd99b3790b3441c85ce4b1eaa854f66@o4504765715316736.ingest.sentry.io/4505281256090153", "public": "https://a785682ddda742d7a8a4088810e67791@o4504765715316736.ingest.sentry.io/4505281256090153", "csp": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/csp-report/?sentry_key=a785682ddda719b7a8a4011110d75598", "security": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/security/?sentry_key=a785682ddda719b7a8a4011110d75598", "minidump": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/minidump/?sentry_key=a785682ddda719b7a8a4011110d75598", "playstation": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/playstation/?sentry_key=a785682ddda719b7a8a4011110d75598", "integration": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/", "otlp_traces": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/traces", "otlp_logs": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/logs", "nel": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/nel/?sentry_key=a785682ddda719b7a8a4011110d75598", "unreal": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/unreal/a785682ddda719b7a8a4011110d75598/", "cdn": "https://js.sentry-cdn.com/a785682ddda719b7a8a4011110d75598.min.js", "crons": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/crons/___MONITOR_SLUG___/a785682ddda719b7a8a4011110d75598/" }, "browserSdkVersion": "7.x", "browserSdk": { "choices": [ [ "latest", "latest" ], [ "7.x", "7.x" ] ] }, "dateCreated": "2023-06-21T19:50:26.036254Z", "dynamicSdkLoaderOptions": { "hasReplay": true, "hasPerformance": true, "hasDebug": true, "hasFeedback": false, "hasLogsAndMetrics": false } }, "summary": "Client key with rate limiting" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateProjectKey", "description": "Update various settings for a client key.", "summary": "Update a Client Key", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "key_id", "schema": { "type": "string" }, "description": "The ID of the key to update.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "description": "The name for the client key" }, "isActive": { "type": "boolean", "description": "Activate or deactivate the client key." }, "rateLimit": { "type": "object", "description": "Applies a rate limit to cap the number of errors accepted during a given time window. To\ndisable entirely set `rateLimit` to null.\n```json\n{\n \"rateLimit\": {\n \"window\": 7200, // time in seconds\n \"count\": 1000 // error cap\n }\n}\n```", "properties": { "count": { "type": "integer", "minimum": 0, "nullable": true }, "window": { "type": "integer", "maximum": 86400, "minimum": 0, "nullable": true } } }, "browserSdkVersion": { "enum": [ "latest", "7.x" ], "type": "string", "description": "The Sentry Javascript SDK version to use. The currently supported options are:\n\n* `latest` - Most recent version\n* `7.x` - Version 7 releases" }, "dynamicSdkLoaderOptions": { "type": "object", "description": "Configures multiple options for the Javascript Loader Script.\n- `Performance Monitoring`\n- `Debug Bundles & Logging`\n- `Session Replay` - Note that the loader will load the ES6 bundle instead of the ES5 bundle.\n- `User Feedback` - Note that the loader will load the ES6 bundle instead of the ES5 bundle.\n- `Logs and Metrics` - Note that the loader will load the ES6 bundle instead of the ES5 bundle. Requires SDK >= 10.0.0.\n```json\n{\n \"dynamicSdkLoaderOptions\": {\n \"hasReplay\": true,\n \"hasPerformance\": true,\n \"hasDebug\": true,\n \"hasFeedback\": true,\n \"hasLogsAndMetrics\": true\n }\n}\n```", "properties": { "hasReplay": { "type": "boolean" }, "hasPerformance": { "type": "boolean" }, "hasDebug": { "type": "boolean" }, "hasFeedback": { "type": "boolean" }, "hasLogsAndMetrics": { "type": "boolean" } } } } } } } }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "description": "This represents a Sentry Project Client Key.", "properties": { "id": { "type": "string", "description": "ID of the client key, same as its public key" }, "name": { "type": "string", "description": "Name of the client key" }, "label": { "type": "string", "description": "Name of the client key, same as name" }, "public": { "type": "string", "nullable": true, "description": "Public key" }, "secret": { "type": "string", "nullable": true, "description": "Secret key" }, "projectId": { "type": "integer", "description": "ID of the project the key belongs to" }, "isActive": { "type": "boolean", "description": "Whether the client key accepts events" }, "rateLimit": { "type": "object", "properties": { "window": { "type": "integer", "description": "Rate limit window in seconds" }, "count": { "type": "integer", "description": "Number of events accepted per window" } }, "required": [ "count", "window" ], "nullable": true, "description": "Rate limit for events sent with the key. Null when there's none" }, "dsn": { "type": "object", "properties": { "secret": { "type": "string", "format": "uri", "description": "DSN that includes the secret key" }, "public": { "type": "string", "format": "uri", "description": "Public DSN to configure SDKs with" }, "csp": { "type": "string", "format": "uri", "description": "Endpoint for Content Security Policy reports" }, "security": { "type": "string", "format": "uri", "description": "Endpoint for security reports" }, "minidump": { "type": "string", "format": "uri", "description": "Endpoint for minidump crash reports" }, "nel": { "type": "string", "format": "uri", "description": "Endpoint for Network Error Logging reports" }, "unreal": { "type": "string", "format": "uri", "description": "Endpoint for Unreal Engine crash reports" }, "crons": { "type": "string", "format": "uri", "description": "Endpoint for cron monitor check-ins" }, "cdn": { "type": "string", "format": "uri", "description": "URL of the JavaScript SDK Loader script" }, "playstation": { "type": "string", "format": "uri", "description": "Endpoint for PlayStation crash reports" }, "integration": { "type": "string", "format": "uri", "description": "Base URL for integration endpoints, such as the OpenTelemetry endpoints" }, "otlp_traces": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for traces" }, "otlp_logs": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for logs" } }, "required": [ "cdn", "crons", "csp", "integration", "minidump", "nel", "otlp_logs", "otlp_traces", "playstation", "public", "secret", "security", "unreal" ], "description": "DSN and ingestion endpoints for the key" }, "browserSdkVersion": { "type": "string", "description": "JavaScript SDK version the Loader serves" }, "browserSdk": { "type": "object", "properties": { "choices": { "type": "array", "items": { "type": "array", "items": { "type": "string" } }, "description": "JavaScript SDK versions the Loader can serve, as [value, label] pairs" } }, "required": [ "choices" ], "description": "JavaScript SDK versions the Loader can serve" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the client key was created (ISO 8601)" }, "dynamicSdkLoaderOptions": { "type": "object", "properties": { "hasReplay": { "type": "boolean", "description": "Whether the Loader enables Session Replay" }, "hasPerformance": { "type": "boolean", "description": "Whether the Loader enables tracing" }, "hasDebug": { "type": "boolean", "description": "Whether the Loader loads the debug bundle" }, "hasFeedback": { "type": "boolean", "description": "Whether the Loader enables User Feedback" }, "hasLogsAndMetrics": { "type": "boolean", "description": "Whether the Loader enables logs and metrics" } }, "required": [ "hasDebug", "hasFeedback", "hasLogsAndMetrics", "hasPerformance", "hasReplay" ], "description": "Features the JavaScript SDK Loader enables" }, "useCase": { "type": "string", "description": "What the key is used for, such as user or profiling. Only included for superusers" } }, "required": [ "browserSdk", "browserSdkVersion", "dateCreated", "dsn", "dynamicSdkLoaderOptions", "id", "isActive", "label", "name", "projectId", "public", "rateLimit", "secret" ] }, "examples": { "ClientKeyWithRateLimiting": { "value": { "id": "60120449b6b1d5e45f75561e6dabd80b", "name": "Liked Pegasus", "label": "Liked Pegasus", "public": "60120449b6b1d5e45f75561e6dabd80b", "secret": "189485c3b8ccf582bf5e12c530ef8858", "projectId": 4505281256090153, "isActive": true, "rateLimit": { "window": 7200, "count": 1000 }, "dsn": { "secret": "https://a785682ddda742d7a8a4088810e67701:bcd99b3790b3441c85ce4b1eaa854f66@o4504765715316736.ingest.sentry.io/4505281256090153", "public": "https://a785682ddda742d7a8a4088810e67791@o4504765715316736.ingest.sentry.io/4505281256090153", "csp": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/csp-report/?sentry_key=a785682ddda719b7a8a4011110d75598", "security": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/security/?sentry_key=a785682ddda719b7a8a4011110d75598", "minidump": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/minidump/?sentry_key=a785682ddda719b7a8a4011110d75598", "playstation": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/playstation/?sentry_key=a785682ddda719b7a8a4011110d75598", "integration": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/", "otlp_traces": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/traces", "otlp_logs": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/logs", "nel": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/nel/?sentry_key=a785682ddda719b7a8a4011110d75598", "unreal": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/unreal/a785682ddda719b7a8a4011110d75598/", "cdn": "https://js.sentry-cdn.com/a785682ddda719b7a8a4011110d75598.min.js", "crons": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/crons/___MONITOR_SLUG___/a785682ddda719b7a8a4011110d75598/" }, "browserSdkVersion": "7.x", "browserSdk": { "choices": [ [ "latest", "latest" ], [ "7.x", "7.x" ] ] }, "dateCreated": "2023-06-21T19:50:26.036254Z", "dynamicSdkLoaderOptions": { "hasReplay": true, "hasPerformance": true, "hasDebug": true, "hasFeedback": false, "hasLogsAndMetrics": false } }, "summary": "Client key with rate limiting" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteProjectKey", "description": "Delete a client key for a given project.", "summary": "Delete a Client Key", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "key_id", "schema": { "type": "string" }, "description": "The ID of the key to delete.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin" ] } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/members/": { "get": { "operationId": "listProjectMembers", "description": "Returns a list of active organization members that belong to any team assigned to the project.", "summary": "List a Project's Organization Members", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "externalUsers": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested" }, "id": { "type": "string", "description": "Organization member ID" }, "email": { "type": "string", "description": "Email address of the member's user, or the invited email address if they have no account yet" }, "name": { "type": "string", "description": "Display name of the member's user, or their email address if they have no account yet" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "The member's user. Null for invited members without an account, or if the user can't be found" }, "orgRole": { "type": "string", "description": "ID of the member's organization role" }, "pending": { "type": "boolean", "description": "Whether the member has no user account linked yet, as with an invite that hasn't been accepted" }, "expired": { "type": "boolean", "description": "Whether the member's invite has expired" }, "flags": { "type": "object", "properties": { "idp:provisioned": { "type": "boolean", "description": "Whether the member is provisioned and managed through the organization's identity provider (SCIM)" }, "idp:role-restricted": { "type": "boolean", "description": "Whether the member's organization role is set by the identity provider through SCIM" }, "sso:linked": { "type": "boolean", "description": "Whether the member has linked their account to the organization's SSO provider" }, "sso:invalid": { "type": "boolean", "description": "Whether the member's SSO link is invalid" }, "member-limit:restricted": { "type": "boolean", "description": "Whether the member is restricted by the plan's member limit" }, "partnership:restricted": { "type": "boolean", "description": "Whether the member is managed by an active partnership and can't be changed until it ends" } }, "required": [ "idp:provisioned", "idp:role-restricted", "member-limit:restricted", "partnership:restricted", "sso:invalid", "sso:linked" ], "description": "Member flags" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the member was added or invited" }, "inviteStatus": { "enum": [ "approved", "requested_to_be_invited", "requested_to_join", null ], "type": "string", "nullable": true, "description": "Invite status" }, "inviterName": { "type": "string", "nullable": true, "description": "Name of the user who invited the member, or null" } }, "required": [ "dateCreated", "email", "expired", "flags", "id", "inviteStatus", "inviterName", "name", "orgRole", "pending", "user" ] } }, "examples": { "ListOrganizationMembers": { "value": [ { "id": "57377908164", "email": "sirpenguin@antarcticarocks.com", "name": "Sir Penguin", "user": { "id": "280094367316", "name": "Sir Penguin", "username": "sirpenguin@antarcticarocks.com", "email": "sirpenguin@antarcticarocks.com", "avatarUrl": "https://secure.gravatar.com/avatar/16aeb26c5fdba335c7078e9e9ddb5149?s=32&d=mm", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-07-06T21:13:58.375239Z", "lastLogin": "2021-08-02T18:25:00.051182Z", "has2fa": false, "lastActive": "2021-08-02T21:32:18.836829Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "2153450836", "email": "sirpenguin@antarcticarocks.com", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "canReset2fa": true }, "orgRole": "member", "pending": false, "expired": false, "flags": { "idp:provisioned": false, "idp:role-restricted": false, "sso:linked": false, "sso:invalid": false, "member-limit:restricted": false, "partnership:restricted": false }, "dateCreated": "2021-07-06T21:13:01.120263Z", "inviteStatus": "approved", "inviterName": "maininviter@antarcticarocks.com" }, { "id": "57377908165", "email": "rockhopper@antarcticarocks.com", "name": "Rockhopper", "user": null, "orgRole": "member", "pending": true, "expired": false, "flags": { "idp:provisioned": false, "idp:role-restricted": false, "sso:linked": false, "sso:invalid": false, "member-limit:restricted": false, "partnership:restricted": false }, "dateCreated": "2021-07-07T21:13:01.120263Z", "inviteStatus": "approved", "inviterName": "maininviter@antarcticarocks.com" } ], "summary": "List organization members" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/monitors/{monitor_id_or_slug}/": { "get": { "operationId": "getProjectMonitor", "description": "Retrieves details for a monitor.", "summary": "Retrieve a Monitor for a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "monitor_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the monitor.", "required": true } ], "tags": [ "Crons" ], "security": [ { "auth_token": [ "alerts:read", "alerts:write", "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateProjectMonitor", "description": "Update a monitor.", "summary": "Update a Monitor for a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "monitor_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the monitor.", "required": true } ], "tags": [ "Crons" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "project": { "type": "string", "description": "The project ID or slug to associate the monitor to." }, "name": { "type": "string", "description": "Name of the monitor. Used for notifications. If not set the slug will be derived from your monitor name.", "maxLength": 128 }, "config": { "allOf": [ { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Currently supports \"crontab\" or \"interval\"\n\n* `crontab`\n* `interval`" }, "schedule": { "description": "Varies depending on the schedule_type. Is either a crontab string, or a 2 element tuple for intervals (e.g. [1, 'day'])" }, "checkin_margin": { "type": "integer", "maximum": 40320, "minimum": 1, "nullable": true, "description": "How long (in minutes) after the expected checkin time will we wait until we consider the checkin to have been missed." }, "max_runtime": { "type": "integer", "maximum": 10080, "minimum": 1, "nullable": true, "description": "How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed. Maximum 10080 (7 days)." }, "timezone": { "enum": [ "Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Asmera", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Timbuktu", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/ComodRivadavia", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Atka", "America/Bahia", "America/Bahia_Banderas", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Buenos_Aires", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Catamarca", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Coral_Harbour", "America/Cordoba", "America/Costa_Rica", "America/Coyhaique", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson", "America/Dawson_Creek", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Ensenada", "America/Fort_Nelson", "America/Fort_Wayne", "America/Fortaleza", "America/Glace_Bay", "America/Godthab", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Indianapolis", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Jujuy", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Knox_IN", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Louisville", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Mendoza", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montreal", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nipigon", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Pangnirtung", "America/Paramaribo", "America/Phoenix", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Acre", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rainy_River", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Rosario", "America/Santa_Isabel", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Shiprock", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Thunder_Bay", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Virgin", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "America/Yellowknife", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/South_Pole", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Ashkhabad", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Calcutta", "Asia/Chita", "Asia/Choibalsan", "Asia/Chongqing", "Asia/Chungking", "Asia/Colombo", "Asia/Dacca", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Harbin", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Istanbul", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kashgar", "Asia/Kathmandu", "Asia/Katmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macao", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Rangoon", "Asia/Riyadh", "Asia/Saigon", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Tel_Aviv", "Asia/Thimbu", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ujung_Pandang", "Asia/Ulaanbaatar", "Asia/Ulan_Bator", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faeroe", "Atlantic/Faroe", "Atlantic/Jan_Mayen", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/ACT", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Canberra", "Australia/Currie", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/LHI", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/NSW", "Australia/North", "Australia/Perth", "Australia/Queensland", "Australia/South", "Australia/Sydney", "Australia/Tasmania", "Australia/Victoria", "Australia/West", "Australia/Yancowinna", "Brazil/Acre", "Brazil/DeNoronha", "Brazil/East", "Brazil/West", "CET", "CST6CDT", "Canada/Atlantic", "Canada/Central", "Canada/Eastern", "Canada/Mountain", "Canada/Newfoundland", "Canada/Pacific", "Canada/Saskatchewan", "Canada/Yukon", "Chile/Continental", "Chile/EasterIsland", "Cuba", "EET", "EST", "EST5EDT", "Egypt", "Eire", "Etc/GMT", "Etc/GMT+0", "Etc/GMT+1", "Etc/GMT+10", "Etc/GMT+11", "Etc/GMT+12", "Etc/GMT+2", "Etc/GMT+3", "Etc/GMT+4", "Etc/GMT+5", "Etc/GMT+6", "Etc/GMT+7", "Etc/GMT+8", "Etc/GMT+9", "Etc/GMT-0", "Etc/GMT-1", "Etc/GMT-10", "Etc/GMT-11", "Etc/GMT-12", "Etc/GMT-13", "Etc/GMT-14", "Etc/GMT-2", "Etc/GMT-3", "Etc/GMT-4", "Etc/GMT-5", "Etc/GMT-6", "Etc/GMT-7", "Etc/GMT-8", "Etc/GMT-9", "Etc/GMT0", "Etc/Greenwich", "Etc/UCT", "Etc/UTC", "Etc/Universal", "Etc/Zulu", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belfast", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kiev", "Europe/Kirov", "Europe/Kyiv", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Nicosia", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Tiraspol", "Europe/Ulyanovsk", "Europe/Uzhgorod", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zaporozhye", "Europe/Zurich", "GB", "GB-Eire", "GMT", "GMT+0", "GMT-0", "GMT0", "Greenwich", "HST", "Hongkong", "Iceland", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Iran", "Israel", "Jamaica", "Japan", "Kwajalein", "Libya", "MET", "MST", "MST7MDT", "Mexico/BajaNorte", "Mexico/BajaSur", "Mexico/General", "NZ", "NZ-CHAT", "Navajo", "PRC", "PST8PDT", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Enderbury", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Johnston", "Pacific/Kanton", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Ponape", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Samoa", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Truk", "Pacific/Wake", "Pacific/Wallis", "Pacific/Yap", "Poland", "Portugal", "ROC", "ROK", "Singapore", "Turkey", "UCT", "US/Alaska", "US/Aleutian", "US/Arizona", "US/Central", "US/East-Indiana", "US/Eastern", "US/Hawaii", "US/Indiana-Starke", "US/Michigan", "US/Mountain", "US/Pacific", "US/Samoa", "UTC", "Universal", "W-SU", "WET", "Zulu", "localtime", "" ], "type": "string", "description": "tz database style timezone string\n\n* `Africa/Abidjan`\n* `Africa/Accra`\n* `Africa/Addis_Ababa`\n* `Africa/Algiers`\n* `Africa/Asmara`\n* `Africa/Asmera`\n* `Africa/Bamako`\n* `Africa/Bangui`\n* `Africa/Banjul`\n* `Africa/Bissau`\n* `Africa/Blantyre`\n* `Africa/Brazzaville`\n* `Africa/Bujumbura`\n* `Africa/Cairo`\n* `Africa/Casablanca`\n* `Africa/Ceuta`\n* `Africa/Conakry`\n* `Africa/Dakar`\n* `Africa/Dar_es_Salaam`\n* `Africa/Djibouti`\n* `Africa/Douala`\n* `Africa/El_Aaiun`\n* `Africa/Freetown`\n* `Africa/Gaborone`\n* `Africa/Harare`\n* `Africa/Johannesburg`\n* `Africa/Juba`\n* `Africa/Kampala`\n* `Africa/Khartoum`\n* `Africa/Kigali`\n* `Africa/Kinshasa`\n* `Africa/Lagos`\n* `Africa/Libreville`\n* `Africa/Lome`\n* `Africa/Luanda`\n* `Africa/Lubumbashi`\n* `Africa/Lusaka`\n* `Africa/Malabo`\n* `Africa/Maputo`\n* `Africa/Maseru`\n* `Africa/Mbabane`\n* `Africa/Mogadishu`\n* `Africa/Monrovia`\n* `Africa/Nairobi`\n* `Africa/Ndjamena`\n* `Africa/Niamey`\n* `Africa/Nouakchott`\n* `Africa/Ouagadougou`\n* `Africa/Porto-Novo`\n* `Africa/Sao_Tome`\n* `Africa/Timbuktu`\n* `Africa/Tripoli`\n* `Africa/Tunis`\n* `Africa/Windhoek`\n* `America/Adak`\n* `America/Anchorage`\n* `America/Anguilla`\n* `America/Antigua`\n* `America/Araguaina`\n* `America/Argentina/Buenos_Aires`\n* `America/Argentina/Catamarca`\n* `America/Argentina/ComodRivadavia`\n* `America/Argentina/Cordoba`\n* `America/Argentina/Jujuy`\n* `America/Argentina/La_Rioja`\n* `America/Argentina/Mendoza`\n* `America/Argentina/Rio_Gallegos`\n* `America/Argentina/Salta`\n* `America/Argentina/San_Juan`\n* `America/Argentina/San_Luis`\n* `America/Argentina/Tucuman`\n* `America/Argentina/Ushuaia`\n* `America/Aruba`\n* `America/Asuncion`\n* `America/Atikokan`\n* `America/Atka`\n* `America/Bahia`\n* `America/Bahia_Banderas`\n* `America/Barbados`\n* `America/Belem`\n* `America/Belize`\n* `America/Blanc-Sablon`\n* `America/Boa_Vista`\n* `America/Bogota`\n* `America/Boise`\n* `America/Buenos_Aires`\n* `America/Cambridge_Bay`\n* `America/Campo_Grande`\n* `America/Cancun`\n* `America/Caracas`\n* `America/Catamarca`\n* `America/Cayenne`\n* `America/Cayman`\n* `America/Chicago`\n* `America/Chihuahua`\n* `America/Ciudad_Juarez`\n* `America/Coral_Harbour`\n* `America/Cordoba`\n* `America/Costa_Rica`\n* `America/Coyhaique`\n* `America/Creston`\n* `America/Cuiaba`\n* `America/Curacao`\n* `America/Danmarkshavn`\n* `America/Dawson`\n* `America/Dawson_Creek`\n* `America/Denver`\n* `America/Detroit`\n* `America/Dominica`\n* `America/Edmonton`\n* `America/Eirunepe`\n* `America/El_Salvador`\n* `America/Ensenada`\n* `America/Fort_Nelson`\n* `America/Fort_Wayne`\n* `America/Fortaleza`\n* `America/Glace_Bay`\n* `America/Godthab`\n* `America/Goose_Bay`\n* `America/Grand_Turk`\n* `America/Grenada`\n* `America/Guadeloupe`\n* `America/Guatemala`\n* `America/Guayaquil`\n* `America/Guyana`\n* `America/Halifax`\n* `America/Havana`\n* `America/Hermosillo`\n* `America/Indiana/Indianapolis`\n* `America/Indiana/Knox`\n* `America/Indiana/Marengo`\n* `America/Indiana/Petersburg`\n* `America/Indiana/Tell_City`\n* `America/Indiana/Vevay`\n* `America/Indiana/Vincennes`\n* `America/Indiana/Winamac`\n* `America/Indianapolis`\n* `America/Inuvik`\n* `America/Iqaluit`\n* `America/Jamaica`\n* `America/Jujuy`\n* `America/Juneau`\n* `America/Kentucky/Louisville`\n* `America/Kentucky/Monticello`\n* `America/Knox_IN`\n* `America/Kralendijk`\n* `America/La_Paz`\n* `America/Lima`\n* `America/Los_Angeles`\n* `America/Louisville`\n* `America/Lower_Princes`\n* `America/Maceio`\n* `America/Managua`\n* `America/Manaus`\n* `America/Marigot`\n* `America/Martinique`\n* `America/Matamoros`\n* `America/Mazatlan`\n* `America/Mendoza`\n* `America/Menominee`\n* `America/Merida`\n* `America/Metlakatla`\n* `America/Mexico_City`\n* `America/Miquelon`\n* `America/Moncton`\n* `America/Monterrey`\n* `America/Montevideo`\n* `America/Montreal`\n* `America/Montserrat`\n* `America/Nassau`\n* `America/New_York`\n* `America/Nipigon`\n* `America/Nome`\n* `America/Noronha`\n* `America/North_Dakota/Beulah`\n* `America/North_Dakota/Center`\n* `America/North_Dakota/New_Salem`\n* `America/Nuuk`\n* `America/Ojinaga`\n* `America/Panama`\n* `America/Pangnirtung`\n* `America/Paramaribo`\n* `America/Phoenix`\n* `America/Port-au-Prince`\n* `America/Port_of_Spain`\n* `America/Porto_Acre`\n* `America/Porto_Velho`\n* `America/Puerto_Rico`\n* `America/Punta_Arenas`\n* `America/Rainy_River`\n* `America/Rankin_Inlet`\n* `America/Recife`\n* `America/Regina`\n* `America/Resolute`\n* `America/Rio_Branco`\n* `America/Rosario`\n* `America/Santa_Isabel`\n* `America/Santarem`\n* `America/Santiago`\n* `America/Santo_Domingo`\n* `America/Sao_Paulo`\n* `America/Scoresbysund`\n* `America/Shiprock`\n* `America/Sitka`\n* `America/St_Barthelemy`\n* `America/St_Johns`\n* `America/St_Kitts`\n* `America/St_Lucia`\n* `America/St_Thomas`\n* `America/St_Vincent`\n* `America/Swift_Current`\n* `America/Tegucigalpa`\n* `America/Thule`\n* `America/Thunder_Bay`\n* `America/Tijuana`\n* `America/Toronto`\n* `America/Tortola`\n* `America/Vancouver`\n* `America/Virgin`\n* `America/Whitehorse`\n* `America/Winnipeg`\n* `America/Yakutat`\n* `America/Yellowknife`\n* `Antarctica/Casey`\n* `Antarctica/Davis`\n* `Antarctica/DumontDUrville`\n* `Antarctica/Macquarie`\n* `Antarctica/Mawson`\n* `Antarctica/McMurdo`\n* `Antarctica/Palmer`\n* `Antarctica/Rothera`\n* `Antarctica/South_Pole`\n* `Antarctica/Syowa`\n* `Antarctica/Troll`\n* `Antarctica/Vostok`\n* `Arctic/Longyearbyen`\n* `Asia/Aden`\n* `Asia/Almaty`\n* `Asia/Amman`\n* `Asia/Anadyr`\n* `Asia/Aqtau`\n* `Asia/Aqtobe`\n* `Asia/Ashgabat`\n* `Asia/Ashkhabad`\n* `Asia/Atyrau`\n* `Asia/Baghdad`\n* `Asia/Bahrain`\n* `Asia/Baku`\n* `Asia/Bangkok`\n* `Asia/Barnaul`\n* `Asia/Beirut`\n* `Asia/Bishkek`\n* `Asia/Brunei`\n* `Asia/Calcutta`\n* `Asia/Chita`\n* `Asia/Choibalsan`\n* `Asia/Chongqing`\n* `Asia/Chungking`\n* `Asia/Colombo`\n* `Asia/Dacca`\n* `Asia/Damascus`\n* `Asia/Dhaka`\n* `Asia/Dili`\n* `Asia/Dubai`\n* `Asia/Dushanbe`\n* `Asia/Famagusta`\n* `Asia/Gaza`\n* `Asia/Harbin`\n* `Asia/Hebron`\n* `Asia/Ho_Chi_Minh`\n* `Asia/Hong_Kong`\n* `Asia/Hovd`\n* `Asia/Irkutsk`\n* `Asia/Istanbul`\n* `Asia/Jakarta`\n* `Asia/Jayapura`\n* `Asia/Jerusalem`\n* `Asia/Kabul`\n* `Asia/Kamchatka`\n* `Asia/Karachi`\n* `Asia/Kashgar`\n* `Asia/Kathmandu`\n* `Asia/Katmandu`\n* `Asia/Khandyga`\n* `Asia/Kolkata`\n* `Asia/Krasnoyarsk`\n* `Asia/Kuala_Lumpur`\n* `Asia/Kuching`\n* `Asia/Kuwait`\n* `Asia/Macao`\n* `Asia/Macau`\n* `Asia/Magadan`\n* `Asia/Makassar`\n* `Asia/Manila`\n* `Asia/Muscat`\n* `Asia/Nicosia`\n* `Asia/Novokuznetsk`\n* `Asia/Novosibirsk`\n* `Asia/Omsk`\n* `Asia/Oral`\n* `Asia/Phnom_Penh`\n* `Asia/Pontianak`\n* `Asia/Pyongyang`\n* `Asia/Qatar`\n* `Asia/Qostanay`\n* `Asia/Qyzylorda`\n* `Asia/Rangoon`\n* `Asia/Riyadh`\n* `Asia/Saigon`\n* `Asia/Sakhalin`\n* `Asia/Samarkand`\n* `Asia/Seoul`\n* `Asia/Shanghai`\n* `Asia/Singapore`\n* `Asia/Srednekolymsk`\n* `Asia/Taipei`\n* `Asia/Tashkent`\n* `Asia/Tbilisi`\n* `Asia/Tehran`\n* `Asia/Tel_Aviv`\n* `Asia/Thimbu`\n* `Asia/Thimphu`\n* `Asia/Tokyo`\n* `Asia/Tomsk`\n* `Asia/Ujung_Pandang`\n* `Asia/Ulaanbaatar`\n* `Asia/Ulan_Bator`\n* `Asia/Urumqi`\n* `Asia/Ust-Nera`\n* `Asia/Vientiane`\n* `Asia/Vladivostok`\n* `Asia/Yakutsk`\n* `Asia/Yangon`\n* `Asia/Yekaterinburg`\n* `Asia/Yerevan`\n* `Atlantic/Azores`\n* `Atlantic/Bermuda`\n* `Atlantic/Canary`\n* `Atlantic/Cape_Verde`\n* `Atlantic/Faeroe`\n* `Atlantic/Faroe`\n* `Atlantic/Jan_Mayen`\n* `Atlantic/Madeira`\n* `Atlantic/Reykjavik`\n* `Atlantic/South_Georgia`\n* `Atlantic/St_Helena`\n* `Atlantic/Stanley`\n* `Australia/ACT`\n* `Australia/Adelaide`\n* `Australia/Brisbane`\n* `Australia/Broken_Hill`\n* `Australia/Canberra`\n* `Australia/Currie`\n* `Australia/Darwin`\n* `Australia/Eucla`\n* `Australia/Hobart`\n* `Australia/LHI`\n* `Australia/Lindeman`\n* `Australia/Lord_Howe`\n* `Australia/Melbourne`\n* `Australia/NSW`\n* `Australia/North`\n* `Australia/Perth`\n* `Australia/Queensland`\n* `Australia/South`\n* `Australia/Sydney`\n* `Australia/Tasmania`\n* `Australia/Victoria`\n* `Australia/West`\n* `Australia/Yancowinna`\n* `Brazil/Acre`\n* `Brazil/DeNoronha`\n* `Brazil/East`\n* `Brazil/West`\n* `CET`\n* `CST6CDT`\n* `Canada/Atlantic`\n* `Canada/Central`\n* `Canada/Eastern`\n* `Canada/Mountain`\n* `Canada/Newfoundland`\n* `Canada/Pacific`\n* `Canada/Saskatchewan`\n* `Canada/Yukon`\n* `Chile/Continental`\n* `Chile/EasterIsland`\n* `Cuba`\n* `EET`\n* `EST`\n* `EST5EDT`\n* `Egypt`\n* `Eire`\n* `Etc/GMT`\n* `Etc/GMT+0`\n* `Etc/GMT+1`\n* `Etc/GMT+10`\n* `Etc/GMT+11`\n* `Etc/GMT+12`\n* `Etc/GMT+2`\n* `Etc/GMT+3`\n* `Etc/GMT+4`\n* `Etc/GMT+5`\n* `Etc/GMT+6`\n* `Etc/GMT+7`\n* `Etc/GMT+8`\n* `Etc/GMT+9`\n* `Etc/GMT-0`\n* `Etc/GMT-1`\n* `Etc/GMT-10`\n* `Etc/GMT-11`\n* `Etc/GMT-12`\n* `Etc/GMT-13`\n* `Etc/GMT-14`\n* `Etc/GMT-2`\n* `Etc/GMT-3`\n* `Etc/GMT-4`\n* `Etc/GMT-5`\n* `Etc/GMT-6`\n* `Etc/GMT-7`\n* `Etc/GMT-8`\n* `Etc/GMT-9`\n* `Etc/GMT0`\n* `Etc/Greenwich`\n* `Etc/UCT`\n* `Etc/UTC`\n* `Etc/Universal`\n* `Etc/Zulu`\n* `Europe/Amsterdam`\n* `Europe/Andorra`\n* `Europe/Astrakhan`\n* `Europe/Athens`\n* `Europe/Belfast`\n* `Europe/Belgrade`\n* `Europe/Berlin`\n* `Europe/Bratislava`\n* `Europe/Brussels`\n* `Europe/Bucharest`\n* `Europe/Budapest`\n* `Europe/Busingen`\n* `Europe/Chisinau`\n* `Europe/Copenhagen`\n* `Europe/Dublin`\n* `Europe/Gibraltar`\n* `Europe/Guernsey`\n* `Europe/Helsinki`\n* `Europe/Isle_of_Man`\n* `Europe/Istanbul`\n* `Europe/Jersey`\n* `Europe/Kaliningrad`\n* `Europe/Kiev`\n* `Europe/Kirov`\n* `Europe/Kyiv`\n* `Europe/Lisbon`\n* `Europe/Ljubljana`\n* `Europe/London`\n* `Europe/Luxembourg`\n* `Europe/Madrid`\n* `Europe/Malta`\n* `Europe/Mariehamn`\n* `Europe/Minsk`\n* `Europe/Monaco`\n* `Europe/Moscow`\n* `Europe/Nicosia`\n* `Europe/Oslo`\n* `Europe/Paris`\n* `Europe/Podgorica`\n* `Europe/Prague`\n* `Europe/Riga`\n* `Europe/Rome`\n* `Europe/Samara`\n* `Europe/San_Marino`\n* `Europe/Sarajevo`\n* `Europe/Saratov`\n* `Europe/Simferopol`\n* `Europe/Skopje`\n* `Europe/Sofia`\n* `Europe/Stockholm`\n* `Europe/Tallinn`\n* `Europe/Tirane`\n* `Europe/Tiraspol`\n* `Europe/Ulyanovsk`\n* `Europe/Uzhgorod`\n* `Europe/Vaduz`\n* `Europe/Vatican`\n* `Europe/Vienna`\n* `Europe/Vilnius`\n* `Europe/Volgograd`\n* `Europe/Warsaw`\n* `Europe/Zagreb`\n* `Europe/Zaporozhye`\n* `Europe/Zurich`\n* `GB`\n* `GB-Eire`\n* `GMT`\n* `GMT+0`\n* `GMT-0`\n* `GMT0`\n* `Greenwich`\n* `HST`\n* `Hongkong`\n* `Iceland`\n* `Indian/Antananarivo`\n* `Indian/Chagos`\n* `Indian/Christmas`\n* `Indian/Cocos`\n* `Indian/Comoro`\n* `Indian/Kerguelen`\n* `Indian/Mahe`\n* `Indian/Maldives`\n* `Indian/Mauritius`\n* `Indian/Mayotte`\n* `Indian/Reunion`\n* `Iran`\n* `Israel`\n* `Jamaica`\n* `Japan`\n* `Kwajalein`\n* `Libya`\n* `MET`\n* `MST`\n* `MST7MDT`\n* `Mexico/BajaNorte`\n* `Mexico/BajaSur`\n* `Mexico/General`\n* `NZ`\n* `NZ-CHAT`\n* `Navajo`\n* `PRC`\n* `PST8PDT`\n* `Pacific/Apia`\n* `Pacific/Auckland`\n* `Pacific/Bougainville`\n* `Pacific/Chatham`\n* `Pacific/Chuuk`\n* `Pacific/Easter`\n* `Pacific/Efate`\n* `Pacific/Enderbury`\n* `Pacific/Fakaofo`\n* `Pacific/Fiji`\n* `Pacific/Funafuti`\n* `Pacific/Galapagos`\n* `Pacific/Gambier`\n* `Pacific/Guadalcanal`\n* `Pacific/Guam`\n* `Pacific/Honolulu`\n* `Pacific/Johnston`\n* `Pacific/Kanton`\n* `Pacific/Kiritimati`\n* `Pacific/Kosrae`\n* `Pacific/Kwajalein`\n* `Pacific/Majuro`\n* `Pacific/Marquesas`\n* `Pacific/Midway`\n* `Pacific/Nauru`\n* `Pacific/Niue`\n* `Pacific/Norfolk`\n* `Pacific/Noumea`\n* `Pacific/Pago_Pago`\n* `Pacific/Palau`\n* `Pacific/Pitcairn`\n* `Pacific/Pohnpei`\n* `Pacific/Ponape`\n* `Pacific/Port_Moresby`\n* `Pacific/Rarotonga`\n* `Pacific/Saipan`\n* `Pacific/Samoa`\n* `Pacific/Tahiti`\n* `Pacific/Tarawa`\n* `Pacific/Tongatapu`\n* `Pacific/Truk`\n* `Pacific/Wake`\n* `Pacific/Wallis`\n* `Pacific/Yap`\n* `Poland`\n* `Portugal`\n* `ROC`\n* `ROK`\n* `Singapore`\n* `Turkey`\n* `UCT`\n* `US/Alaska`\n* `US/Aleutian`\n* `US/Arizona`\n* `US/Central`\n* `US/East-Indiana`\n* `US/Eastern`\n* `US/Hawaii`\n* `US/Indiana-Starke`\n* `US/Michigan`\n* `US/Mountain`\n* `US/Pacific`\n* `US/Samoa`\n* `UTC`\n* `Universal`\n* `W-SU`\n* `WET`\n* `Zulu`\n* `localtime`" }, "failure_issue_threshold": { "type": "integer", "maximum": 720, "minimum": 1, "nullable": true, "description": "How many consecutive missed or failed check-ins in a row before creating a new issue." }, "recovery_threshold": { "type": "integer", "maximum": 720, "minimum": 1, "nullable": true, "description": "How many successful check-ins in a row before resolving an issue." } }, "required": [ "schedule" ] } ], "description": "The configuration for the monitor." }, "slug": { "type": "string", "description": "Uniquely identifies your monitor within your organization. Changing this slug will require updates to any instrumented check-in calls.", "maxLength": 50, "pattern": "^(?![0-9]+$)[a-z0-9_\\-]+$" }, "status": { "enum": [ "active", "disabled" ], "type": "string", "default": "active", "description": "Status of the monitor. Disabled monitors will not accept events and will not count towards the monitor quota.\n\n* `active`\n* `disabled`" }, "owner": { "type": "string", "nullable": true, "description": "The ID of the team or user that owns the monitor. (eg. user:51 or team:6)" }, "is_muted": { "type": "boolean", "description": "Disable creation of monitor incidents" } }, "required": [ "config", "name", "project" ] } } }, "required": true }, "security": [ { "auth_token": [ "alerts:write", "project:admin", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteProjectMonitor", "description": "Delete a monitor or monitor environments.", "summary": "Delete a Monitor or Monitor Environments for a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "monitor_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the monitor.", "required": true }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." } ], "tags": [ "Crons" ], "security": [ { "auth_token": [ "alerts:write", "project:admin", "project:write" ] } ], "responses": { "202": { "description": "Accepted" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/monitors/{monitor_id_or_slug}/checkins/": { "get": { "operationId": "listProjectMonitorCheckins", "description": "Retrieve a list of check-ins for a monitor", "summary": "Retrieve Check-Ins for a Monitor by Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "monitor_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the monitor.", "required": true } ], "tags": [ "Crons" ], "security": [ { "auth_token": [ "alerts:read", "alerts:write", "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "groups": { "type": "array", "items": { "type": "string" }, "description": "Issues linked to the check-in's trace. Only included when requested with expand=groups" }, "id": { "type": "string", "description": "ID of the check-in" }, "environment": { "type": "string", "description": "Name of the environment the check-in belongs to" }, "status": { "enum": [ "unknown", "ok", "error", "in_progress", "missed", "timeout" ], "type": "string", "description": "Status of the check-in" }, "duration": { "type": "integer", "nullable": true, "description": "Duration of the job run in milliseconds" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the check-in was stored (ISO 8601)" }, "dateAdded": { "type": "string", "format": "date-time", "description": "When the check-in was received (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the check-in was last updated (ISO 8601)" }, "dateInProgress": { "type": "string", "format": "date-time", "nullable": true, "description": "When the first in_progress check-in was received (ISO 8601). Null when none was sent" }, "dateClock": { "type": "string", "format": "date-time", "nullable": true, "description": "Clock time the check-in was processed at, relative to other check-in tasks (ISO 8601)" }, "expectedTime": { "type": "string", "format": "date-time", "nullable": true, "description": "When the check-in was expected (ISO 8601)" }, "monitorConfig": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Monitor configuration when the check-in was received" } }, "required": [ "dateAdded", "dateClock", "dateCreated", "dateInProgress", "dateUpdated", "duration", "environment", "expectedTime", "id", "monitorConfig", "status" ] } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/ownership/": { "get": { "operationId": "getProjectOwnership", "description": "Returns details on a project's ownership configuration.", "summary": "Retrieve Ownership Configuration for a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "schema": { "type": "object", "properties": { "$version": { "type": "integer", "description": "Version of the ownership rules schema" }, "rules": { "type": "array", "items": { "type": "object", "properties": { "matcher": { "type": "object", "properties": { "type": { "type": "string", "description": "What the rule matches on, path, module, url, codeowners or tags." }, "pattern": { "type": "string", "description": "Pattern the value is matched against" } }, "required": [ "pattern", "type" ], "description": "What the rule matches" }, "owners": { "type": "array", "items": { "type": "object", "description": "Owner as it appears in the API response (after identifier->name rename).", "properties": { "type": { "type": "string", "description": "Whether the owner is a user or a team" }, "name": { "type": "string", "description": "Email of the user, or slug of the team" }, "id": { "type": "string", "description": "ID of the user or team. Only set when the owner was resolved" } }, "required": [ "name", "type" ] }, "description": "Owners the rule assigns" } }, "required": [ "matcher", "owners" ] }, "description": "Ownership rules, in order" } }, "required": [ "$version", "rules" ], "nullable": true, "description": "Parsed ownership rules. Null when there are no rules" }, "raw": { "type": "string", "nullable": true, "description": "Ownership rules as text" }, "fallthrough": { "type": "boolean", "description": "Whether issues that match no rule are assigned to all project members" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the ownership rules were created (ISO 8601)" }, "lastUpdated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the ownership rules were last updated (ISO 8601)" }, "isActive": { "type": "boolean", "description": "Whether the ownership rules are active" }, "autoAssignment": { "type": "string", "description": "Auto-assignment setting: Auto Assign to Suspect Commits, Auto Assign to Issue Owner or Turn off Auto-Assignment" }, "codeownersAutoSync": { "type": "boolean", "nullable": true, "description": "Whether CODEOWNERS files sync automatically when they change" } }, "required": [ "autoAssignment", "codeownersAutoSync", "dateCreated", "fallthrough", "isActive", "lastUpdated", "raw" ] }, "examples": { "GetOwnershipConfigurationForAProject": { "value": { "raw": "path:src/views/checkout jane.smith@org.com \nurl:https://example.com/checkout jane.smith@org.com\ntags.transaction:/checkout/:page jane.smith@org.com", "fallthrough": true, "dateCreated": "2023-10-03T20:25:18.539823Z", "lastUpdated": "2023-10-03T22:49:12.294741Z", "isActive": true, "autoAssignment": "Auto Assign to Issue Owner", "codeownersAutoSync": true, "schema": { "$version": 1, "rules": [ { "matcher": { "type": "path", "pattern": "src/views/checkout" }, "owners": [ { "type": "user", "id": "2621754", "name": "jane.smith@org.com" } ] }, { "matcher": { "type": "url", "pattern": "https://example.com/checkout" }, "owners": [ { "type": "user", "id": "2621754", "name": "jane.smith@org.com" } ] }, { "matcher": { "type": "tags.transaction", "pattern": "/checkout/:page" }, "owners": [ { "type": "user", "id": "2621754", "name": "jane.smith@org.com" } ] } ] } }, "summary": "Get ownership configuration for a project" } } } }, "description": "" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateProjectOwnership", "description": "Updates ownership configurations for a project. Note that only the\nattributes submitted are modified.", "summary": "Update Ownership Configuration for a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "raw": { "type": "string", "description": "Raw input for ownership configuration. See the [Ownership Rules Documentation](/product/issues/ownership-rules/) to learn more." }, "fallthrough": { "type": "boolean", "description": "A boolean determining who to assign ownership to when an ownership rule has no match. If set to `True`, all project members are made owners. Otherwise, no owners are set." }, "autoAssignment": { "type": "string", "description": "Auto-assignment settings. The available options are:\n- Auto Assign to Issue Owner\n- Auto Assign to Suspect Commits\n- Turn off Auto-Assignment" }, "codeownersAutoSync": { "type": "boolean", "default": true, "description": "Set to `True` to sync issue owners with CODEOWNERS updates in a release." } } } } } }, "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "schema": { "type": "object", "properties": { "$version": { "type": "integer", "description": "Version of the ownership rules schema" }, "rules": { "type": "array", "items": { "type": "object", "properties": { "matcher": { "type": "object", "properties": { "type": { "type": "string", "description": "What the rule matches on, path, module, url, codeowners or tags." }, "pattern": { "type": "string", "description": "Pattern the value is matched against" } }, "required": [ "pattern", "type" ], "description": "What the rule matches" }, "owners": { "type": "array", "items": { "type": "object", "description": "Owner as it appears in the API response (after identifier->name rename).", "properties": { "type": { "type": "string", "description": "Whether the owner is a user or a team" }, "name": { "type": "string", "description": "Email of the user, or slug of the team" }, "id": { "type": "string", "description": "ID of the user or team. Only set when the owner was resolved" } }, "required": [ "name", "type" ] }, "description": "Owners the rule assigns" } }, "required": [ "matcher", "owners" ] }, "description": "Ownership rules, in order" } }, "required": [ "$version", "rules" ], "nullable": true, "description": "Parsed ownership rules. Null when there are no rules" }, "raw": { "type": "string", "nullable": true, "description": "Ownership rules as text" }, "fallthrough": { "type": "boolean", "description": "Whether issues that match no rule are assigned to all project members" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the ownership rules were created (ISO 8601)" }, "lastUpdated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the ownership rules were last updated (ISO 8601)" }, "isActive": { "type": "boolean", "description": "Whether the ownership rules are active" }, "autoAssignment": { "type": "string", "description": "Auto-assignment setting: Auto Assign to Suspect Commits, Auto Assign to Issue Owner or Turn off Auto-Assignment" }, "codeownersAutoSync": { "type": "boolean", "nullable": true, "description": "Whether CODEOWNERS files sync automatically when they change" } }, "required": [ "autoAssignment", "codeownersAutoSync", "dateCreated", "fallthrough", "isActive", "lastUpdated", "raw" ] }, "examples": { "UpdateOwnershipConfigurationForAProject": { "value": { "raw": "path:src/views/checkout jane.smith@org.com \nurl:https://example.com/checkout jane.smith@org.com\ntags.transaction:/checkout/:page jane.smith@org.com", "fallthrough": true, "dateCreated": "2023-10-03T20:25:18.539823Z", "lastUpdated": "2023-10-03T22:49:12.294741Z", "isActive": true, "autoAssignment": "Auto Assign to Issue Owner", "codeownersAutoSync": true, "schema": { "$version": 1, "rules": [ { "matcher": { "type": "path", "pattern": "src/views/checkout" }, "owners": [ { "type": "user", "id": "2621754", "name": "jane.smith@org.com" } ] }, { "matcher": { "type": "url", "pattern": "https://example.com/checkout" }, "owners": [ { "type": "user", "id": "2621754", "name": "jane.smith@org.com" } ] }, { "matcher": { "type": "tags.transaction", "pattern": "/checkout/:page" }, "owners": [ { "type": "user", "id": "2621754", "name": "jane.smith@org.com" } ] } ] } }, "summary": "Update ownership configuration for a project" } } } }, "description": "" }, "400": { "description": "Bad Request" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/preprod/size-analysis/status-check-rules/": { "get": { "operationId": "getProjectPreprodSizeAnalysisStatusCheckRules", "description": "Retrieve the current Size Analysis status check rules configured for a project.\n\nUse this endpoint after receiving a `size_analysis.completed` webhook when you\nwant external CI to evaluate the same Size Analysis status check thresholds that\nSentry uses. The endpoint returns the current project configuration, not a\nhistorical snapshot from when the webhook was emitted.\n\nThe response includes whether status check enforcement is enabled and the\nnormalized rule list Sentry uses when evaluating Size Analysis thresholds.\n\nThis endpoint requires a bearer token with `project:read` access. Project\ndistribution tokens are not supported.\n\nResponse notes:\n\n- `enabled: false` means status-check enforcement is disabled for the project.\n- `rules: []` means there are no configured thresholds to evaluate.\n- `value` is returned as a string. For `absolute` and `absolute_diff`\n measurements it is a byte value; for `relative_diff` it is a percentage.\n- `filterQuery` is the original configured filter string.\n- `filters` is the machine-readable version of `filterQuery`.\n- `filters: []` means the rule has no filters and applies to all builds.\n- `filters: null` means the saved filter query could not be parsed; Sentry's\n status check trigger treats that rule as non-matching.\n\nRule evaluation semantics:\n\n- Threshold comparisons are strict: a rule triggers only when the computed value\n is greater than the configured threshold, not greater than or equal to it.\n- `absolute_diff` and `relative_diff` require a matching base metric/build.\n- `relative_diff` does not trigger when the base size is zero.\n- `artifactType` identifies the artifact scope the rule evaluates.\n `main_artifact`, `watch_artifact`, `android_dynamic_feature_artifact`,\n and `app_clip_artifact` target their matching artifact metric.\n `all_artifacts` evaluates all available artifact metrics.\n- Rule filters support the keys `app_id`, `git_head_ref`,\n `build_configuration_name`, and `platform_name`.\n- Filter objects are combined with AND. Multiple `conditions` inside one\n filter object are combined with OR.\n- Each condition uses `values`; single-value operators still return a\n one-item array.\n- Values in `filters` are decoded literal values for exact/simple operators,\n not query syntax. For example, `app_id:\\*com` in `filterQuery` becomes\n `values: [\"*com\"]` with `operator: \"equals\"`.\n- The same key can appear in more than one filter object when positive and\n negative conditions both exist; those filter objects are still combined with\n AND.\n- Supported filter operators are `equals`, `notEquals`, `in`, `notIn`,\n `contains`, `notContains`, `startsWith`, `notStartsWith`, `endsWith`,\n `notEndsWith`, `matches`, and `notMatches`.\n- `matches` and `notMatches` values use Sentry wildcard pattern syntax, not\n regular expressions. `*` matches zero or more characters, escaped `\\*`\n matches a literal asterisk, and a pattern without `*` is an exact match.\n- `in` and `notIn` are evaluated as one condition against all values, matching\n Sentry's status check trigger behavior.\n- A rule applies only when the build metadata matches all filters. If a\n referenced metadata key is missing, the filter does not match, even for\n negated operators.", "summary": "Retrieve Size Analysis status check rules for a project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Mobile Builds" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "Whether size status checks are enabled for the project" }, "rules": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the rule" }, "metric": { "enum": [ "install_size", "download_size" ], "type": "string", "description": "Size metric the rule checks: install_size or download_size" }, "measurement": { "enum": [ "absolute", "absolute_diff", "relative_diff" ], "type": "string", "description": "How the rule measures size: absolute (size in bytes), absolute_diff (increase in bytes) or relative_diff (increase in percent)" }, "value": { "type": "string", "description": "Threshold that makes the status check fail, in bytes or percent depending on measurement" }, "filterQuery": { "type": "string", "description": "Search query that selects the builds the rule applies to" }, "filters": { "type": "array", "items": { "type": "object", "properties": { "key": { "enum": [ "app_id", "build_configuration_name", "git_head_ref", "platform_name" ], "type": "string", "description": "Build field the filter checks: app_id, build_configuration_name, git_head_ref or platform_name" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "operator": { "enum": [ "contains", "endsWith", "equals", "in", "matches", "notContains", "notEndsWith", "notEquals", "notIn", "notMatches", "notStartsWith", "startsWith" ], "type": "string", "description": "How the condition compares the build's value, such as equals or startsWith" }, "values": { "type": "array", "items": { "type": "string" }, "description": "Values the condition compares against" } }, "required": [ "operator", "values" ] }, "description": "Conditions on the field" } }, "required": [ "conditions", "key" ] }, "nullable": true, "description": "filterQuery parsed into filters. Null when the query can't be parsed" }, "artifactType": { "enum": [ "main_artifact", "watch_artifact", "android_dynamic_feature_artifact", "app_clip_artifact", "all_artifacts" ], "type": "string", "description": "Components the rule applies to, such as main_artifact or all_artifacts" } }, "required": [ "artifactType", "filterQuery", "filters", "id", "measurement", "metric", "value" ] }, "description": "Rules that make the size status check fail" } }, "required": [ "enabled", "rules" ] }, "examples": { "ConfiguredSizeAnalysisStatusCheckRules": { "value": { "enabled": true, "rules": [ { "id": "rule-1", "metric": "install_size", "measurement": "absolute_diff", "value": "5000000", "filterQuery": "app_id:com.example.app platform_name:apple build_configuration_name:Release", "filters": [ { "key": "app_id", "conditions": [ { "operator": "equals", "values": [ "com.example.app" ] } ] }, { "key": "platform_name", "conditions": [ { "operator": "equals", "values": [ "apple" ] } ] }, { "key": "build_configuration_name", "conditions": [ { "operator": "equals", "values": [ "Release" ] } ] } ], "artifactType": "main_artifact" } ] }, "summary": "Configured Size Analysis Status Check Rules" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/preprod/size-analysis/status-checks/skip/": { "post": { "operationId": "createProjectPreprodSizeAnalysisSkippedStatusCheck", "description": "Create a neutral status check for a commit that intentionally skips an artifact upload.\n\nThe repository must be connected to the project's organization through an active repository\nintegration.\nThe same Sentry auth token configured for build uploads can also be used for this endpoint.", "summary": "Create a skipped Size Analysis status check", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Mobile Builds" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "sha": { "type": "string", "description": "The full 40-character lowercase commit SHA.", "maxLength": 40, "pattern": "^[0-9a-f]{40}$" }, "repository": { "type": "string", "description": "The repository name in `owner/name` format.", "maxLength": 255 }, "provider": { "enum": [ "github", "github_enterprise" ], "type": "string", "description": "The repository integration provider.\n\n* `github`\n* `github_enterprise`" } }, "required": [ "provider", "repository", "sha" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "429": { "description": "Too Many Requests" }, "502": { "description": "Bad Gateway" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/preprod/snapshots/status-check-rules/": { "get": { "operationId": "getProjectPreprodSnapshotStatusCheckRules", "description": "Retrieve the current Snapshot status check rules configured for a project.\n\nUse this endpoint when external CI needs to evaluate the same Snapshot\nchange-type rules that Sentry uses. The endpoint returns the current\nproject configuration, not a historical snapshot from when a build was\nprocessed.\n\nThe response includes whether status check enforcement is enabled and the\nSnapshot change types that fail the status check.\n\nThis endpoint requires a bearer token with `project:read` access. Project\ndistribution tokens are not supported.\n\nResponse notes:\n\n- `enabled: false` means status-check enforcement is disabled for the project.\n- `rules` contains one boolean per Snapshot change type.\n- `failOnAdded`, `failOnRemoved`, `failOnChanged`, and `failOnRenamed`\n indicate which unapproved change types fail the status check.", "summary": "Retrieve Snapshot status check rules for a project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Snapshots" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "Whether snapshot status checks are enabled for the project" }, "rules": { "type": "object", "properties": { "failOnAdded": { "type": "boolean", "description": "Whether the snapshot status check fails when snapshots are added" }, "failOnRemoved": { "type": "boolean", "description": "Whether the snapshot status check fails when snapshots are removed" }, "failOnChanged": { "type": "boolean", "description": "Whether the snapshot status check fails when snapshots change" }, "failOnRenamed": { "type": "boolean", "description": "Whether the snapshot status check fails when snapshots are renamed" } }, "required": [ "failOnAdded", "failOnChanged", "failOnRemoved", "failOnRenamed" ], "description": "Which snapshot changes make the status check fail" } }, "required": [ "enabled", "rules" ] }, "examples": { "ConfiguredSnapshotStatusCheckRules": { "value": { "enabled": true, "rules": { "failOnAdded": false, "failOnRemoved": true, "failOnChanged": true, "failOnRenamed": false } }, "summary": "Configured Snapshot Status Check Rules" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/preprod/snapshots/status-checks/skip/": { "post": { "operationId": "createProjectPreprodSnapshotSkippedStatusCheck", "description": "Create a neutral status check for a commit that intentionally skips an artifact upload.\n\nThe repository must be connected to the project's organization through an active repository\nintegration.\nThe same Sentry auth token configured for build uploads can also be used for this endpoint.", "summary": "Create a skipped Snapshot status check", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Snapshots" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "sha": { "type": "string", "description": "The full 40-character lowercase commit SHA.", "maxLength": 40, "pattern": "^[0-9a-f]{40}$" }, "repository": { "type": "string", "description": "The repository name in `owner/name` format.", "maxLength": 255 }, "provider": { "enum": [ "github", "github_enterprise" ], "type": "string", "description": "The repository integration provider.\n\n* `github`\n* `github_enterprise`" } }, "required": [ "provider", "repository", "sha" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "429": { "description": "Too Many Requests" }, "502": { "description": "Bad Gateway" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/preprodartifacts/build-distribution/latest/": { "get": { "operationId": "getProjectInstallableBuildLatest", "description": "Get the latest installable build for a project.\n\nReturns the latest installable build matching filter criteria.\nWhen buildVersion is provided, also returns the current build and\nwhether an update is available.", "summary": "Get the latest installable build for a project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "appId", "schema": { "type": "string", "minLength": 1 }, "description": "App identifier (exact match).", "required": true }, { "in": "query", "name": "platform", "schema": { "enum": [ "apple", "android" ], "type": "string", "minLength": 1 }, "description": "Platform: \"apple\" or \"android\".\n\n* `apple` - Apple\n* `android` - Android", "required": true }, { "in": "query", "name": "buildVersion", "schema": { "type": "string", "minLength": 1 }, "description": "Current build version. When provided, enables check-for-updates mode." }, { "in": "query", "name": "buildNumber", "schema": { "oneOf": [ { "type": "integer" }, { "type": "string" } ] }, "description": "Current build number. Accepts a plain integer (e.g. 42) or a version string of two or more period-separated integers (e.g. 1.2.3), each up to 6 digits. Groups beyond the third are dropped. Either this or mainBinaryIdentifier must be provided when buildVersion is set." }, { "in": "query", "name": "mainBinaryIdentifier", "schema": { "type": "string", "minLength": 1 }, "description": "UUID of the main binary (e.g. Mach-O UUID for Apple builds). Either this or buildNumber must be provided when buildVersion is set." }, { "in": "query", "name": "buildConfiguration", "schema": { "type": "string", "minLength": 1 }, "description": "Filter by build configuration name (exact match)." }, { "in": "query", "name": "codesigningType", "schema": { "type": "string", "minLength": 1 }, "description": "Filter by code signing type." }, { "in": "query", "name": "installGroups", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Filter by install group name (repeatable for multiple groups)." } ], "tags": [ "Mobile Builds" ], "security": [ { "auth_token": [ "project:admin", "project:distribution", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "latestArtifact": { "type": "object", "properties": { "buildId": { "type": "string", "description": "ID of the build" }, "state": { "enum": [ "UPLOADING", "UPLOADED", "PROCESSED", "FAILED" ], "type": "string", "description": "State of the build" }, "appInfo": { "type": "object", "properties": { "appId": { "type": "string", "nullable": true, "description": "App identifier of the build" }, "name": { "type": "string", "nullable": true, "description": "App name" }, "version": { "type": "string", "nullable": true, "description": "Version of the build" }, "buildNumber": { "type": "integer", "nullable": true, "description": "Build number" }, "artifactType": { "enum": [ "XCARCHIVE", "AAB", "APK", null ], "type": "string", "nullable": true, "description": "Type of the build file" }, "dateAdded": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was uploaded (ISO 8601)" }, "dateBuilt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was built (ISO 8601)" } }, "required": [ "appId", "artifactType", "buildNumber", "dateAdded", "dateBuilt", "name", "version" ], "description": "App details of the build" }, "gitInfo": { "type": "object", "properties": { "headSha": { "type": "string", "nullable": true, "description": "Commit SHA of the build" }, "baseSha": { "type": "string", "nullable": true, "description": "Commit SHA of the base the build is compared against" }, "provider": { "type": "string", "nullable": true, "description": "Version control provider, such as github" }, "headRepoName": { "type": "string", "nullable": true, "description": "Repository name of the head commit" }, "baseRepoName": { "type": "string", "nullable": true, "description": "Repository name of the base commit" }, "headRef": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the head commit" }, "baseRef": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the base commit" }, "prNumber": { "type": "integer", "nullable": true, "description": "Pull request number" } }, "required": [ "baseRef", "baseRepoName", "baseSha", "headRef", "headRepoName", "headSha", "prNumber", "provider" ], "nullable": true, "description": "Version control details of the build. Null when the build has none" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the build, in uppercase" }, "projectId": { "type": "string", "description": "ID of the project the build belongs to" }, "projectSlug": { "type": "string", "description": "Slug of the project the build belongs to" }, "buildConfiguration": { "type": "string", "nullable": true, "description": "Name of the build configuration, such as Release" }, "isInstallable": { "type": "boolean", "description": "Whether the build can be installed" }, "installUrl": { "type": "string", "format": "uri", "nullable": true, "description": "URL to install the build. Null when the build isn't installable" }, "installUrlExpiresAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When installUrl expires (ISO 8601)" }, "downloadCount": { "type": "integer", "description": "Number of times the build was downloaded" }, "releaseNotes": { "type": "string", "nullable": true, "description": "Release notes uploaded with the build" }, "installGroups": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Install groups the build belongs to" }, "isCodeSignatureValid": { "type": "boolean", "nullable": true, "description": "Whether the build's code signature is valid. Only set for Apple builds" }, "profileName": { "type": "string", "nullable": true, "description": "Name of the provisioning profile. Only set for Apple builds" }, "codesigningType": { "type": "string", "nullable": true, "description": "Code signing type, such as development or app-store. Only set for Apple builds" } }, "required": [ "appInfo", "buildConfiguration", "buildId", "codesigningType", "downloadCount", "gitInfo", "installGroups", "installUrl", "installUrlExpiresAt", "isCodeSignatureValid", "isInstallable", "platform", "profileName", "projectId", "projectSlug", "releaseNotes", "state" ], "nullable": true, "description": "Latest installable build that matches the filters. Null when there's none" }, "currentArtifact": { "type": "object", "properties": { "buildId": { "type": "string", "description": "ID of the build" }, "state": { "enum": [ "UPLOADING", "UPLOADED", "PROCESSED", "FAILED" ], "type": "string", "description": "State of the build" }, "appInfo": { "type": "object", "properties": { "appId": { "type": "string", "nullable": true, "description": "App identifier of the build" }, "name": { "type": "string", "nullable": true, "description": "App name" }, "version": { "type": "string", "nullable": true, "description": "Version of the build" }, "buildNumber": { "type": "integer", "nullable": true, "description": "Build number" }, "artifactType": { "enum": [ "XCARCHIVE", "AAB", "APK", null ], "type": "string", "nullable": true, "description": "Type of the build file" }, "dateAdded": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was uploaded (ISO 8601)" }, "dateBuilt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was built (ISO 8601)" } }, "required": [ "appId", "artifactType", "buildNumber", "dateAdded", "dateBuilt", "name", "version" ], "description": "App details of the build" }, "gitInfo": { "type": "object", "properties": { "headSha": { "type": "string", "nullable": true, "description": "Commit SHA of the build" }, "baseSha": { "type": "string", "nullable": true, "description": "Commit SHA of the base the build is compared against" }, "provider": { "type": "string", "nullable": true, "description": "Version control provider, such as github" }, "headRepoName": { "type": "string", "nullable": true, "description": "Repository name of the head commit" }, "baseRepoName": { "type": "string", "nullable": true, "description": "Repository name of the base commit" }, "headRef": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the head commit" }, "baseRef": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the base commit" }, "prNumber": { "type": "integer", "nullable": true, "description": "Pull request number" } }, "required": [ "baseRef", "baseRepoName", "baseSha", "headRef", "headRepoName", "headSha", "prNumber", "provider" ], "nullable": true, "description": "Version control details of the build. Null when the build has none" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the build, in uppercase" }, "projectId": { "type": "string", "description": "ID of the project the build belongs to" }, "projectSlug": { "type": "string", "description": "Slug of the project the build belongs to" }, "buildConfiguration": { "type": "string", "nullable": true, "description": "Name of the build configuration, such as Release" }, "isInstallable": { "type": "boolean", "description": "Whether the build can be installed" }, "installUrl": { "type": "string", "format": "uri", "nullable": true, "description": "URL to install the build. Null when the build isn't installable" }, "installUrlExpiresAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When installUrl expires (ISO 8601)" }, "downloadCount": { "type": "integer", "description": "Number of times the build was downloaded" }, "releaseNotes": { "type": "string", "nullable": true, "description": "Release notes uploaded with the build" }, "installGroups": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Install groups the build belongs to" }, "isCodeSignatureValid": { "type": "boolean", "nullable": true, "description": "Whether the build's code signature is valid. Only set for Apple builds" }, "profileName": { "type": "string", "nullable": true, "description": "Name of the provisioning profile. Only set for Apple builds" }, "codesigningType": { "type": "string", "nullable": true, "description": "Code signing type, such as development or app-store. Only set for Apple builds" } }, "required": [ "appInfo", "buildConfiguration", "buildId", "codesigningType", "downloadCount", "gitInfo", "installGroups", "installUrl", "installUrlExpiresAt", "isCodeSignatureValid", "isInstallable", "platform", "profileName", "projectId", "projectSlug", "releaseNotes", "state" ], "nullable": true, "description": "Build that matches the given buildVersion. Null when buildVersion isn't given or no build matches" } }, "required": [ "currentArtifact", "latestArtifact" ] }, "examples": { "LatestBuildOnly": { "value": { "latestArtifact": { "buildId": "12345", "state": "PROCESSED", "appInfo": { "appId": "com.example.app", "name": "Example App", "version": "1.2.0", "buildNumber": 42, "artifactType": "AAB", "dateAdded": "2025-01-15T10:30:00+00:00", "dateBuilt": "2025-01-15T10:00:00+00:00" }, "gitInfo": { "headSha": "abc123def456", "baseSha": "789xyz000111", "provider": "github", "headRepoName": "org/repo", "baseRepoName": "org/repo", "headRef": "feature-branch", "baseRef": "main", "prNumber": 42 }, "platform": "ANDROID", "projectId": "1", "projectSlug": "my-project", "buildConfiguration": "release", "isInstallable": true, "installUrl": "https://sentry.io/api/0/projects/org/project/files/installablepreprodartifact/abc123/?response_format=apk", "installUrlExpiresAt": "2025-01-15T22:30:00+00:00", "downloadCount": 5, "releaseNotes": "Bug fixes and performance improvements.", "installGroups": [ "beta-testers" ], "isCodeSignatureValid": null, "profileName": null, "codesigningType": null }, "currentArtifact": null }, "summary": "Latest Build Only" }, "UpdateAvailable": { "value": { "latestArtifact": { "buildId": "12346", "state": "PROCESSED", "appInfo": { "appId": "com.example.app", "name": "Example App", "version": "1.3.0", "buildNumber": 50, "artifactType": "AAB", "dateAdded": "2025-01-15T10:30:00+00:00", "dateBuilt": "2025-01-15T10:00:00+00:00" }, "gitInfo": { "headSha": "abc123def456", "baseSha": "789xyz000111", "provider": "github", "headRepoName": "org/repo", "baseRepoName": "org/repo", "headRef": "feature-branch", "baseRef": "main", "prNumber": 42 }, "platform": "ANDROID", "projectId": "1", "projectSlug": "my-project", "buildConfiguration": "release", "isInstallable": true, "installUrl": "https://sentry.io/api/0/projects/org/project/files/installablepreprodartifact/abc123/?response_format=apk", "installUrlExpiresAt": "2025-01-15T22:30:00+00:00", "downloadCount": 5, "releaseNotes": "Bug fixes and performance improvements.", "installGroups": [ "beta-testers" ], "isCodeSignatureValid": null, "profileName": null, "codesigningType": null }, "currentArtifact": { "buildId": "12345", "state": "PROCESSED", "appInfo": { "appId": "com.example.app", "name": "Example App", "version": "1.2.0", "buildNumber": 42, "artifactType": "AAB", "dateAdded": "2025-01-15T10:30:00+00:00", "dateBuilt": "2025-01-15T10:00:00+00:00" }, "gitInfo": { "headSha": "abc123def456", "baseSha": "789xyz000111", "provider": "github", "headRepoName": "org/repo", "baseRepoName": "org/repo", "headRef": "feature-branch", "baseRef": "main", "prNumber": 42 }, "platform": "ANDROID", "projectId": "1", "projectSlug": "my-project", "buildConfiguration": "release", "isInstallable": true, "installUrl": "https://sentry.io/api/0/projects/org/project/files/installablepreprodartifact/abc123/?response_format=apk", "installUrlExpiresAt": "2025-01-15T22:30:00+00:00", "downloadCount": 5, "releaseNotes": "Bug fixes and performance improvements.", "installGroups": [ "beta-testers" ], "isCodeSignatureValid": null, "profileName": null, "codesigningType": null } }, "summary": "Update Available" }, "NoUpdateAvailable": { "value": { "latestArtifact": { "buildId": "12345", "state": "PROCESSED", "appInfo": { "appId": "com.example.app", "name": "Example App", "version": "1.2.0", "buildNumber": 42, "artifactType": "AAB", "dateAdded": "2025-01-15T10:30:00+00:00", "dateBuilt": "2025-01-15T10:00:00+00:00" }, "gitInfo": { "headSha": "abc123def456", "baseSha": "789xyz000111", "provider": "github", "headRepoName": "org/repo", "baseRepoName": "org/repo", "headRef": "feature-branch", "baseRef": "main", "prNumber": 42 }, "platform": "ANDROID", "projectId": "1", "projectSlug": "my-project", "buildConfiguration": "release", "isInstallable": true, "installUrl": "https://sentry.io/api/0/projects/org/project/files/installablepreprodartifact/abc123/?response_format=apk", "installUrlExpiresAt": "2025-01-15T22:30:00+00:00", "downloadCount": 5, "releaseNotes": "Bug fixes and performance improvements.", "installGroups": [ "beta-testers" ], "isCodeSignatureValid": null, "profileName": null, "codesigningType": null }, "currentArtifact": { "buildId": "12345", "state": "PROCESSED", "appInfo": { "appId": "com.example.app", "name": "Example App", "version": "1.2.0", "buildNumber": 42, "artifactType": "AAB", "dateAdded": "2025-01-15T10:30:00+00:00", "dateBuilt": "2025-01-15T10:00:00+00:00" }, "gitInfo": { "headSha": "abc123def456", "baseSha": "789xyz000111", "provider": "github", "headRepoName": "org/repo", "baseRepoName": "org/repo", "headRef": "feature-branch", "baseRef": "main", "prNumber": 42 }, "platform": "ANDROID", "projectId": "1", "projectSlug": "my-project", "buildConfiguration": "release", "isInstallable": true, "installUrl": "https://sentry.io/api/0/projects/org/project/files/installablepreprodartifact/abc123/?response_format=apk", "installUrlExpiresAt": "2025-01-15T22:30:00+00:00", "downloadCount": 5, "releaseNotes": "Bug fixes and performance improvements.", "installGroups": [ "beta-testers" ], "isCodeSignatureValid": null, "profileName": null, "codesigningType": null } }, "summary": "No Update Available" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/preprodartifacts/snapshots/": { "post": { "operationId": "uploadProjectPreprodArtifactSnapshot", "description": "Upload a new snapshot with image metadata.\n\nThe request body is a JSON object containing `app_id` (required),\n`images` (required, a mapping of filenames to image metadata objects),\nand optional VCS fields (`head_sha`, `base_sha`, `provider`,\n`head_repo_name`, `head_ref`, `base_repo_name`, `base_ref`, `pr_number`).\n\nThe body can be compressed with zstd: send it with the header\n`Content-Encoding: zstd`. It can be up to 256 MiB after decompression.\n\nWhen VCS info with a `base_sha` is provided and a matching base snapshot\nexists, a comparison is automatically triggered.\n\nThis endpoint requires a bearer token with `project:write` access.", "summary": "Upload a Snapshot", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Snapshots" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "app_id": { "type": "string", "maxLength": 255, "description": "ID of the app the snapshot belongs to, such as `com.example.app`." }, "images": { "type": "object", "additionalProperties": { "type": "object", "properties": { "content_hash": { "type": "string", "description": "Hash of the uploaded image file, which identifies the image." }, "display_name": { "type": "string", "nullable": true, "description": "Name to show for the image." }, "group": { "type": "string", "nullable": true, "description": "Group to show the image in, such as a device name." }, "width": { "type": "integer", "minimum": 0, "description": "Width in pixels." }, "height": { "type": "integer", "minimum": 0, "description": "Height in pixels." }, "diff_threshold": { "type": "number", "minimum": 0, "maximum": 1, "exclusiveMaximum": true, "nullable": true, "description": "Overrides the snapshot's `diff_threshold` for this image." }, "description": { "type": "string", "nullable": true, "description": "Description of the image." }, "tags": { "oneOf": [ { "type": "object", "additionalProperties": { "type": "string" } }, { "type": "array", "items": { "type": "string" } } ], "nullable": true, "description": "Tags of the image, as an object of names to values or a list of names." }, "canvas_theme": { "type": "string", "enum": [ "light", "dark", null ], "nullable": true, "description": "Theme the image was rendered in. Other values count as not set." } }, "required": [ "content_hash", "width", "height" ], "additionalProperties": true }, "maxProperties": 100000, "description": "Metadata of the snapshot's images, keyed by image file name." }, "diff_threshold": { "type": "number", "minimum": 0, "exclusiveMaximum": true, "description": "Fraction of changed pixels, from 0 up to but not including 1, above which an image counts as changed. Images can override it.", "maximum": 1 }, "selective": { "type": "boolean", "description": "Whether the snapshot holds only some of the app's images. Requires `base_sha`." }, "all_image_file_names": { "type": "array", "items": { "type": "string" }, "maxItems": 100000, "description": "File names of all the app's images, including the ones a selective snapshot leaves out. Requires `selective`, and must include every key of `images`." }, "head_sha": { "type": "string", "pattern": "^(|[0-9a-f]{40})$", "description": "SHA of the commit the build was made from." }, "base_sha": { "type": "string", "pattern": "^(|[0-9a-f]{40})$", "description": "SHA of the commit to compare against, such as the merge base of a pull request. Requires `head_sha`." }, "provider": { "type": "string", "maxLength": 255, "description": "VCS provider of the repository, such as `github`." }, "head_repo_name": { "type": "string", "maxLength": 255, "description": "Name of the repository the build was made from, such as `owner/repo`." }, "base_repo_name": { "type": "string", "maxLength": 255, "description": "Name of the repository of the base commit, such as `owner/repo`." }, "head_ref": { "type": "string", "maxLength": 255, "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "description": "Branch or ref the build was made from, such as `feature/xyz`." }, "base_ref": { "type": "string", "maxLength": 255, "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "description": "Branch or ref of the base commit, such as `main`." }, "pr_number": { "type": "integer", "minimum": 1, "description": "Number of the pull request the build belongs to." } }, "required": [ "app_id", "images" ], "additionalProperties": true } } } }, "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "artifactId": { "type": "string", "description": "ID of the build created for the snapshot" }, "snapshotMetricsId": { "type": "string", "description": "ID of the snapshot" }, "imageCount": { "type": "integer", "description": "Number of images in the snapshot" }, "snapshotUrl": { "type": "string", "format": "uri", "description": "URL of the snapshot in Sentry" } }, "required": [ "artifactId", "imageCount", "snapshotMetricsId", "snapshotUrl" ] }, "examples": { "SnapshotCreated": { "value": { "artifactId": "100", "snapshotMetricsId": "200", "imageCount": 5, "snapshotUrl": "https://sentry.io/organizations/org/preprod/snapshots/100/" }, "summary": "Snapshot Created" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/profiling/profiles/{profile_id}/": { "get": { "operationId": "getProjectProfilingProfile", "description": "Retrieve a single profile by its ID.\n\nThe response includes the profile's metadata, its sampled stack data, and the\nassociated release, when one is found.\n\nRequires profiling to be enabled for the organization.", "summary": "Retrieve a Profile", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "profile_id", "schema": { "type": "string" }, "description": "The ID of the profile. Either a numeric ID or a 32-character hexadecimal string.", "required": true } ], "tags": [ "Profiling" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "additionalProperties": {} }, "examples": { "ReturnASingleProfileByID": { "value": { "event_id": "9b29bbe17e9d4ee3a6d0fe9b2e8a3b1c", "project_id": 1, "version": "2", "platform": "python", "environment": "production", "received": "2026-04-15T18:22:31.000Z", "timestamp": "2026-04-15T18:22:31.000Z", "release": { "id": 123456, "version": "1.0.0", "status": "open", "shortVersion": "1.0.0", "versionInfo": { "package": null, "version": { "raw": "1.0.0" }, "description": "1.0.0", "buildHash": null }, "ref": null, "url": null, "dateReleased": "2026-04-15T18:00:00Z", "dateCreated": "2026-04-15T18:00:00Z", "data": {}, "newGroups": 0, "owner": null, "commitCount": 0, "lastCommit": null, "deployCount": 0, "lastDeploy": null, "authors": [], "projects": [ { "id": 1, "slug": "my-project", "name": "my-project", "platform": "python" } ], "firstEvent": "2026-04-15T18:05:00Z", "lastEvent": "2026-04-15T18:30:00Z", "currentProjectMeta": {} }, "os": { "name": "Linux", "version": "5.15.0", "build_number": "" }, "device": { "architecture": "x86_64" }, "runtime": { "name": "CPython", "version": "3.13.0" }, "profile": { "samples": [ { "stack_id": 0, "thread_id": 1, "elapsed_since_start_ns": 1000000 } ], "stacks": [ [ 0, 1 ] ], "frames": [ { "function": "main", "module": "app.main", "in_app": true, "lineno": 10 }, { "function": "do_work", "module": "app.worker", "in_app": true, "lineno": 42 } ], "thread_metadata": { "1": { "name": "MainThread" } } }, "transaction": { "name": "GET /api/0/projects/{org}/{proj}/files/dsyms/", "trace_id": "0123456789abcdef0123456789abcdef", "id": "9b29bbe17e9d4ee3a6d0fe9b2e8a3b1c", "active_thread_id": 1 } }, "summary": "Return a single profile by ID" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/releases/": { "get": { "operationId": "listProjectReleases", "description": "Retrieve a list of releases for a given project.", "summary": "List a Project's Releases", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Case-insensitive substring match against the release version." }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release started (ISO 8601)" }, "owner": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "Release owner" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its first event (ISO 8601)" }, "lastEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its most recent event (ISO 8601)" }, "currentProjectMeta": { "type": "object", "properties": { "sessionsLowerBound": { "type": "string", "nullable": true, "description": "Start of the release's sessions in the project (ISO 8601)" }, "sessionsUpperBound": { "type": "string", "nullable": true, "description": "End of the release's sessions in the project (ISO 8601)" }, "nextReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the next release in the project" }, "prevReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the previous release in the project" }, "firstReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the first release in the project" }, "lastReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the latest release in the project" } }, "nullable": true, "description": "Session bounds and neighboring release versions in the current project, when a project is requested" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "adoptionStages": { "type": "object", "additionalProperties": { "type": "object", "properties": { "stage": { "enum": [ "adopted", "low_adoption", "replaced" ], "type": "string", "description": "Adoption stage of the release" }, "adopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was adopted (ISO 8601)" }, "unadopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release stopped being adopted (ISO 8601)" } }, "required": [ "adopted", "stage", "unadopted" ] }, "nullable": true, "description": "Adoption stage of the release in each project, keyed by project slug" }, "id": { "type": "integer", "description": "Release ID" }, "version": { "type": "string", "description": "Version of the release" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "shortVersion": { "type": "string", "description": "Shortened release version" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "authors": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] } ] }, "description": "Authors of the release's commits" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "healthData": { "type": "object", "properties": { "durationP50": { "type": "number", "format": "double", "nullable": true, "description": "Median session duration in seconds" }, "durationP90": { "type": "number", "format": "double", "nullable": true, "description": "90th percentile session duration in seconds" }, "crashFreeUsers": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of users who didn't experience a crash" }, "crashFreeSessions": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of sessions that didn't crash" }, "totalUsers": { "type": "integer", "nullable": true, "description": "Total number of users in the release" }, "totalUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the release over the last 24 hours" }, "totalProjectUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the project over the last 24 hours" }, "totalSessions": { "type": "integer", "nullable": true, "description": "Total number of sessions in the release" }, "totalSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the release over the last 24 hours" }, "totalProjectSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the project over the last 24 hours" }, "adoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's users over the last 24 hours that were on the release" }, "sessionsAdoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's sessions over the last 24 hours that were on the release" }, "sessionsCrashed": { "type": "integer", "description": "Number of crashed sessions" }, "sessionsErrored": { "type": "integer", "description": "Number of sessions with errors" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "description": "Session or user counts over time, keyed by stats period" } }, "required": [ "hasHealthData", "sessionsCrashed", "sessionsErrored", "stats" ], "nullable": true, "description": "Release health data for the project. Only included when health data is requested" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released in the project (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When work on the release started (ISO 8601)" }, "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Platforms of the project" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data in the project" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release in the project" } }, "required": [ "hasHealthData", "id", "name", "newGroups", "platform", "platforms", "slug" ] }, "description": "Projects in the release" } }, "required": [ "authors", "commitCount", "data", "deployCount", "id", "newGroups", "projects", "shortVersion", "status", "version", "versionInfo" ] } }, "examples": { "ReturnAListOfReleasesForAProject": { "value": [ { "id": 1, "version": "frontend@1.0.0", "shortVersion": "frontend@1.0.0", "status": "open", "versionInfo": { "package": "frontend", "version": { "raw": "1.0.0", "major": 1, "minor": 0, "patch": 0, "pre": null, "buildCode": null, "components": 3 }, "description": "1.0.0", "buildHash": null }, "ref": null, "url": null, "dateReleased": null, "dateCreated": "2024-01-01T00:00:00Z", "data": {}, "newGroups": 0, "owner": null, "commitCount": 0, "lastCommit": null, "deployCount": 0, "lastDeploy": null, "authors": [], "projects": [ { "id": 1, "slug": "sentry", "name": "sentry", "newGroups": 0, "platform": "javascript", "platforms": [ "javascript" ], "hasHealthData": false } ], "firstEvent": null, "lastEvent": null, "currentProjectMeta": {}, "userAgent": null } ], "summary": "Return a list of releases for a project" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/releases/{version}/commits/": { "get": { "operationId": "listProjectReleaseCommits", "description": "Retrieve a list of commits for a given release.", "summary": "List a Project Release's Commits", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" }, "releases": { "type": "array", "items": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" }, "shortVersion": { "type": "string", "description": "Short version of the release" }, "ref": { "type": "string", "nullable": true, "description": "Commit ref of the release" }, "url": { "type": "string", "nullable": true, "description": "URL of the release" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the release was created (ISO 8601)" } }, "required": [ "dateCreated", "dateReleased", "ref", "shortVersion", "url", "version" ] }, "description": "Releases that contain the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "releases", "suspectCommitType" ] } }, "examples": { "ReturnAListOfCommitsForARelease": { "value": [ { "id": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2", "message": "fix: handle empty release version", "dateCreated": "2024-01-01T00:00:00Z", "pullRequest": null, "suspectCommitType": "", "releases": [ { "version": "frontend@1.0.0", "shortVersion": "1.0.0", "ref": null, "url": null, "dateReleased": null, "dateCreated": "2024-01-01T00:00:00Z" } ] } ], "summary": "Return a list of commits for a release" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/releases/{version}/files/": { "get": { "operationId": "listProjectReleaseFiles", "description": "Retrieve a list of files for a given release.", "summary": "List a Project's Release Files", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true }, { "in": "query", "name": "query", "schema": { "type": "array", "items": { "type": "string" } }, "description": "If set, only files with these partial names will be returned." }, { "in": "query", "name": "checksum", "schema": { "type": "array", "items": { "type": "string" } }, "description": "If set, only files with these exact checksums will be returned." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "binary" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name" }, "name": { "type": "string", "description": "Name of the file, usually its URL" }, "dist": { "type": "string", "nullable": true, "description": "Name of the distribution the file belongs to" }, "headers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "HTTP headers stored with the file, such as Content-Type and Sourcemap" }, "size": { "type": "integer", "nullable": true, "description": "Size of the file in bytes" }, "sha1": { "type": "string", "nullable": true, "description": "SHA-1 checksum of the file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the file was uploaded (ISO 8601)" } }, "required": [ "dateCreated", "dist", "headers", "id", "name", "sha1", "size" ] } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "uploadProjectReleaseFile", "description": "Upload a new file for the given release.\n\nFiles must be uploaded using the `multipart/form-data` content type, against the\nregion-specific domain (e.g. `us.sentry.io` or `de.sentry.io`).", "summary": "Upload a New Project Release File", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true } ], "tags": [ "Releases" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "description": "Documents the multipart/form-data body of the release file upload endpoints.\n\nThe endpoints read the upload directly off ``request.data``; this serializer\nexists to describe the request body in the OpenAPI schema.", "properties": { "file": { "type": "string", "format": "uri", "description": "The multipart-encoded file contents to upload." }, "name": { "type": "string", "description": "The name (full path) the file will be referenced as, e.g. the full web URI of a JavaScript file. Defaults to the uploaded file's name." }, "dist": { "type": "string", "description": "The name of the distribution to associate the file with." }, "header": { "type": "array", "items": { "type": "string" }, "description": "Headers to attach to the file, each formatted as a `\"key:value\"` string (for example, to define a content type). May be supplied multiple times." } }, "required": [ "file" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "binary" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name" }, "name": { "type": "string", "description": "Name of the file, usually its URL" }, "dist": { "type": "string", "nullable": true, "description": "Name of the distribution the file belongs to" }, "headers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "HTTP headers stored with the file, such as Content-Type and Sourcemap" }, "size": { "type": "integer", "nullable": true, "description": "Size of the file in bytes" }, "sha1": { "type": "string", "nullable": true, "description": "SHA-1 checksum of the file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the file was uploaded (ISO 8601)" } }, "required": [ "dateCreated", "dist", "headers", "id", "name", "sha1", "size" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "description": "Conflict" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/releases/{version}/files/{file_id}/": { "get": { "operationId": "getProjectReleaseFile", "description": "Return metadata for an individual file within a release. Does not return the file\ncontents unless `download` is set.", "summary": "Retrieve a Project Release's File", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true }, { "in": "path", "name": "file_id", "schema": { "type": "string" }, "description": "The ID of the release file.", "required": true }, { "in": "query", "name": "download", "schema": { "type": "string" }, "description": "If set, download the file contents instead of returning metadata." } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "binary" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name" }, "name": { "type": "string", "description": "Name of the file, usually its URL" }, "dist": { "type": "string", "nullable": true, "description": "Name of the distribution the file belongs to" }, "headers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "HTTP headers stored with the file, such as Content-Type and Sourcemap" }, "size": { "type": "integer", "nullable": true, "description": "Size of the file in bytes" }, "sha1": { "type": "string", "nullable": true, "description": "SHA-1 checksum of the file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the file was uploaded (ISO 8601)" } }, "required": [ "dateCreated", "dist", "headers", "id", "name", "sha1", "size" ] } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateProjectReleaseFile", "description": "Update metadata of an existing release file. Currently only the name of the file\ncan be changed.", "summary": "Update a Project Release File", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true }, { "in": "path", "name": "file_id", "schema": { "type": "string" }, "description": "The ID of the release file.", "required": true } ], "tags": [ "Releases" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "description": "The new name (full path) of the file.", "maxLength": 200 } }, "required": [ "name" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:ci", "project:admin", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "binary" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name" }, "name": { "type": "string", "description": "Name of the file, usually its URL" }, "dist": { "type": "string", "nullable": true, "description": "Name of the distribution the file belongs to" }, "headers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "HTTP headers stored with the file, such as Content-Type and Sourcemap" }, "size": { "type": "integer", "nullable": true, "description": "Size of the file in bytes" }, "sha1": { "type": "string", "nullable": true, "description": "SHA-1 checksum of the file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the file was uploaded (ISO 8601)" } }, "required": [ "dateCreated", "dist", "headers", "id", "name", "sha1", "size" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true }, "delete": { "operationId": "deleteProjectReleaseFile", "description": "Permanently remove a file from a release. Also removes the physical file from\nstorage, unless it is stored as part of an artifact bundle.", "summary": "Delete a Project Release's File", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "version", "schema": { "type": "string" }, "description": "The version identifier of the release", "required": true }, { "in": "path", "name": "file_id", "schema": { "type": "string" }, "description": "The ID of the release file.", "required": true } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "project:admin", "project:releases" ] } ], "responses": { "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/releases/completion/": { "get": { "operationId": "getProjectReleaseSetupCompletion", "description": "Return the project's release-setup progress for these steps:\n\n- `tag`: The project has an issue with a recorded first release.\n- `repo`: The organization has at least one repository.\n- `commit`: At least one of the project's 1,000 most recent releases (by release ID) has an associated commit.\n- `deploy`: At least one of the project's releases has a deploy.\n\nResults are cached for one hour when a step is complete and one minute otherwise.", "summary": "Retrieve a Project's Release Setup Progress", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Releases" ], "security": [ { "auth_token": [ "org:ci", "project:admin", "project:read", "project:releases", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "step": { "enum": [ "tag", "repo", "commit", "deploy" ], "type": "string", "description": "Setup step: tag, repo, commit or deploy" }, "complete": { "type": "boolean", "description": "Whether the project completed the step" } }, "required": [ "complete", "step" ] } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/{replay_id}/": { "delete": { "operationId": "deleteProjectReplay", "description": "Delete a replay.", "summary": "Delete a Replay Instance", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "replay_id", "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "description": "The ID of the replay you'd like to retrieve. It is a 32-character hexadecimal string.", "required": true } ], "tags": [ "Replays" ], "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "204": { "description": "No Content" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/{replay_id}/clicks/": { "get": { "operationId": "listProjectReplayClicks", "description": "Retrieve a collection of RRWeb DOM node-ids and the timestamp they were clicked.", "summary": "List Clicked Nodes", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "replay_id", "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "description": "The ID of the replay you'd like to retrieve. It is a 32-character hexadecimal string.", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Filters results by using [query syntax](/product/sentry-basics/search/).\n\nExample: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)`\n" } ], "tags": [ "Replays" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "node_id": { "type": "integer", "description": "RRWeb DOM node ID of the clicked element" }, "timestamp": { "type": "string", "format": "date-time", "description": "When the element was clicked" } }, "required": [ "node_id", "timestamp" ] }, "description": "Clicks that match the query, in time order" } }, "required": [ "data" ] }, "examples": { "RetrieveACollectionOfRRWebDOMNode-idsAndTheTimestampTheyWereClicked.": { "value": { "data": [ { "node_id": 1, "timestamp": "2024-02-08T15:52:25+00:00" } ] }, "summary": "Retrieve a collection of RRWeb DOM node-ids and the timestamp they were clicked." } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/{replay_id}/recording-segments/": { "get": { "operationId": "listProjectReplayRecordingSegments", "description": "Return a collection of replay recording segments.", "summary": "List Recording Segments", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "replay_id", "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "description": "The ID of the replay you'd like to retrieve. It is a 32-character hexadecimal string.", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." } ], "tags": [ "Replays" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "array", "items": { "type": "object", "additionalProperties": {} } } }, "examples": { "RetrieveACollectionOfReplaySegments": { "value": [ [ { "type": 5, "timestamp": 1658770772.902, "data": { "tag": "performanceSpan", "payload": { "op": "memory", "description": "", "startTimestamp": 1658770772.902, "endTimestamp": 1658770772.902, "data": { "memory": { "jsHeapSizeLimit": 4294705152, "totalJSHeapSize": 10204109, "usedJSHeapSize": 9131621 } } } } } ], [ { "type": 5, "timestamp": 1665063926.125, "data": { "tag": "performanceSpan", "payload": { "op": "navigation.navigate", "description": "https://sentry.io", "startTimestamp": 1665063926.125, "endTimestamp": 1665063926.833, "data": { "size": 9538, "duration": 710 } } } } ] ], "summary": "Retrieve a collection of replay segments" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "429": { "description": "Too Many Requests" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/{replay_id}/recording-segments/{segment_id}/": { "get": { "operationId": "getProjectReplayRecordingSegment", "description": "Return a replay recording segment.", "summary": "Retrieve a Recording Segment", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "replay_id", "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "description": "The ID of the replay you'd like to retrieve. It is a 32-character hexadecimal string.", "required": true }, { "in": "path", "name": "segment_id", "schema": { "type": "integer" }, "description": "The ID of the segment you'd like to retrieve.", "required": true } ], "tags": [ "Replays" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "object", "properties": { "replayId": { "type": "string", "description": "ID of the replay the segment belongs to" }, "segmentId": { "type": "integer", "description": "ID of the segment within the replay" }, "projectId": { "type": "string", "description": "ID of the project the replay belongs to" }, "dateAdded": { "type": "string", "nullable": true, "description": "When the segment was stored (ISO 8601), or null if unknown" } }, "required": [ "dateAdded", "projectId", "replayId", "segmentId" ], "description": "Metadata of the recording segment" } }, "required": [ "data" ] }, "examples": { "RetrieveAReplaySegment": { "value": { "data": { "replayId": "7e07485f6c25420c87f5a0ec3a8db3a3", "segmentId": 0, "projectId": "4505321021243392", "dateAdded": "2024-01-15T22:23:15+00:00" } }, "summary": "Retrieve a replay segment" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/{replay_id}/viewed-by/": { "get": { "operationId": "listProjectReplayViewedBy", "description": "Return a list of users who have viewed a replay.", "summary": "List Users Who Have Viewed a Replay", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "replay_id", "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "description": "The ID of the replay you'd like to retrieve. It is a 32-character hexadecimal string.", "required": true } ], "tags": [ "Replays" ], "security": [ { "auth_token": [ "event:admin", "event:read", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "object", "properties": { "viewed_by": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name of the user" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created (ISO 8601)" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in (ISO 8601), or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication on" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active (ISO 8601), or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" }, "type": { "enum": [ "user" ], "type": "string", "description": "Kind of viewer. Always user" } }, "required": [ "avatar", "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "lastActive", "lastLogin", "name", "type", "username" ] }, "description": "Users who have viewed the replay" } }, "required": [ "viewed_by" ], "description": "Viewers of the replay" } }, "required": [ "data" ] }, "examples": { "GetListOfUsersWhoHaveViewedAReplay": { "value": { "data": { "viewed_by": [ { "id": "884411", "name": "some.body@sentry.io", "username": "d93522a35cb64c13991104bd73d44519", "email": "some.body@sentry.io", "avatarUrl": "https://gravatar.com/avatar/d93522a35cb64c13991104bd73d44519d93522a35cb64c13991104bd73d44519?s=32&d=mm", "isActive": true, "hasPasswordAuth": false, "isManaged": false, "dateJoined": "2022-07-25T23:36:29.593212Z", "lastLogin": "2024-03-14T18:11:28.740309Z", "has2fa": true, "lastActive": "2024-03-15T22:22:06.925934Z", "isSuperuser": true, "isStaff": false, "experiments": {}, "emails": [ { "id": "2231333", "email": "some.body@sentry.io", "is_verified": true } ], "avatar": { "avatarType": "upload", "avatarUuid": "499dcd0764da42a589654a2224086e67", "avatarUrl": "https://sentry.io/avatar/499dcd0764da42a589654a2224086e67/" }, "type": "user" } ] } }, "summary": "Get list of users who have viewed a replay" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/jobs/delete/": { "get": { "operationId": "listProjectReplayDeletionJobs", "description": "Retrieve a collection of replay delete jobs.", "summary": "List Replay Batch-Deletion Jobs", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Replays" ], "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the deletion job" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the job was created" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the job was last updated" }, "rangeStart": { "type": "string", "format": "date-time", "description": "Earliest UTC timestamp in the deletion range" }, "rangeEnd": { "type": "string", "format": "date-time", "description": "Latest UTC timestamp in the deletion range" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments of the replays to delete. Empty means all environments" }, "status": { "type": "string", "description": "Status of the job: `pending`, `in-progress`, `completed` or `failed`" }, "query": { "type": "string", "description": "Search query that matches the replays to delete" }, "countDeleted": { "type": "integer", "description": "Number of replays the job has deleted" } }, "required": [ "countDeleted", "dateCreated", "dateUpdated", "environments", "id", "query", "rangeEnd", "rangeStart", "status" ] }, "description": "Deletion jobs of the project" } }, "required": [ "data" ] }, "examples": { "ListReplayBatchDeletionJobs": { "value": { "data": [ { "id": 1, "dateCreated": "2024-01-01T00:00:00Z", "dateUpdated": "2024-01-01T00:05:00Z", "rangeStart": "2023-12-01T00:00:00Z", "rangeEnd": "2024-01-01T00:00:00Z", "environments": [ "production" ], "status": "pending", "query": "user.email:test@example.com", "countDeleted": 0 } ] }, "summary": "List replay batch deletion jobs" } } } }, "description": "" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createProjectReplayDeletionJob", "description": "Create a new replay deletion job.", "summary": "Create Replay Batch Deletion Job", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Replays" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "object", "properties": { "rangeStart": { "type": "string", "format": "date-time" }, "rangeEnd": { "type": "string", "format": "date-time" }, "environments": { "type": "array", "items": { "type": "string" } }, "query": { "type": "string", "nullable": true } }, "required": [ "environments", "query", "rangeEnd", "rangeStart" ] } }, "required": [ "data" ] } } }, "required": true }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the deletion job" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the job was created" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the job was last updated" }, "rangeStart": { "type": "string", "format": "date-time", "description": "Earliest UTC timestamp in the deletion range" }, "rangeEnd": { "type": "string", "format": "date-time", "description": "Latest UTC timestamp in the deletion range" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments of the replays to delete. Empty means all environments" }, "status": { "type": "string", "description": "Status of the job: `pending`, `in-progress`, `completed` or `failed`" }, "query": { "type": "string", "description": "Search query that matches the replays to delete" }, "countDeleted": { "type": "integer", "description": "Number of replays the job has deleted" } }, "required": [ "countDeleted", "dateCreated", "dateUpdated", "environments", "id", "query", "rangeEnd", "rangeStart", "status" ], "description": "The deletion job" } }, "required": [ "data" ] }, "examples": { "CreateAnAsyncJobToBatchDeleteReplayInstances": { "value": { "data": { "id": 1, "dateCreated": "2024-01-01T00:00:00Z", "dateUpdated": "2024-01-01T00:05:00Z", "rangeStart": "2023-12-01T00:00:00Z", "rangeEnd": "2024-01-01T00:00:00Z", "environments": [ "production" ], "status": "pending", "query": "user.email:test@example.com", "countDeleted": 0 } }, "summary": "Create an async job to batch delete replay instances" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/jobs/delete/{job_id}/": { "get": { "operationId": "getProjectReplayDeletionJob", "description": "Fetch a replay delete job instance.", "summary": "Retrieve a Replay Batch-Deletion Job", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "job_id", "schema": { "type": "integer" }, "description": "The ID of the replay deletion job you'd like to retrieve.", "required": true } ], "tags": [ "Replays" ], "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the deletion job" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the job was created" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the job was last updated" }, "rangeStart": { "type": "string", "format": "date-time", "description": "Earliest UTC timestamp in the deletion range" }, "rangeEnd": { "type": "string", "format": "date-time", "description": "Latest UTC timestamp in the deletion range" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments of the replays to delete. Empty means all environments" }, "status": { "type": "string", "description": "Status of the job: `pending`, `in-progress`, `completed` or `failed`" }, "query": { "type": "string", "description": "Search query that matches the replays to delete" }, "countDeleted": { "type": "integer", "description": "Number of replays the job has deleted" } }, "required": [ "countDeleted", "dateCreated", "dateUpdated", "environments", "id", "query", "rangeEnd", "rangeStart", "status" ], "description": "The deletion job" } }, "required": [ "data" ] }, "examples": { "GetAReplayBatchDeletionJob": { "value": { "data": { "id": 1, "dateCreated": "2024-01-01T00:00:00Z", "dateUpdated": "2024-01-01T00:05:00Z", "rangeStart": "2023-12-01T00:00:00Z", "rangeEnd": "2024-01-01T00:00:00Z", "environments": [ "production" ], "status": "pending", "query": "user.email:test@example.com", "countDeleted": 0 } }, "summary": "Get a replay batch deletion job" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/repo/": { "get": { "operationId": "listProjectRepositories", "description": "List all repositories linked to a project.\n\nPass `?includeMappingCount=1` to include the number of code path mappings\nper repository. Omitting it keeps the query cheaper for callers that\nonly need the list of connections.", "summary": "List Repositories Linked to a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "includeMappingCount", "schema": { "type": "string" }, "description": "When set to `1`, each row includes a `mappingCount` field with the number of code path mappings for that repository. Omitted by default to keep the response lightweight." } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the link between the project and the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "projectId": { "type": "string", "description": "ID of the project" }, "repositoryId": { "type": "string", "description": "ID of the repository" }, "repoName": { "type": "string", "description": "Name of the repository" }, "source": { "type": "string", "description": "How the link was made: manual, scm_onboarding, auto_event, auto_name_match or seer_preference" }, "providerKey": { "type": "string", "nullable": true, "description": "Key of the repository's provider, such as github" }, "mappingCount": { "type": "integer", "description": "Number of code mappings between the project and the repository" } }, "required": [ "externalId", "id", "integrationId", "projectId", "providerKey", "repoName", "repositoryId", "source" ] } } } }, "description": "" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "linkProjectRepository", "description": "Link a repository to a project. The repository must already exist\nin the organization (connected via a VCS integration). Idempotent:\nreturns 200 if the link already exists, 201 if created.", "summary": "Link a Repository to a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "repositoryId": { "type": "integer", "description": "The ID of the repository to link." } }, "required": [ "repositoryId" ] } } }, "required": true }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the link between the project and the repository." }, "projectId": { "type": "string", "description": "ID of the project." }, "repositoryId": { "type": "string", "description": "ID of the repository." }, "source": { "type": "string", "description": "How the link was made: manual, scm_onboarding, auto_event, auto_name_match or seer_preference." }, "created": { "type": "boolean", "description": "Whether the request created the link. False when it already existed." } }, "required": [ "created", "id", "projectId", "repositoryId", "source" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/seer/repos/": { "get": { "operationId": "listProjectSeerRepositories", "description": "**Experimental:** This API is under active development and may change.\n\nList repositories connected to Seer for the project.", "summary": "List Repositories Configured for Seer", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Filter repositories using Sentry search syntax. `name` supports substring matching and is also the free-text key. `provider` supports `=`, `!=`, `IN`, and `NOT IN` operators, and matches with or without the `integrations:` prefix." }, { "in": "query", "name": "sortBy", "schema": { "type": "string", "enum": [ "-name", "-provider", "name", "provider" ] }, "description": "Sort by repository name or provider. Defaults to `name`." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "The maximum number of results per page." } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the link between the project and the repository" }, "repositoryId": { "type": "string", "description": "ID of the repository" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "provider": { "type": "string", "description": "Provider of the repository, such as integrations:github" }, "owner": { "type": "string", "description": "Owner of the repository" }, "name": { "type": "string", "description": "Name of the repository, without the owner" }, "externalId": { "type": "string", "description": "ID of the repository in the provider" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration" }, "branchName": { "type": "string", "nullable": true, "description": "Branch Seer uses instead of the default branch. Null when not set" }, "branchOverrides": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the branch override" }, "tagName": { "type": "string", "description": "Event tag key to match" }, "tagValue": { "type": "string", "description": "Event tag value to match" }, "branchName": { "type": "string", "description": "Branch Seer uses for issues whose events have this tag value" } }, "required": [ "branchName", "id", "tagName", "tagValue" ] }, "description": "Deprecated. Branches Seer uses for issues with matching event tags" }, "instructions": { "type": "string", "nullable": true, "description": "Instructions Seer follows when working with the repository" } }, "required": [ "branchName", "branchOverrides", "externalId", "id", "instructions", "integrationId", "name", "organizationId", "owner", "provider", "repositoryId" ] } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true }, "post": { "operationId": "addProjectSeerRepositories", "description": "**Experimental:** This API is under active development and may change.\n\nAdd the specified repositories to Seer without removing other repositories. At least one repository is required. Re-submitting a repository replaces its branchName, instructions, and branchOverrides; omitted values are cleared.", "summary": "Add Repositories to Seer for a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "repos": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "repository_id": { "type": "integer", "description": "The ID of an active, supported repository in the organization." }, "branch_name": { "type": "string", "nullable": true, "description": "The branch Seer works from in this repository. Leave empty to use the repository's default branch." }, "instructions": { "type": "string", "nullable": true, "description": "Extra context Seer should use when working with this repository." }, "branch_overrides": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "tag_name": { "type": "string", "description": "Event tag key to match." }, "tag_value": { "type": "string", "description": "Event tag value to match." }, "branch_name": { "type": "string", "description": "The repository branch Seer uses for issues whose events have this tag value." } }, "required": [ "branch_name", "tag_name", "tag_value" ] }, "description": "Deprecated. Branch overrides selected by matching tags.", "deprecated": true } }, "required": [ "repository_id" ] }, "description": "Repositories to link and configure for Seer in this project." } }, "required": [ "repos" ] } } }, "required": true }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true }, "put": { "operationId": "replaceProjectSeerRepositories", "description": "**Experimental:** This API is under active development and may change.\n\nReplace the project's active Seer repository configurations with the submitted repositories. An empty `repos` list removes all active Seer repository configurations. Inactive repository configurations are retained and become available again if the repositories are reactivated.", "summary": "Replace Repositories Configured for Seer", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "repos": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "repository_id": { "type": "integer", "description": "The ID of an active, supported repository in the organization." }, "branch_name": { "type": "string", "nullable": true, "description": "The branch Seer works from in this repository. Leave empty to use the repository's default branch." }, "instructions": { "type": "string", "nullable": true, "description": "Extra context Seer should use when working with this repository." }, "branch_overrides": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "tag_name": { "type": "string", "description": "Event tag key to match." }, "tag_value": { "type": "string", "description": "Event tag value to match." }, "branch_name": { "type": "string", "description": "The repository branch Seer uses for issues whose events have this tag value." } }, "required": [ "branch_name", "tag_name", "tag_value" ] }, "description": "Deprecated. Branch overrides selected by matching tags.", "deprecated": true } }, "required": [ "repository_id" ] }, "description": "Repositories to link and configure for Seer in this project." } }, "required": [ "repos" ] } } }, "required": true }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/stacktrace-link/": { "get": { "operationId": "getProjectStacktraceLink", "description": "Resolve a stack trace filename to its linked source file using the project's code mappings and connected source code integrations.", "summary": "Get a Source Code Link for a Stack Trace Frame", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "file", "schema": { "type": "string" }, "description": "The file path from the stack trace frame.", "required": true }, { "in": "query", "name": "platform", "schema": { "type": "string" }, "description": "The platform associated with the frame." }, { "in": "query", "name": "absPath", "schema": { "type": "string" }, "description": "The absolute path of the stack frame, if known." }, { "in": "query", "name": "commitId", "schema": { "type": "string" }, "description": "The commit ID associated with the event." }, { "in": "query", "name": "sdkName", "schema": { "type": "string" }, "description": "The SDK name associated with the event." }, { "in": "query", "name": "module", "schema": { "type": "string" }, "description": "The module name, if known." }, { "in": "query", "name": "package", "schema": { "type": "string" }, "description": "The package name, if known." }, { "in": "query", "name": "lineNo", "schema": { "type": "string" }, "description": "The source line number, if known." }, { "in": "query", "name": "groupId", "schema": { "type": "string" }, "description": "The issue ID, if known." } ], "tags": [ "Integrations" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "sourcePath": { "type": "string", "nullable": true, "description": "Path of the file in the repository after the code mapping is applied" }, "attemptedUrl": { "type": "string", "nullable": true, "description": "URL Sentry tried when it couldn't find the file" }, "error": { "type": "string", "nullable": true, "description": "Why no link was found, such as no_code_mappings_for_project, stack_root_mismatch or file_not_found. Null when a link was found" }, "config": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the code mapping" }, "projectId": { "type": "string", "description": "ID of the project" }, "projectSlug": { "type": "string", "description": "Slug of the project" }, "repoId": { "type": "string", "description": "ID of the repository" }, "repoName": { "type": "string", "description": "Name of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "nullable": true, "description": "Provider of the repository's integration" }, "stackRoot": { "type": "string", "description": "Stack trace path prefix that the mapping replaces" }, "sourceRoot": { "type": "string", "description": "Repository path prefix that replaces the stack root" }, "defaultBranch": { "type": "string", "nullable": true, "description": "Branch to link source files on" }, "automaticallyGenerated": { "type": "boolean", "description": "Whether Sentry created the mapping automatically" }, "hasCodeOwner": { "type": "boolean", "description": "Whether the mapping has a CODEOWNERS file linked" } }, "required": [ "automaticallyGenerated", "defaultBranch", "hasCodeOwner", "id", "integrationId", "projectId", "projectSlug", "provider", "repoId", "repoName", "sourceRoot", "stackRoot" ], "nullable": true, "description": "Code mapping used for the link. Null when no code mapping matches" }, "sourceUrl": { "type": "string", "nullable": true, "description": "URL of the file in the repository. Null when no link was found" }, "integrations": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the integration" }, "name": { "type": "string", "description": "Name of the integration, usually the connected account or workspace" }, "icon": { "type": "string", "nullable": true, "description": "URL of the connected account's icon" }, "domainName": { "type": "string", "nullable": true, "description": "Domain of the connected account, such as github.com/example-org" }, "accountType": { "type": "string", "nullable": true, "description": "Type of the connected account, such as Organization or User" }, "scopes": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Permission scopes granted to the integration" }, "outOfDate": { "type": "boolean", "nullable": true, "description": "Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model" }, "missingFeatures": { "type": "array", "items": { "type": "object", "description": "A feature the installation can no longer support, named by the permission\ntier it falls short of, so the update-permissions modal can list them.", "properties": { "key": { "type": "string", "description": "Key of the missing feature" }, "description": { "type": "string", "description": "Description of the missing feature" } }, "required": [ "description", "key" ] }, "nullable": true, "description": "Features the installation can't support because of missing permissions. Null for providers without a permissions model" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "description": "Integration provider details" } }, "required": [ "accountType", "domainName", "icon", "id", "missingFeatures", "name", "outOfDate", "provider", "scopes", "status" ] }, "description": "Source code integrations of the organization" } }, "required": [ "config", "error", "integrations", "sourceUrl" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/stats/": { "get": { "operationId": "listProjectStats", "description": "Return a set of points representing a normalized timestamp and the number of\nevents seen in the period.\n\nQuery ranges are limited to Sentry's configured time-series resolutions.\nThis endpoint may change in the future without notice.", "summary": "Retrieve Event Counts for a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "stat", "schema": { "type": "string", "enum": [ "blacklisted", "generated", "received", "rejected" ] }, "description": "The name of the stat to query. Defaults to `received`." }, { "in": "query", "name": "since", "schema": { "type": "number", "format": "double" }, "description": "A UNIX timestamp (in seconds) that sets the start of the query range." }, { "in": "query", "name": "until", "schema": { "type": "number", "format": "double" }, "description": "A UNIX timestamp (in seconds) that sets the end of the query range." }, { "in": "query", "name": "resolution", "schema": { "type": "string", "enum": [ "10s", "1d", "1h" ] }, "description": "An explicit time series resolution." } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, "examples": { "ProjectEventCounts": { "value": [ [ 1541455200, 1184 ], [ 1541458800, 1410 ], [ 1541462400, 1440 ], [ 1541466000, 1682 ], [ 1541469600, 1203 ], [ 1541473200, 497 ], [ 1541476800, 661 ], [ 1541480400, 1481 ], [ 1541484000, 678 ], [ 1541487600, 1857 ], [ 1541491200, 819 ], [ 1541494800, 1013 ], [ 1541498400, 1883 ], [ 1541502000, 1450 ], [ 1541505600, 1102 ], [ 1541509200, 1317 ], [ 1541512800, 1017 ], [ 1541516400, 813 ], [ 1541520000, 1189 ], [ 1541523600, 496 ], [ 1541527200, 1936 ], [ 1541530800, 1405 ], [ 1541534400, 617 ], [ 1541538000, 1533 ] ], "summary": "Project event counts" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/symbol-sources/": { "get": { "operationId": "listProjectSymbolSources", "description": "List custom symbol sources configured for a project.", "summary": "Retrieve a Project's Symbol Sources", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "id", "schema": { "type": "string" }, "description": "The ID of the source to look up. If this is not provided, all sources are returned." } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "http" ], "description": "The source type, always `http`." }, "url": { "type": "string", "description": "The base URL of the symbol server." }, "username": { "type": "string", "description": "The user name for HTTP basic authentication with the symbol server." }, "password": { "type": "object", "description": "A secret that is set. Its value is never returned.", "properties": { "hidden-secret": { "type": "boolean", "enum": [ true ], "description": "Always `true`. Marks a stored secret whose value is hidden." } } }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "layout": { "type": "object", "description": "The directory layout the source uses to store debug files.", "properties": { "type": { "type": "string", "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "description": "The directory layout, for example `native` or `symstore`." }, "casing": { "type": "string", "enum": [ "lowercase", "uppercase", "default" ], "description": "The casing applied to file paths on the source." } }, "required": [ "type" ], "additionalProperties": false }, "filters": { "type": "object", "description": "Restrictions on which debug files are requested from the source.", "properties": { "filetypes": { "type": "array", "items": { "type": "string", "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ] }, "description": "The file types requested from the source. Empty means all file types." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering." }, "requires_checksum": { "type": "boolean", "description": "Whether requests to the source must include a debug checksum." } }, "additionalProperties": false }, "is_public": { "type": "boolean", "description": "Whether the source is a public symbol server." }, "has_index": { "type": "boolean", "description": "Whether the source provides an index of its debug files to Symbolicator." }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "The platforms an organization needs access to before the source is used." } }, "required": [ "type", "id", "url", "layout" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "s3" ], "description": "The source type, always `s3`." }, "bucket": { "type": "string", "description": "The name of the S3 bucket." }, "region": { "type": "string", "description": "The AWS region of the S3 bucket." }, "access_key": { "type": "string", "description": "The AWS access key ID." }, "secret_key": { "type": "object", "description": "A secret that is set. Its value is never returned.", "properties": { "hidden-secret": { "type": "boolean", "enum": [ true ], "description": "Always `true`. Marks a stored secret whose value is hidden." } } }, "prefix": { "type": "string", "description": "The path prefix under which debug files are stored in the bucket or container." }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "layout": { "type": "object", "description": "The directory layout the source uses to store debug files.", "properties": { "type": { "type": "string", "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "description": "The directory layout, for example `native` or `symstore`." }, "casing": { "type": "string", "enum": [ "lowercase", "uppercase", "default" ], "description": "The casing applied to file paths on the source." } }, "required": [ "type" ], "additionalProperties": false }, "filters": { "type": "object", "description": "Restrictions on which debug files are requested from the source.", "properties": { "filetypes": { "type": "array", "items": { "type": "string", "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ] }, "description": "The file types requested from the source. Empty means all file types." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering." }, "requires_checksum": { "type": "boolean", "description": "Whether requests to the source must include a debug checksum." } }, "additionalProperties": false }, "is_public": { "type": "boolean", "description": "Whether the source is a public symbol server." }, "has_index": { "type": "boolean", "description": "Whether the source provides an index of its debug files to Symbolicator." }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "The platforms an organization needs access to before the source is used." } }, "required": [ "type", "id", "bucket", "region", "access_key", "secret_key", "layout" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "gcs" ], "description": "The source type, always `gcs`." }, "bucket": { "type": "string", "description": "The name of the Google Cloud Storage bucket." }, "client_email": { "type": "string", "description": "The email address of the service account used for authentication." }, "private_key": { "type": "object", "description": "A secret that is set. Its value is never returned.", "properties": { "hidden-secret": { "type": "boolean", "enum": [ true ], "description": "Always `true`. Marks a stored secret whose value is hidden." } } }, "prefix": { "type": "string", "description": "The path prefix under which debug files are stored in the bucket or container." }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "layout": { "type": "object", "description": "The directory layout the source uses to store debug files.", "properties": { "type": { "type": "string", "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "description": "The directory layout, for example `native` or `symstore`." }, "casing": { "type": "string", "enum": [ "lowercase", "uppercase", "default" ], "description": "The casing applied to file paths on the source." } }, "required": [ "type" ], "additionalProperties": false }, "filters": { "type": "object", "description": "Restrictions on which debug files are requested from the source.", "properties": { "filetypes": { "type": "array", "items": { "type": "string", "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ] }, "description": "The file types requested from the source. Empty means all file types." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering." }, "requires_checksum": { "type": "boolean", "description": "Whether requests to the source must include a debug checksum." } }, "additionalProperties": false }, "is_public": { "type": "boolean", "description": "Whether the source is a public symbol server." }, "has_index": { "type": "boolean", "description": "Whether the source provides an index of its debug files to Symbolicator." }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "The platforms an organization needs access to before the source is used." } }, "required": [ "type", "id", "bucket", "client_email", "private_key", "layout" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "azure" ], "description": "The source type, always `azure`." }, "account": { "type": "string", "pattern": "^[a-z0-9]{3,24}$", "description": "The name of the Azure storage account." }, "container": { "type": "string", "description": "The name of the Azure blob container." }, "tenant_id": { "type": "string", "description": "The Microsoft Entra tenant ID." }, "client_id": { "type": "string", "description": "The Microsoft Entra application (client) ID." }, "client_secret": { "type": "object", "description": "A secret that is set. Its value is never returned.", "properties": { "hidden-secret": { "type": "boolean", "enum": [ true ], "description": "Always `true`. Marks a stored secret whose value is hidden." } } }, "prefix": { "type": "string", "description": "The path prefix under which debug files are stored in the bucket or container." }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "layout": { "type": "object", "description": "The directory layout the source uses to store debug files.", "properties": { "type": { "type": "string", "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "description": "The directory layout, for example `native` or `symstore`." }, "casing": { "type": "string", "enum": [ "lowercase", "uppercase", "default" ], "description": "The casing applied to file paths on the source." } }, "required": [ "type" ], "additionalProperties": false }, "filters": { "type": "object", "description": "Restrictions on which debug files are requested from the source.", "properties": { "filetypes": { "type": "array", "items": { "type": "string", "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ] }, "description": "The file types requested from the source. Empty means all file types." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering." }, "requires_checksum": { "type": "boolean", "description": "Whether requests to the source must include a debug checksum." } }, "additionalProperties": false }, "is_public": { "type": "boolean", "description": "Whether the source is a public symbol server." }, "has_index": { "type": "boolean", "description": "Whether the source provides an index of its debug files to Symbolicator." }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "The platforms an organization needs access to before the source is used." } }, "required": [ "type", "id", "account", "container", "tenant_id", "client_id", "client_secret", "layout" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "appStoreConnect" ], "description": "The source type, always `appStoreConnect`." }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "appconnectIssuer": { "type": "string", "minLength": 36, "maxLength": 36, "description": "The issuer ID of the App Store Connect API key." }, "appconnectKey": { "type": "string", "minLength": 2, "maxLength": 20, "description": "The key ID of the App Store Connect API key." }, "appconnectPrivateKey": { "type": "string", "description": "The private key of the App Store Connect API key." }, "appName": { "type": "string", "minLength": 1, "maxLength": 512, "description": "The name of the app in App Store Connect." }, "appId": { "type": "string", "minLength": 1, "description": "The ID of the app in App Store Connect." }, "bundleId": { "type": "string", "minLength": 1, "description": "The bundle ID of the app." } }, "required": [ "type", "id", "name", "appconnectIssuer", "appconnectKey", "appconnectPrivateKey", "appName", "appId", "bundleId" ], "additionalProperties": false } ] } }, "examples": { "ListCustomSymbolSourcesConfiguredForAProject.": { "value": [ { "id": "honk", "name": "honk source", "layout": { "type": "native" }, "type": "http", "url": "http://honk.beep", "username": "honkhonk", "password": { "hidden-secret": true } }, { "id": "beep", "name": "beep source", "layout": { "type": "native" }, "type": "gcs", "bucket": "mybucket", "client_email": "honk@beep.com", "private_key": { "hidden-secret": true } } ], "summary": "List custom symbol sources configured for a project." } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "addProjectSymbolSource", "description": "Add a custom symbol source to a project.", "summary": "Add a Symbol Source to a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "type": { "enum": [ "http", "gcs", "s3", "azure" ], "type": "string", "description": "The type of the source.\n\n* `http` - SymbolServer (HTTP)\n* `gcs` - Google Cloud Storage\n* `s3` - Amazon S3\n* `azure` - Azure Blob Storage" }, "name": { "type": "string", "description": "The human-readable name of the source." }, "id": { "type": "string", "description": "The internal ID of the source. Must be distinct from all other source IDs and cannot start with '`sentry:`'. If this is not provided, a new UUID will be generated." }, "layout": { "type": "object", "description": "Layout settings for the source. This is required for HTTP, GCS, and S3 sources.\n\n**`type`** ***(string)*** - The layout of the folder structure. The options are:\n- `native` - Platform-Specific (SymStore / GDB / LLVM)\n- `symstore` - Microsoft SymStore\n- `symstore_index2` - Microsoft SymStore (with index2.txt)\n- `ssqp` - Microsoft SSQP\n- `unified` - Unified Symbol Server Layout\n- `debuginfod` - debuginfod\n- `nnsymstore` - Nintendo Symbol Store\n\n**`casing`** ***(string)*** - The layout of the folder structure. The options are:\n- `default` - Default (mixed case)\n- `uppercase` - Uppercase\n- `lowercase` - Lowercase\n\n```json\n{\n \"layout\": {\n \"type\": \"native\"\n \"casing\": \"default\"\n }\n}\n```", "properties": { "type": { "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "type": "string", "description": "The source's layout type.\n\n* `native`\n* `symstore`\n* `symstore_index2`\n* `ssqp`\n* `unified`\n* `debuginfod`\n* `slashsymbols`\n* `nnsymstore`" }, "casing": { "enum": [ "lowercase", "uppercase", "default" ], "type": "string", "description": "The source's casing rules.\n\n* `lowercase`\n* `uppercase`\n* `default`" } }, "required": [ "casing", "type" ] }, "filters": { "type": "object", "description": "Filter settings for the source. This is optional for all sources.\n\n**`filetypes`** ***(list)*** - A list of file types that can be found on this source. If this is left empty, all file types will be enabled. The options are:\n- `pe` - Windows executable files\n- `pdb` - Windows debug files\n- `portablepdb` - .NET portable debug files\n- `mach_code` - MacOS executable files\n- `mach_debug` - MacOS debug files\n- `elf_code` - ELF executable files\n- `elf_debug` - ELF debug files\n- `wasm_code` - WASM executable files\n- `wasm_debug` - WASM debug files\n- `breakpad` - Breakpad symbol files\n- `sourcebundle` - Source code bundles\n- `uuidmap` - Apple UUID mapping files\n- `bcsymbolmap` - Apple bitcode symbol maps\n- `il2cpp` - Unity IL2CPP mapping files\n- `proguard` - ProGuard mapping files\n\n**`path_patterns`** ***(list)*** - A list of glob patterns to check against the debug and code file paths of debug files. Only files that match one of these patterns will be requested from the source. If this is left empty, no path-based filtering takes place.\n\n**`requires_checksum`** ***(boolean)*** - Whether this source requires a debug checksum to be sent with each request. Defaults to `false`.\n\n```json\n{\n \"filters\": {\n \"filetypes\": [\"pe\", \"pdb\", \"portablepdb\"],\n \"path_patterns\": [\"*ffmpeg*\"]\n }\n}\n```", "properties": { "filetypes": { "type": "array", "items": { "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ], "type": "string", "description": "* `pe`\n* `pdb`\n* `portablepdb`\n* `mach_debug`\n* `mach_code`\n* `elf_debug`\n* `elf_code`\n* `wasm_debug`\n* `wasm_code`\n* `breakpad`\n* `sourcebundle`\n* `uuidmap`\n* `bcsymbolmap`\n* `il2cpp`\n* `proguard`\n* `dartsymbolmap`" }, "description": "The file types enabled for the source." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "The debug and code file paths enabled for the source." }, "requires_checksum": { "type": "boolean", "description": "Whether the source requires debug checksums." } } }, "url": { "type": "string", "description": "The source's URL. Optional for HTTP sources, invalid for all others." }, "username": { "type": "string", "description": "The user name for accessing the source. Optional for HTTP sources, invalid for all others." }, "password": { "type": "string", "description": "The password for accessing the source. Optional for HTTP sources, invalid for all others." }, "bucket": { "type": "string", "description": "The GCS or S3 bucket where the source resides. Required for GCS and S3 source, invalid for HTTP sources." }, "region": { "enum": [ "us-east-2", "us-east-1", "us-west-1", "us-west-2", "ap-east-1", "ap-south-1", "ap-northeast-2", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-west-1", "eu-west-2", "eu-west-3", "eu-north-1", "sa-east-1", "us-gov-east-1", "us-gov-west-1" ], "type": "string", "description": "The source's [S3 region](https://docs.aws.amazon.com/general/latest/gr/s3.html). Required for S3 sources, invalid for all others.\n\n* `us-east-2` - US East (Ohio)\n* `us-east-1` - US East (N. Virginia)\n* `us-west-1` - US West (N. California)\n* `us-west-2` - US West (Oregon)\n* `ap-east-1` - Asia Pacific (Hong Kong)\n* `ap-south-1` - Asia Pacific (Mumbai)\n* `ap-northeast-2` - Asia Pacific (Seoul)\n* `ap-southeast-1` - Asia Pacific (Singapore)\n* `ap-southeast-2` - Asia Pacific (Sydney)\n* `ap-northeast-1` - Asia Pacific (Tokyo)\n* `ca-central-1` - Canada (Central)\n* `cn-north-1` - China (Beijing)\n* `cn-northwest-1` - China (Ningxia)\n* `eu-central-1` - EU (Frankfurt)\n* `eu-west-1` - EU (Ireland)\n* `eu-west-2` - EU (London)\n* `eu-west-3` - EU (Paris)\n* `eu-north-1` - EU (Stockholm)\n* `sa-east-1` - South America (São Paulo)\n* `us-gov-east-1` - AWS GovCloud (US-East)\n* `us-gov-west-1` - AWS GovCloud (US)" }, "access_key": { "type": "string", "description": "The [AWS Access Key](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html#access-keys-and-secret-access-keys).Required for S3 sources, invalid for all others." }, "secret_key": { "type": "string", "description": "The [AWS Secret Access Key](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html#access-keys-and-secret-access-keys).Required for S3 sources, invalid for all others." }, "prefix": { "type": "string", "description": "The GCS, Azure or [S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) prefix. Optional for GCS, Azure and S3 sources, invalid for HTTP." }, "client_email": { "type": "string", "description": "The GCS email address for authentication. Required for GCS sources, invalid for all others." }, "private_key": { "type": "string", "description": "The GCS private key. Required for GCS sources if not using impersonated tokens. Invalid for all others." }, "account": { "type": "string", "description": "The Azure storage account name. Required for Azure sources, invalid for all others." }, "container": { "type": "string", "description": "The Azure blob container name. Required for Azure sources, invalid for all others." }, "tenant_id": { "type": "string", "description": "The Microsoft Entra tenant ID. Required for Azure sources, invalid for all others." }, "client_id": { "type": "string", "description": "The Microsoft Entra application (client) ID. Required for Azure sources, invalid for all others." }, "client_secret": { "type": "string", "description": "The Microsoft Entra client secret. Required for Azure sources, invalid for all others." } }, "required": [ "name", "type" ] } } }, "required": true }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "http" ], "description": "The source type, always `http`." }, "url": { "type": "string", "description": "The base URL of the symbol server." }, "username": { "type": "string", "description": "The user name for HTTP basic authentication with the symbol server." }, "password": { "type": "object", "description": "A secret that is set. Its value is never returned.", "properties": { "hidden-secret": { "type": "boolean", "enum": [ true ], "description": "Always `true`. Marks a stored secret whose value is hidden." } } }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "layout": { "type": "object", "description": "The directory layout the source uses to store debug files.", "properties": { "type": { "type": "string", "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "description": "The directory layout, for example `native` or `symstore`." }, "casing": { "type": "string", "enum": [ "lowercase", "uppercase", "default" ], "description": "The casing applied to file paths on the source." } }, "required": [ "type" ], "additionalProperties": false }, "filters": { "type": "object", "description": "Restrictions on which debug files are requested from the source.", "properties": { "filetypes": { "type": "array", "items": { "type": "string", "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ] }, "description": "The file types requested from the source. Empty means all file types." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering." }, "requires_checksum": { "type": "boolean", "description": "Whether requests to the source must include a debug checksum." } }, "additionalProperties": false }, "is_public": { "type": "boolean", "description": "Whether the source is a public symbol server." }, "has_index": { "type": "boolean", "description": "Whether the source provides an index of its debug files to Symbolicator." }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "The platforms an organization needs access to before the source is used." } }, "required": [ "type", "id", "url", "layout" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "s3" ], "description": "The source type, always `s3`." }, "bucket": { "type": "string", "description": "The name of the S3 bucket." }, "region": { "type": "string", "description": "The AWS region of the S3 bucket." }, "access_key": { "type": "string", "description": "The AWS access key ID." }, "secret_key": { "type": "object", "description": "A secret that is set. Its value is never returned.", "properties": { "hidden-secret": { "type": "boolean", "enum": [ true ], "description": "Always `true`. Marks a stored secret whose value is hidden." } } }, "prefix": { "type": "string", "description": "The path prefix under which debug files are stored in the bucket or container." }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "layout": { "type": "object", "description": "The directory layout the source uses to store debug files.", "properties": { "type": { "type": "string", "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "description": "The directory layout, for example `native` or `symstore`." }, "casing": { "type": "string", "enum": [ "lowercase", "uppercase", "default" ], "description": "The casing applied to file paths on the source." } }, "required": [ "type" ], "additionalProperties": false }, "filters": { "type": "object", "description": "Restrictions on which debug files are requested from the source.", "properties": { "filetypes": { "type": "array", "items": { "type": "string", "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ] }, "description": "The file types requested from the source. Empty means all file types." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering." }, "requires_checksum": { "type": "boolean", "description": "Whether requests to the source must include a debug checksum." } }, "additionalProperties": false }, "is_public": { "type": "boolean", "description": "Whether the source is a public symbol server." }, "has_index": { "type": "boolean", "description": "Whether the source provides an index of its debug files to Symbolicator." }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "The platforms an organization needs access to before the source is used." } }, "required": [ "type", "id", "bucket", "region", "access_key", "secret_key", "layout" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "gcs" ], "description": "The source type, always `gcs`." }, "bucket": { "type": "string", "description": "The name of the Google Cloud Storage bucket." }, "client_email": { "type": "string", "description": "The email address of the service account used for authentication." }, "private_key": { "type": "object", "description": "A secret that is set. Its value is never returned.", "properties": { "hidden-secret": { "type": "boolean", "enum": [ true ], "description": "Always `true`. Marks a stored secret whose value is hidden." } } }, "prefix": { "type": "string", "description": "The path prefix under which debug files are stored in the bucket or container." }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "layout": { "type": "object", "description": "The directory layout the source uses to store debug files.", "properties": { "type": { "type": "string", "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "description": "The directory layout, for example `native` or `symstore`." }, "casing": { "type": "string", "enum": [ "lowercase", "uppercase", "default" ], "description": "The casing applied to file paths on the source." } }, "required": [ "type" ], "additionalProperties": false }, "filters": { "type": "object", "description": "Restrictions on which debug files are requested from the source.", "properties": { "filetypes": { "type": "array", "items": { "type": "string", "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ] }, "description": "The file types requested from the source. Empty means all file types." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering." }, "requires_checksum": { "type": "boolean", "description": "Whether requests to the source must include a debug checksum." } }, "additionalProperties": false }, "is_public": { "type": "boolean", "description": "Whether the source is a public symbol server." }, "has_index": { "type": "boolean", "description": "Whether the source provides an index of its debug files to Symbolicator." }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "The platforms an organization needs access to before the source is used." } }, "required": [ "type", "id", "bucket", "client_email", "private_key", "layout" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "azure" ], "description": "The source type, always `azure`." }, "account": { "type": "string", "pattern": "^[a-z0-9]{3,24}$", "description": "The name of the Azure storage account." }, "container": { "type": "string", "description": "The name of the Azure blob container." }, "tenant_id": { "type": "string", "description": "The Microsoft Entra tenant ID." }, "client_id": { "type": "string", "description": "The Microsoft Entra application (client) ID." }, "client_secret": { "type": "object", "description": "A secret that is set. Its value is never returned.", "properties": { "hidden-secret": { "type": "boolean", "enum": [ true ], "description": "Always `true`. Marks a stored secret whose value is hidden." } } }, "prefix": { "type": "string", "description": "The path prefix under which debug files are stored in the bucket or container." }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "layout": { "type": "object", "description": "The directory layout the source uses to store debug files.", "properties": { "type": { "type": "string", "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "description": "The directory layout, for example `native` or `symstore`." }, "casing": { "type": "string", "enum": [ "lowercase", "uppercase", "default" ], "description": "The casing applied to file paths on the source." } }, "required": [ "type" ], "additionalProperties": false }, "filters": { "type": "object", "description": "Restrictions on which debug files are requested from the source.", "properties": { "filetypes": { "type": "array", "items": { "type": "string", "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ] }, "description": "The file types requested from the source. Empty means all file types." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering." }, "requires_checksum": { "type": "boolean", "description": "Whether requests to the source must include a debug checksum." } }, "additionalProperties": false }, "is_public": { "type": "boolean", "description": "Whether the source is a public symbol server." }, "has_index": { "type": "boolean", "description": "Whether the source provides an index of its debug files to Symbolicator." }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "The platforms an organization needs access to before the source is used." } }, "required": [ "type", "id", "account", "container", "tenant_id", "client_id", "client_secret", "layout" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "appStoreConnect" ], "description": "The source type, always `appStoreConnect`." }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "appconnectIssuer": { "type": "string", "minLength": 36, "maxLength": 36, "description": "The issuer ID of the App Store Connect API key." }, "appconnectKey": { "type": "string", "minLength": 2, "maxLength": 20, "description": "The key ID of the App Store Connect API key." }, "appconnectPrivateKey": { "type": "string", "description": "The private key of the App Store Connect API key." }, "appName": { "type": "string", "minLength": 1, "maxLength": 512, "description": "The name of the app in App Store Connect." }, "appId": { "type": "string", "minLength": 1, "description": "The ID of the app in App Store Connect." }, "bundleId": { "type": "string", "minLength": 1, "description": "The bundle ID of the app." } }, "required": [ "type", "id", "name", "appconnectIssuer", "appconnectKey", "appconnectPrivateKey", "appName", "appId", "bundleId" ], "additionalProperties": false } ] }, "examples": { "AddACustomSymbolSourceToAProject.": { "value": { "id": "honk", "name": "honk source", "layout": { "type": "native" }, "type": "http", "url": "http://honk.beep", "username": "honkhonk", "password": { "hidden-secret": true } }, "summary": "Add a custom symbol source to a project." } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateProjectSymbolSource", "description": "Update a custom symbol source in a project.", "summary": "Update a Project's Symbol Source", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "id", "schema": { "type": "string" }, "description": "The ID of the source to update.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "type": { "enum": [ "http", "gcs", "s3", "azure" ], "type": "string", "description": "The type of the source.\n\n* `http` - SymbolServer (HTTP)\n* `gcs` - Google Cloud Storage\n* `s3` - Amazon S3\n* `azure` - Azure Blob Storage" }, "name": { "type": "string", "description": "The human-readable name of the source." }, "id": { "type": "string", "description": "The internal ID of the source. Must be distinct from all other source IDs and cannot start with '`sentry:`'. If this is not provided, a new UUID will be generated." }, "layout": { "type": "object", "description": "Layout settings for the source. This is required for HTTP, GCS, and S3 sources.\n\n**`type`** ***(string)*** - The layout of the folder structure. The options are:\n- `native` - Platform-Specific (SymStore / GDB / LLVM)\n- `symstore` - Microsoft SymStore\n- `symstore_index2` - Microsoft SymStore (with index2.txt)\n- `ssqp` - Microsoft SSQP\n- `unified` - Unified Symbol Server Layout\n- `debuginfod` - debuginfod\n- `nnsymstore` - Nintendo Symbol Store\n\n**`casing`** ***(string)*** - The layout of the folder structure. The options are:\n- `default` - Default (mixed case)\n- `uppercase` - Uppercase\n- `lowercase` - Lowercase\n\n```json\n{\n \"layout\": {\n \"type\": \"native\"\n \"casing\": \"default\"\n }\n}\n```", "properties": { "type": { "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "type": "string", "description": "The source's layout type.\n\n* `native`\n* `symstore`\n* `symstore_index2`\n* `ssqp`\n* `unified`\n* `debuginfod`\n* `slashsymbols`\n* `nnsymstore`" }, "casing": { "enum": [ "lowercase", "uppercase", "default" ], "type": "string", "description": "The source's casing rules.\n\n* `lowercase`\n* `uppercase`\n* `default`" } }, "required": [ "casing", "type" ] }, "filters": { "type": "object", "description": "Filter settings for the source. This is optional for all sources.\n\n**`filetypes`** ***(list)*** - A list of file types that can be found on this source. If this is left empty, all file types will be enabled. The options are:\n- `pe` - Windows executable files\n- `pdb` - Windows debug files\n- `portablepdb` - .NET portable debug files\n- `mach_code` - MacOS executable files\n- `mach_debug` - MacOS debug files\n- `elf_code` - ELF executable files\n- `elf_debug` - ELF debug files\n- `wasm_code` - WASM executable files\n- `wasm_debug` - WASM debug files\n- `breakpad` - Breakpad symbol files\n- `sourcebundle` - Source code bundles\n- `uuidmap` - Apple UUID mapping files\n- `bcsymbolmap` - Apple bitcode symbol maps\n- `il2cpp` - Unity IL2CPP mapping files\n- `proguard` - ProGuard mapping files\n\n**`path_patterns`** ***(list)*** - A list of glob patterns to check against the debug and code file paths of debug files. Only files that match one of these patterns will be requested from the source. If this is left empty, no path-based filtering takes place.\n\n**`requires_checksum`** ***(boolean)*** - Whether this source requires a debug checksum to be sent with each request. Defaults to `false`.\n\n```json\n{\n \"filters\": {\n \"filetypes\": [\"pe\", \"pdb\", \"portablepdb\"],\n \"path_patterns\": [\"*ffmpeg*\"]\n }\n}\n```", "properties": { "filetypes": { "type": "array", "items": { "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ], "type": "string", "description": "* `pe`\n* `pdb`\n* `portablepdb`\n* `mach_debug`\n* `mach_code`\n* `elf_debug`\n* `elf_code`\n* `wasm_debug`\n* `wasm_code`\n* `breakpad`\n* `sourcebundle`\n* `uuidmap`\n* `bcsymbolmap`\n* `il2cpp`\n* `proguard`\n* `dartsymbolmap`" }, "description": "The file types enabled for the source." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "The debug and code file paths enabled for the source." }, "requires_checksum": { "type": "boolean", "description": "Whether the source requires debug checksums." } } }, "url": { "type": "string", "description": "The source's URL. Optional for HTTP sources, invalid for all others." }, "username": { "type": "string", "description": "The user name for accessing the source. Optional for HTTP sources, invalid for all others." }, "password": { "type": "string", "description": "The password for accessing the source. Optional for HTTP sources, invalid for all others." }, "bucket": { "type": "string", "description": "The GCS or S3 bucket where the source resides. Required for GCS and S3 source, invalid for HTTP sources." }, "region": { "enum": [ "us-east-2", "us-east-1", "us-west-1", "us-west-2", "ap-east-1", "ap-south-1", "ap-northeast-2", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-west-1", "eu-west-2", "eu-west-3", "eu-north-1", "sa-east-1", "us-gov-east-1", "us-gov-west-1" ], "type": "string", "description": "The source's [S3 region](https://docs.aws.amazon.com/general/latest/gr/s3.html). Required for S3 sources, invalid for all others.\n\n* `us-east-2` - US East (Ohio)\n* `us-east-1` - US East (N. Virginia)\n* `us-west-1` - US West (N. California)\n* `us-west-2` - US West (Oregon)\n* `ap-east-1` - Asia Pacific (Hong Kong)\n* `ap-south-1` - Asia Pacific (Mumbai)\n* `ap-northeast-2` - Asia Pacific (Seoul)\n* `ap-southeast-1` - Asia Pacific (Singapore)\n* `ap-southeast-2` - Asia Pacific (Sydney)\n* `ap-northeast-1` - Asia Pacific (Tokyo)\n* `ca-central-1` - Canada (Central)\n* `cn-north-1` - China (Beijing)\n* `cn-northwest-1` - China (Ningxia)\n* `eu-central-1` - EU (Frankfurt)\n* `eu-west-1` - EU (Ireland)\n* `eu-west-2` - EU (London)\n* `eu-west-3` - EU (Paris)\n* `eu-north-1` - EU (Stockholm)\n* `sa-east-1` - South America (São Paulo)\n* `us-gov-east-1` - AWS GovCloud (US-East)\n* `us-gov-west-1` - AWS GovCloud (US)" }, "access_key": { "type": "string", "description": "The [AWS Access Key](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html#access-keys-and-secret-access-keys).Required for S3 sources, invalid for all others." }, "secret_key": { "type": "string", "description": "The [AWS Secret Access Key](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html#access-keys-and-secret-access-keys).Required for S3 sources, invalid for all others." }, "prefix": { "type": "string", "description": "The GCS, Azure or [S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) prefix. Optional for GCS, Azure and S3 sources, invalid for HTTP." }, "client_email": { "type": "string", "description": "The GCS email address for authentication. Required for GCS sources, invalid for all others." }, "private_key": { "type": "string", "description": "The GCS private key. Required for GCS sources if not using impersonated tokens. Invalid for all others." }, "account": { "type": "string", "description": "The Azure storage account name. Required for Azure sources, invalid for all others." }, "container": { "type": "string", "description": "The Azure blob container name. Required for Azure sources, invalid for all others." }, "tenant_id": { "type": "string", "description": "The Microsoft Entra tenant ID. Required for Azure sources, invalid for all others." }, "client_id": { "type": "string", "description": "The Microsoft Entra application (client) ID. Required for Azure sources, invalid for all others." }, "client_secret": { "type": "string", "description": "The Microsoft Entra client secret. Required for Azure sources, invalid for all others." } }, "required": [ "name", "type" ] } } }, "required": true }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "http" ], "description": "The source type, always `http`." }, "url": { "type": "string", "description": "The base URL of the symbol server." }, "username": { "type": "string", "description": "The user name for HTTP basic authentication with the symbol server." }, "password": { "type": "object", "description": "A secret that is set. Its value is never returned.", "properties": { "hidden-secret": { "type": "boolean", "enum": [ true ], "description": "Always `true`. Marks a stored secret whose value is hidden." } } }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "layout": { "type": "object", "description": "The directory layout the source uses to store debug files.", "properties": { "type": { "type": "string", "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "description": "The directory layout, for example `native` or `symstore`." }, "casing": { "type": "string", "enum": [ "lowercase", "uppercase", "default" ], "description": "The casing applied to file paths on the source." } }, "required": [ "type" ], "additionalProperties": false }, "filters": { "type": "object", "description": "Restrictions on which debug files are requested from the source.", "properties": { "filetypes": { "type": "array", "items": { "type": "string", "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ] }, "description": "The file types requested from the source. Empty means all file types." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering." }, "requires_checksum": { "type": "boolean", "description": "Whether requests to the source must include a debug checksum." } }, "additionalProperties": false }, "is_public": { "type": "boolean", "description": "Whether the source is a public symbol server." }, "has_index": { "type": "boolean", "description": "Whether the source provides an index of its debug files to Symbolicator." }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "The platforms an organization needs access to before the source is used." } }, "required": [ "type", "id", "url", "layout" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "s3" ], "description": "The source type, always `s3`." }, "bucket": { "type": "string", "description": "The name of the S3 bucket." }, "region": { "type": "string", "description": "The AWS region of the S3 bucket." }, "access_key": { "type": "string", "description": "The AWS access key ID." }, "secret_key": { "type": "object", "description": "A secret that is set. Its value is never returned.", "properties": { "hidden-secret": { "type": "boolean", "enum": [ true ], "description": "Always `true`. Marks a stored secret whose value is hidden." } } }, "prefix": { "type": "string", "description": "The path prefix under which debug files are stored in the bucket or container." }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "layout": { "type": "object", "description": "The directory layout the source uses to store debug files.", "properties": { "type": { "type": "string", "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "description": "The directory layout, for example `native` or `symstore`." }, "casing": { "type": "string", "enum": [ "lowercase", "uppercase", "default" ], "description": "The casing applied to file paths on the source." } }, "required": [ "type" ], "additionalProperties": false }, "filters": { "type": "object", "description": "Restrictions on which debug files are requested from the source.", "properties": { "filetypes": { "type": "array", "items": { "type": "string", "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ] }, "description": "The file types requested from the source. Empty means all file types." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering." }, "requires_checksum": { "type": "boolean", "description": "Whether requests to the source must include a debug checksum." } }, "additionalProperties": false }, "is_public": { "type": "boolean", "description": "Whether the source is a public symbol server." }, "has_index": { "type": "boolean", "description": "Whether the source provides an index of its debug files to Symbolicator." }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "The platforms an organization needs access to before the source is used." } }, "required": [ "type", "id", "bucket", "region", "access_key", "secret_key", "layout" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "gcs" ], "description": "The source type, always `gcs`." }, "bucket": { "type": "string", "description": "The name of the Google Cloud Storage bucket." }, "client_email": { "type": "string", "description": "The email address of the service account used for authentication." }, "private_key": { "type": "object", "description": "A secret that is set. Its value is never returned.", "properties": { "hidden-secret": { "type": "boolean", "enum": [ true ], "description": "Always `true`. Marks a stored secret whose value is hidden." } } }, "prefix": { "type": "string", "description": "The path prefix under which debug files are stored in the bucket or container." }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "layout": { "type": "object", "description": "The directory layout the source uses to store debug files.", "properties": { "type": { "type": "string", "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "description": "The directory layout, for example `native` or `symstore`." }, "casing": { "type": "string", "enum": [ "lowercase", "uppercase", "default" ], "description": "The casing applied to file paths on the source." } }, "required": [ "type" ], "additionalProperties": false }, "filters": { "type": "object", "description": "Restrictions on which debug files are requested from the source.", "properties": { "filetypes": { "type": "array", "items": { "type": "string", "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ] }, "description": "The file types requested from the source. Empty means all file types." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering." }, "requires_checksum": { "type": "boolean", "description": "Whether requests to the source must include a debug checksum." } }, "additionalProperties": false }, "is_public": { "type": "boolean", "description": "Whether the source is a public symbol server." }, "has_index": { "type": "boolean", "description": "Whether the source provides an index of its debug files to Symbolicator." }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "The platforms an organization needs access to before the source is used." } }, "required": [ "type", "id", "bucket", "client_email", "private_key", "layout" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "azure" ], "description": "The source type, always `azure`." }, "account": { "type": "string", "pattern": "^[a-z0-9]{3,24}$", "description": "The name of the Azure storage account." }, "container": { "type": "string", "description": "The name of the Azure blob container." }, "tenant_id": { "type": "string", "description": "The Microsoft Entra tenant ID." }, "client_id": { "type": "string", "description": "The Microsoft Entra application (client) ID." }, "client_secret": { "type": "object", "description": "A secret that is set. Its value is never returned.", "properties": { "hidden-secret": { "type": "boolean", "enum": [ true ], "description": "Always `true`. Marks a stored secret whose value is hidden." } } }, "prefix": { "type": "string", "description": "The path prefix under which debug files are stored in the bucket or container." }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "layout": { "type": "object", "description": "The directory layout the source uses to store debug files.", "properties": { "type": { "type": "string", "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "description": "The directory layout, for example `native` or `symstore`." }, "casing": { "type": "string", "enum": [ "lowercase", "uppercase", "default" ], "description": "The casing applied to file paths on the source." } }, "required": [ "type" ], "additionalProperties": false }, "filters": { "type": "object", "description": "Restrictions on which debug files are requested from the source.", "properties": { "filetypes": { "type": "array", "items": { "type": "string", "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ] }, "description": "The file types requested from the source. Empty means all file types." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering." }, "requires_checksum": { "type": "boolean", "description": "Whether requests to the source must include a debug checksum." } }, "additionalProperties": false }, "is_public": { "type": "boolean", "description": "Whether the source is a public symbol server." }, "has_index": { "type": "boolean", "description": "Whether the source provides an index of its debug files to Symbolicator." }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "The platforms an organization needs access to before the source is used." } }, "required": [ "type", "id", "account", "container", "tenant_id", "client_id", "client_secret", "layout" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "appStoreConnect" ], "description": "The source type, always `appStoreConnect`." }, "id": { "type": "string", "minLength": 1, "description": "The ID of the source." }, "name": { "type": "string", "description": "The human-readable name of the source." }, "appconnectIssuer": { "type": "string", "minLength": 36, "maxLength": 36, "description": "The issuer ID of the App Store Connect API key." }, "appconnectKey": { "type": "string", "minLength": 2, "maxLength": 20, "description": "The key ID of the App Store Connect API key." }, "appconnectPrivateKey": { "type": "string", "description": "The private key of the App Store Connect API key." }, "appName": { "type": "string", "minLength": 1, "maxLength": 512, "description": "The name of the app in App Store Connect." }, "appId": { "type": "string", "minLength": 1, "description": "The ID of the app in App Store Connect." }, "bundleId": { "type": "string", "minLength": 1, "description": "The bundle ID of the app." } }, "required": [ "type", "id", "name", "appconnectIssuer", "appconnectKey", "appconnectPrivateKey", "appName", "appId", "bundleId" ], "additionalProperties": false } ] }, "examples": { "UpdateACustomSymbolSourceInAProject.": { "value": { "id": "honk", "name": "honk source", "layout": { "type": "native" }, "type": "http", "url": "http://honk.beep", "username": "honkhonk", "password": { "hidden-secret": true } }, "summary": "Update a custom symbol source in a project." } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteProjectSymbolSource", "description": "Delete a custom symbol source from a project.", "summary": "Delete a Symbol Source from a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "id", "schema": { "type": "string" }, "description": "The ID of the source to delete.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin" ] } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/teams/": { "get": { "operationId": "listProjectTeams", "description": "Return a list of teams that have access to this project.", "summary": "List a Project's Teams", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Teams" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Team ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Team slug, unique within the organization" }, "name": { "type": "string", "description": "Display name of the team" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the team was created (ISO 8601)" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of the team" }, "teamRole": { "type": "string", "nullable": true, "description": "The requesting user's role in the team" }, "flags": { "type": "object", "additionalProperties": { "type": "boolean" }, "description": "Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the team through their team role. Empty if the user has no access" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams" }, "isPending": { "type": "boolean", "description": "Whether the requesting user has a pending request to join the team" }, "memberCount": { "type": "integer", "description": "Number of members in the team" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Team avatar" } }, "required": [ "access", "avatar", "dateCreated", "flags", "hasAccess", "id", "isMember", "isPending", "memberCount", "name", "slug", "teamRole" ] } }, "examples": { "ListAProject'sTeams": { "value": [ { "id": "4502349234123", "slug": "ancient-gabelers", "name": "Ancient Gabelers", "dateCreated": "2023-05-31T19:47:53.621181Z", "isMember": true, "teamRole": "contributor", "flags": { "idp:provisioned": false }, "access": [ "alerts:read", "event:write", "project:read", "team:read", "member:read", "project:releases", "event:read", "org:read" ], "hasAccess": true, "isPending": false, "memberCount": 3, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null } }, { "id": "4502349234125", "slug": "squeaky-minnows", "name": "Squeaky Minnows", "dateCreated": "2023-07-27T11:23:34.621181Z", "isMember": true, "teamRole": "contributor", "flags": { "idp:provisioned": false }, "access": [ "alerts:read", "event:write", "project:read", "team:read", "member:read", "project:releases", "event:read", "org:read" ], "hasAccess": true, "isPending": false, "memberCount": 5, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null } } ], "summary": "List a project's teams" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/teams/{team_id_or_slug}/": { "post": { "operationId": "addProjectTeam", "description": "Give a team access to a project.", "summary": "Add a Team to a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status", "teams" ] }, "examples": { "GiveATeamAccessToAProject": { "value": { "id": "6758470122493650", "slug": "the-spoiled-yoghurt", "name": "The Spoiled Yoghurt", "platform": "javascript", "dateCreated": "2023-03-29T15:25:21.344565Z", "isBookmarked": false, "isMember": true, "features": [ "custom-inbound-filters", "discard-groups", "minidump", "rate-limits", "servicehooks", "similarity-indexing", "similarity-indexing-v2", "similarity-view", "similarity-view-v2" ], "firstEvent": null, "firstTransactionEvent": false, "access": [ "member:read", "event:read", "project:admin", "team:write", "project:write", "team:admin", "project:read", "org:integrations", "org:read", "project:releases", "team:read", "alerts:write", "event:admin", "event:write", "alerts:read" ], "hasAccess": true, "hasMinifiedStackTrace": false, "hasFeedbacks": false, "hasMonitors": false, "hasNewFeedbacks": false, "hasProfiles": false, "hasReplays": false, "hasFlags": false, "hasSessions": false, "hasInsightsHttp": true, "hasInsightsDb": false, "hasInsightsAssets": true, "hasInsightsAppStart": false, "hasInsightsScreenLoad": false, "hasInsightsVitals": false, "hasInsightsCaches": false, "hasInsightsQueues": false, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "isInternal": false, "isPublic": false, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "color": "#5cbf3f", "status": "active", "team": { "id": "2349234102", "name": "Prime Mover", "slug": "prime-mover" }, "teams": [ { "id": "2349234102", "name": "Prime Mover", "slug": "prime-mover" }, { "id": "47584447", "name": "Powerful Abolitionist", "slug": "powerful-abolitionist" } ] }, "summary": "Give a Team Access to a Project" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteProjectTeam", "description": "Revoke a team's access to a project.\n\nNote that Team Admins can only revoke access to teams they are admins of.", "summary": "Delete a Team from a Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status", "teams" ] }, "examples": { "RevokeATeam'sAccessToAProject": { "value": { "id": "6758470122493650", "slug": "the-spoiled-yoghurt", "name": "The Spoiled Yoghurt", "platform": "javascript", "dateCreated": "2023-03-29T15:25:21.344565Z", "isBookmarked": false, "isMember": true, "features": [ "custom-inbound-filters", "discard-groups", "minidump", "rate-limits", "servicehooks", "similarity-indexing", "similarity-indexing-v2", "similarity-view", "similarity-view-v2" ], "firstEvent": null, "firstTransactionEvent": false, "access": [ "member:read", "event:read", "project:admin", "team:write", "project:write", "team:admin", "project:read", "org:integrations", "org:read", "project:releases", "team:read", "alerts:write", "event:admin", "event:write", "alerts:read" ], "hasAccess": true, "hasMinifiedStackTrace": false, "hasFeedbacks": false, "hasMonitors": false, "hasNewFeedbacks": false, "hasProfiles": false, "hasReplays": false, "hasFlags": false, "hasSessions": false, "hasInsightsHttp": true, "hasInsightsDb": false, "hasInsightsAssets": true, "hasInsightsAppStart": false, "hasInsightsScreenLoad": false, "hasInsightsVitals": false, "hasInsightsCaches": false, "hasInsightsQueues": false, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "isInternal": false, "isPublic": false, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "color": "#5cbf3f", "status": "active", "team": { "id": "2349234102", "name": "Prime Mover", "slug": "prime-mover" }, "teams": [ { "id": "2349234102", "name": "Prime Mover", "slug": "prime-mover" } ] }, "summary": "Revoke a Team's Access to a Project" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/trace-items/{item_id}/": { "get": { "operationId": "retrieveProjectTraceItem", "description": "**Experimental:** This API is under active development and may change.\n\nRetrieve a span, log or other trace item of a project, with all of its attributes.\n\nPass the `meta.routingHint` of the events response that listed the item as\n`routing_hint`, unchanged. An invalid hint returns 400.", "summary": "Retrieve a Trace Item", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "path", "name": "item_id", "schema": { "type": "string" }, "description": "The hexadecimal ID of the item: the 16-character span ID for a span, or the 32-character item ID for other item types", "required": true }, { "in": "query", "name": "trace_id", "schema": { "type": "string" }, "description": "The 32-character ID of the trace the item belongs to", "required": true }, { "in": "query", "name": "item_type", "schema": { "type": "string", "enum": [ "attachments", "logs", "occurrences", "preprod", "processing_errors", "profile_functions", "spans", "tracemetrics", "uptime_results" ] }, "description": "The type of the item", "required": true }, { "in": "query", "name": "routing_hint", "schema": { "type": "string" }, "description": "The opaque `meta.routingHint` of the events response that contained the item. Pass it unchanged to look the item up in the same storage. When it's omitted or empty, the default storage is used" }, { "in": "query", "name": "timestamp", "schema": { "type": "string", "format": "date-time" }, "description": "When the item happened, as an ISO 8601 timestamp or Unix seconds. The lookup is narrowed to a few minutes around it, which makes it faster" }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." } ], "tags": [ "Explore" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "itemId": { "type": "string", "description": "The ID of the item. For a span, this is the 16-character span ID" }, "timestamp": { "type": "string", "description": "When the item happened, as an RFC 3339 UTC timestamp ending in `Z`" }, "attributes": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "The public name of the attribute, such as `severity`. A custom number or boolean attribute is named `tags[,number]` or `tags[,boolean]`" }, "rawName": { "type": "string", "description": "The name the attribute is stored under" }, "type": { "anyOf": [ { "enum": [ "str", "int", "float", "bool" ], "type": "string" }, { "enum": [ "array" ], "type": "string" } ], "description": "The type of the attribute value: `str`, `int`, `float`, `bool` or `array`" }, "value": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "boolean" }, { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "boolean" }, { "type": "string" } ] } } ], "description": "The attribute value. An `int` value is a string, so 64-bit integers keep their precision. An `array` value is a list of values of one type" } }, "required": [ "name", "type", "value" ] }, "description": "The attributes of the item, sorted by type and then by name" }, "meta": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "Processing metadata, keyed by attribute name, for attributes that were changed during ingestion, such as a value that was trimmed for length" }, "links": { "type": "array", "items": { "type": "object", "properties": { "itemId": { "type": "string", "description": "The ID of the linked span" }, "traceId": { "type": "string", "description": "The ID of the trace the linked span belongs to" }, "sampled": { "type": "boolean", "description": "Whether the linked span was sampled" }, "attributes": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "The name of the link attribute, such as `sentry.link.type`" }, "value": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "boolean" } ], "description": "The link attribute value" }, "type": { "enum": [ "str", "int", "float", "bool" ], "type": "string", "description": "The type of the link attribute value" } }, "required": [ "name", "type", "value" ] }, "description": "The attributes of the link. Attributes with values that aren't a string, number or boolean are left out" } }, "required": [ "itemId", "traceId" ] }, "nullable": true, "description": "The span links of the item, or null if it has none" }, "event": { "type": "object", "properties": { "contexts": { "description": "The contexts of the event the item came from", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "extra": { "description": "The extra data of the event the item came from", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "breadcrumbs": { "description": "The breadcrumbs of the event the item came from. Breadcrumb timestamps are ISO 8601 strings", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] } }, "description": "Fields of the event the item came from that are stored with it. Only present when at least one of them is" } }, "required": [ "attributes", "itemId", "links", "meta", "timestamp" ] }, "examples": { "RetrieveASpan": { "value": { "itemId": "8873a98879faf06d", "timestamp": "2025-01-01T12:00:00Z", "attributes": [ { "name": "is_transaction", "type": "bool", "value": true }, { "name": "span.duration", "type": "float", "value": 132.5 }, { "name": "project_id", "type": "int", "value": "4505281256090153" }, { "name": "span.op", "type": "str", "value": "http.server" }, { "name": "transaction", "type": "str", "value": "GET /api/checkout/" } ], "meta": {}, "links": [ { "itemId": "e3c58cb0bd2d4c89", "traceId": "d099bf9ad5a143cf8f83a98081d0ed3b", "sampled": true, "attributes": [ { "name": "sentry.link.type", "value": "previous_trace", "type": "str" } ] } ] }, "summary": "Retrieve a span" }, "RetrieveALog": { "value": { "itemId": "0197fb2a5c5e7d72a8a3a6c94e8f2b1d", "timestamp": "2025-01-01T12:00:00Z", "attributes": [ { "name": "severity_number", "type": "int", "value": "9" }, { "name": "message", "type": "str", "value": "Payment processed for order 1234..." }, { "name": "severity", "type": "str", "value": "info" }, { "name": "trace", "type": "str", "value": "d099bf9ad5a143cf8f83a98081d0ed3b" } ], "meta": { "message": { "length": 300, "reason": "value too long" } }, "links": null }, "summary": "Retrieve a log" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/user-feedback/": { "get": { "operationId": "List a Project's User Feedback", "description": "Return a list of user feedback items within this project.\n\n*This list does not include submissions from the [User Feedback Widget](https://docs.sentry.io/product/user-feedback/#user-feedback-widget). This is because it is based on an older format called User Reports - read more [here](https://develop.sentry.dev/application/feedback-architecture/#user-reports). To return a list of user feedback items from the widget, please use the [issue API](https://docs.sentry.io/api/events/list-a-projects-issues/) with the filter `issue.category:feedback`.*", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:read" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the feedback" }, "eventID": { "type": "string", "description": "ID of the event the feedback is attached to" }, "name": { "type": "string", "nullable": true, "description": "Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user who submitted the feedback. Falls back to the event user's email address" }, "comments": { "type": "string", "description": "Comments the user submitted" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the feedback was submitted (ISO 8601)" }, "user": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the user, as sent with the event" }, "username": { "type": "string", "nullable": true, "description": "Username sent with the event" }, "email": { "type": "string", "nullable": true, "description": "Email address sent with the event" }, "name": { "type": "string", "nullable": true, "description": "Display name of the user: the name, email address or username sent with the event, whichever is set first" }, "ipAddress": { "type": "string", "nullable": true, "description": "IP address sent with the event" }, "avatarUrl": { "type": "string", "nullable": true, "description": "Gravatar URL for the user's email address" } }, "required": [ "avatarUrl", "email", "id", "ipAddress", "name", "username" ], "nullable": true, "description": "User recorded on the feedback's event. Null when the event isn't found or has no user" }, "event": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the event the feedback is attached to" }, "eventID": { "type": "string", "description": "ID of the event the feedback is attached to" } }, "required": [ "eventID", "id" ], "description": "Event the feedback is attached to" }, "issue": { "type": "object", "properties": { "isUnhandled": { "type": "boolean", "description": "Whether the issue includes unhandled events" }, "count": { "type": "string", "description": "Total number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "derivedData": { "type": "object", "properties": { "blocker": { "type": "string", "description": "Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr" }, "progress": { "type": "string", "description": "How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied" }, "status": { "type": "string", "description": "Status of the issue from its action log: open or closed" }, "viewCount": { "type": "integer", "description": "Number of times the issue was viewed" }, "hasOpenFixPr": { "type": "boolean", "description": "Whether an open pull request is linked to the issue" }, "isAssigned": { "type": "boolean", "description": "Whether the issue has an assignee" }, "hasRootCause": { "type": "boolean", "description": "Whether a root cause was found for the issue" }, "lastCompletedAutofixStep": { "type": "string", "description": "Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration" }, "lastProgressedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue's progress last advanced (ISO 8601)" }, "impact": { "type": "object", "properties": { "score": { "type": "number", "format": "double", "nullable": true, "description": "Estimated per-occurrence impact on the end user's capability from 0 to 100" }, "level": { "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "type": "string", "nullable": true, "description": "Impact level derived from the assessment score" }, "description": { "type": "string", "description": "Human-readable description of the capability affected by the issue" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string", "description": "Stable identifier for the evidence supporting this claim" }, "claim": { "type": "string", "description": "Concise explanation of what the cited evidence establishes" }, "source": { "type": "string", "description": "The category of evidence cited, such as an event, trace, replay, or log" } }, "required": [ "claim", "reference", "source" ] }, "description": "Evidence-backed claims supporting the impact assessment" }, "sourceEventId": { "type": "string", "description": "ID of the issue event used to generate the impact assessment" } }, "required": [ "citations", "description", "level", "score", "sourceEventId" ], "nullable": true, "description": "The issue's impact assessment, or null when no assessment is available" } }, "required": [ "blocker", "hasOpenFixPr", "hasRootCause", "isAssigned", "lastCompletedAutofixStep", "lastProgressedAt", "progress", "status", "viewCount" ], "description": "Additional data derived for the issue. Only included when requested with expand" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "shareId": { "type": "string", "nullable": true, "description": "ID used in the issue's public share URL. Null when the issue isn't shared" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "permalink": { "type": "string", "format": "uri", "description": "URL of the issue in Sentry" }, "logger": { "type": "string", "nullable": true, "description": "Logger of the issue's events" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "statusDetails": { "type": "object", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored" }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored (ISO 8601)" }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored" }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount" }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount" }, "actor": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who ignored or resolved the issue" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in" }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in" }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed" }, "info": { "type": "object", "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)" }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started" }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum" } }, "required": [ "dateCreated", "syncCount", "totalEvents" ], "nullable": true, "description": "Reprocessing progress details" } }, "description": "Details of the issue's status, such as when an ignore expires or which release resolves it" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "priority": { "enum": [ "low", "medium", "high", null ], "type": "string", "nullable": true, "description": "Priority of the issue: high, medium or low" }, "priorityLockedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the priority was last set manually, which stops automatic priority updates (ISO 8601)" }, "seerFixabilityScore": { "type": "number", "format": "double", "nullable": true, "description": "Seer's score for how likely the issue is to be fixable" }, "seerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When Seer Autofix was last triggered for the issue (ISO 8601)" }, "seerExplorerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601)" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "User or team the issue is assigned to" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "nullable": true, "description": "Why the requesting user is subscribed to the issue" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred" }, "annotations": { "type": "array", "items": { "type": "object", "properties": { "displayName": { "type": "string", "description": "Display name of the linked external issue" }, "url": { "type": "string", "description": "URL of the linked external issue" } }, "required": [ "displayName", "url" ] }, "description": "External issues linked to the issue" } }, "required": [ "annotations", "assignedTo", "culprit", "hasSeen", "id", "isBookmarked", "isPublic", "isSubscribed", "issueCategory", "issueType", "level", "logger", "metadata", "numComments", "permalink", "platform", "priority", "priorityLockedAt", "project", "seerAutofixLastTriggered", "seerExplorerAutofixLastTriggered", "seerFixabilityScore", "shareId", "shortId", "status", "statusDetails", "subscriptionDetails", "substatus", "title", "type" ], "nullable": true, "description": "Issue the feedback's event belongs to. Null when the feedback isn't linked to an issue" } }, "required": [ "comments", "dateCreated", "email", "event", "eventID", "id", "issue", "name", "user" ] } }, "examples": { "ReturnAListOfUserFeedbackItemsWithinAProject": { "value": [ { "comments": "It broke!", "dateCreated": "2018-11-06T21:20:11.468000Z", "email": "jane@example.com", "event": { "eventID": "14bad9a2e3774046977a21440ddb39b2", "id": "14bad9a2e3774046977a21440ddb39b2" }, "eventID": "14bad9a2e3774046977a21440ddb39b2", "id": "1", "issue": null, "name": "Jane Smith", "user": null } ], "summary": "Return a list of user feedback items within a project" } } } }, "description": "Success" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "Submit User Feedback", "description": "*This endpoint is DEPRECATED. We document it here for older SDKs and users who are still migrating to the [User Feedback Widget](https://docs.sentry.io/product/user-feedback/#user-feedback-widget) or [API](https://docs.sentry.io/platforms/javascript/user-feedback/#user-feedback-api)(multi-platform). If you are a new user, do not use this endpoint - unless you don't have a JS frontend, and your platform's SDK does not offer a feedback API.*\n\nFeedback must be received by the server no more than 30 minutes after the event was saved.\n\nAdditionally, within 5 minutes of submitting feedback it may also be overwritten. This is useful in situations where you may need to retry sending a request due to network failures.\n\nIf feedback is rejected due to a mutability threshold, a 409 status code will be returned.\n\nNote: Feedback may be submitted with DSN authentication (see auth documentation).", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "description": "User's name.", "maxLength": 128 }, "email": { "type": "string", "format": "email", "description": "User's email address.", "maxLength": 75 }, "comments": { "type": "string", "description": "Comments supplied by user.", "maxLength": 4096 }, "event_id": { "type": "string", "description": "The event ID. This can be retrieved from the [beforeSend callback](https://docs.sentry.io/platforms/javascript/configuration/filtering/#using-beforesend).", "maxLength": 32 } }, "required": [ "comments", "email", "event_id", "name" ] }, "examples": { "SubmitUserFeedbackForAnEvent": { "value": { "event_id": "14bad9a2e3774046977a21440ddb39b2", "name": "Jane Schmidt", "email": "jane@empowerplant.io", "comments": "It broke!" }, "summary": "Submit user feedback for an event" } } } }, "required": true }, "security": [ { "auth_token": [ "project:write" ] }, { "dsn": [] } ], "deprecated": true, "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the feedback" }, "eventID": { "type": "string", "description": "ID of the event the feedback is attached to" }, "name": { "type": "string", "nullable": true, "description": "Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user who submitted the feedback. Falls back to the event user's email address" }, "comments": { "type": "string", "description": "Comments the user submitted" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the feedback was submitted (ISO 8601)" }, "user": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the user, as sent with the event" }, "username": { "type": "string", "nullable": true, "description": "Username sent with the event" }, "email": { "type": "string", "nullable": true, "description": "Email address sent with the event" }, "name": { "type": "string", "nullable": true, "description": "Display name of the user: the name, email address or username sent with the event, whichever is set first" }, "ipAddress": { "type": "string", "nullable": true, "description": "IP address sent with the event" }, "avatarUrl": { "type": "string", "nullable": true, "description": "Gravatar URL for the user's email address" } }, "required": [ "avatarUrl", "email", "id", "ipAddress", "name", "username" ], "nullable": true, "description": "User recorded on the feedback's event. Null when the event isn't found or has no user" }, "event": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the event the feedback is attached to" }, "eventID": { "type": "string", "description": "ID of the event the feedback is attached to" } }, "required": [ "eventID", "id" ], "description": "Event the feedback is attached to" }, "issue": { "type": "object", "properties": { "isUnhandled": { "type": "boolean", "description": "Whether the issue includes unhandled events" }, "count": { "type": "string", "description": "Total number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "derivedData": { "type": "object", "properties": { "blocker": { "type": "string", "description": "Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr" }, "progress": { "type": "string", "description": "How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied" }, "status": { "type": "string", "description": "Status of the issue from its action log: open or closed" }, "viewCount": { "type": "integer", "description": "Number of times the issue was viewed" }, "hasOpenFixPr": { "type": "boolean", "description": "Whether an open pull request is linked to the issue" }, "isAssigned": { "type": "boolean", "description": "Whether the issue has an assignee" }, "hasRootCause": { "type": "boolean", "description": "Whether a root cause was found for the issue" }, "lastCompletedAutofixStep": { "type": "string", "description": "Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration" }, "lastProgressedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue's progress last advanced (ISO 8601)" }, "impact": { "type": "object", "properties": { "score": { "type": "number", "format": "double", "nullable": true, "description": "Estimated per-occurrence impact on the end user's capability from 0 to 100" }, "level": { "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "type": "string", "nullable": true, "description": "Impact level derived from the assessment score" }, "description": { "type": "string", "description": "Human-readable description of the capability affected by the issue" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string", "description": "Stable identifier for the evidence supporting this claim" }, "claim": { "type": "string", "description": "Concise explanation of what the cited evidence establishes" }, "source": { "type": "string", "description": "The category of evidence cited, such as an event, trace, replay, or log" } }, "required": [ "claim", "reference", "source" ] }, "description": "Evidence-backed claims supporting the impact assessment" }, "sourceEventId": { "type": "string", "description": "ID of the issue event used to generate the impact assessment" } }, "required": [ "citations", "description", "level", "score", "sourceEventId" ], "nullable": true, "description": "The issue's impact assessment, or null when no assessment is available" } }, "required": [ "blocker", "hasOpenFixPr", "hasRootCause", "isAssigned", "lastCompletedAutofixStep", "lastProgressedAt", "progress", "status", "viewCount" ], "description": "Additional data derived for the issue. Only included when requested with expand" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "shareId": { "type": "string", "nullable": true, "description": "ID used in the issue's public share URL. Null when the issue isn't shared" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "permalink": { "type": "string", "format": "uri", "description": "URL of the issue in Sentry" }, "logger": { "type": "string", "nullable": true, "description": "Logger of the issue's events" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "statusDetails": { "type": "object", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored" }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored (ISO 8601)" }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored" }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount" }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount" }, "actor": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who ignored or resolved the issue" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in" }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in" }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed" }, "info": { "type": "object", "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)" }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started" }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum" } }, "required": [ "dateCreated", "syncCount", "totalEvents" ], "nullable": true, "description": "Reprocessing progress details" } }, "description": "Details of the issue's status, such as when an ignore expires or which release resolves it" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "priority": { "enum": [ "low", "medium", "high", null ], "type": "string", "nullable": true, "description": "Priority of the issue: high, medium or low" }, "priorityLockedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the priority was last set manually, which stops automatic priority updates (ISO 8601)" }, "seerFixabilityScore": { "type": "number", "format": "double", "nullable": true, "description": "Seer's score for how likely the issue is to be fixable" }, "seerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When Seer Autofix was last triggered for the issue (ISO 8601)" }, "seerExplorerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601)" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "User or team the issue is assigned to" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "nullable": true, "description": "Why the requesting user is subscribed to the issue" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred" }, "annotations": { "type": "array", "items": { "type": "object", "properties": { "displayName": { "type": "string", "description": "Display name of the linked external issue" }, "url": { "type": "string", "description": "URL of the linked external issue" } }, "required": [ "displayName", "url" ] }, "description": "External issues linked to the issue" } }, "required": [ "annotations", "assignedTo", "culprit", "hasSeen", "id", "isBookmarked", "isPublic", "isSubscribed", "issueCategory", "issueType", "level", "logger", "metadata", "numComments", "permalink", "platform", "priority", "priorityLockedAt", "project", "seerAutofixLastTriggered", "seerExplorerAutofixLastTriggered", "seerFixabilityScore", "shareId", "shortId", "status", "statusDetails", "subscriptionDetails", "substatus", "title", "type" ], "nullable": true, "description": "Issue the feedback's event belongs to. Null when the feedback isn't linked to an issue" } }, "required": [ "comments", "dateCreated", "email", "event", "eventID", "id", "issue", "name", "user" ] }, "examples": { "ReturnTheSubmittedUserFeedback": { "value": { "comments": "It broke!", "dateCreated": "2018-11-06T21:20:11.468000Z", "email": "jane@example.com", "event": { "eventID": "14bad9a2e3774046977a21440ddb39b2", "id": "14bad9a2e3774046977a21440ddb39b2" }, "eventID": "14bad9a2e3774046977a21440ddb39b2", "id": "1", "issue": null, "name": "Jane Smith", "user": null }, "summary": "Return the submitted user feedback" } } } }, "description": "Success" }, "400": { "description": "Bad Input" }, "403": { "description": "Forbidden" }, "404": { "description": "The requested resource does not exist" }, "409": { "description": "Conflict" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/users/": { "get": { "operationId": "listProjectUsers", "description": "Return a list of users seen within this project.", "summary": "List a Project's Users", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "project_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.", "required": true }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "Limit results to users matching the given query. Prefixes should be used to suggest the field to match on: `id`, `email`, `username`, `ip`. For example, `query=email:foo@example.com`." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Projects" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID of the legacy EventUser record. Null for users built from events" }, "tagValue": { "type": "string", "nullable": true, "description": "Value of the user tag that matches the user, such as id:123 or email:jane@example.com" }, "identifier": { "anyOf": [ { "type": "integer" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "ID the SDK sent for the user" }, "username": { "type": "string", "nullable": true, "description": "Username the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address the SDK sent for the user" }, "name": { "type": "string", "nullable": true, "description": "Display name of the user" }, "ipAddress": { "type": "string", "nullable": true, "description": "IP address of the user" }, "avatarUrl": { "type": "string", "description": "Gravatar URL of the user's email address" }, "hash": { "type": "string", "nullable": true, "description": "MD5 hash of the first set user attribute: id, username, email or IP address" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "Legacy field, always null" } }, "required": [ "avatarUrl", "dateCreated", "email", "hash", "id", "identifier", "ipAddress", "name", "tagValue", "username" ] } }, "examples": { "ProjectUsers": { "value": [ { "id": "1", "tagValue": "email:sentry@example.com", "identifier": "1", "username": "sentry", "email": "sentry@example.com", "name": "Sentry", "ipAddress": "127.0.0.1", "avatarUrl": "https://secure.gravatar.com/avatar/7ddf6ed64b36a1a28182f2c9af87c910?s=32", "hash": "7ddf6ed64b36a1a28182f2c9af87c910", "dateCreated": null } ], "summary": "Project users" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/seer/models/": { "get": { "operationId": "listSeerModels", "description": "Get list of actively used LLM model names from Seer.\n\nReturns the list of AI models that are currently used in production in Seer.\nThis endpoint does not require authentication and can be used to discover which models Seer uses.\n\nRequests to this endpoint should use the region-specific domain\neg. `us.sentry.io` or `de.sentry.io`", "summary": "List Seer AI Models", "tags": [ "Seer" ], "security": [ { "auth_token": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "description": "Response containing list of actively used LLM model names from Seer.", "properties": { "models": { "type": "array", "items": { "type": "string" }, "description": "Names of the LLM models Seer uses" } }, "required": [ "models" ] } } }, "description": "" } }, "x-sentry-routing": { "silo": "cell" }, "servers": [ { "url": "https://{region}.sentry.io/api/0" } ] } }, "/sentry-app-installations/{uuid}/external-issue-actions/": { "post": { "operationId": "executeSentryAppInstallationExternalIssueAction", "description": "**Experimental:** This API is under active development and may change.\n\nInvoke the installed app's issue-link callback and store the returned association.\nSubmit the app-specific form fields alongside `groupId`, `action`, and `uri`.\nThe installation UUID, form fields, and `uri` come from the organization's\n`issue-link` Sentry App components.\n\nFor `action=link`, the optional `expectedExternalIssueUrl` query parameter\nrequires an exact canonical `webUrl` match. An existing matching link is\nreturned with HTTP 200 without calling the App; a different link\nreturns 409. The callback must also return this URL before a new link is\nsaved. Callback effects cannot be rolled back if its response conflicts.\nA new association returns HTTP 201. Omitting the parameter preserves the\nApp's existing replacement behavior and HTTP 200 response.", "summary": "Create or Link an External Issue Through a Sentry App", "parameters": [ { "in": "path", "name": "uuid", "schema": { "type": "string" }, "description": "The UUID of the Sentry App installation.", "required": true }, { "in": "query", "name": "expectedExternalIssueUrl", "schema": { "type": "string", "format": "uri", "minLength": 1 }, "description": "The exact canonical webUrl of the external issue to link. Only supported for action=link. An existing matching association is a no-op; a different association or callback URL returns 409 without replacing the link." } ], "tags": [ "Integration" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "groupId": { "type": "string", "description": "The numeric Sentry issue ID." }, "action": { "type": "string", "description": "The action to perform: `link` or `create`.", "enum": [ "link", "create" ] }, "uri": { "type": "string", "description": "The relative callback URI from the app's issue-link form." } }, "required": [ "action", "groupId", "uri" ], "additionalProperties": true } } }, "required": true }, "security": [ { "auth_token": [ "event:admin", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the external issue link" }, "issueId": { "type": "string", "description": "ID of the Sentry issue" }, "serviceType": { "type": "string", "description": "Slug of the custom integration that created the external issue" }, "displayName": { "type": "string", "description": "Display name of the external issue, such as ABC-123" }, "webUrl": { "type": "string", "description": "URL of the external issue" } }, "required": [ "displayName", "id", "issueId", "serviceType", "webUrl" ] } } }, "description": "" }, "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the external issue link" }, "issueId": { "type": "string", "description": "ID of the Sentry issue" }, "serviceType": { "type": "string", "description": "Slug of the custom integration that created the external issue" }, "displayName": { "type": "string", "description": "Display name of the external issue, such as ABC-123" }, "webUrl": { "type": "string", "description": "URL of the external issue" } }, "required": [ "displayName", "id", "issueId", "serviceType", "webUrl" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "description": "Conflict" } }, "x-sentry-routing": { "silo": "control" }, "x-sentry-experimental": true } }, "/sentry-app-installations/{uuid}/external-requests/": { "get": { "operationId": "getSentryAppInstallationExternalRequestOptions", "description": "**Experimental:** This API is under active development and may change.\n\nRequest select options from the installed app. Each choice contains its value followed by its label.", "summary": "Retrieve a Sentry App's Select Field Options", "parameters": [ { "in": "path", "name": "uuid", "schema": { "type": "string" }, "description": "The UUID of the Sentry App installation.", "required": true }, { "in": "query", "name": "uri", "schema": { "type": "string", "minLength": 1 }, "description": "The relative URI of the select field's options callback.", "required": true }, { "in": "query", "name": "projectId", "schema": { "type": "integer" }, "description": "The Sentry project ID to include in the options request." }, { "in": "query", "name": "query", "schema": { "type": "string", "minLength": 1 }, "description": "The search text for select options." }, { "in": "query", "name": "dependentData", "schema": { "type": "string", "minLength": 1 }, "description": "A JSON-encoded object containing the values of fields this select depends on." } ], "tags": [ "Integration" ], "security": [ { "auth_token": [ "org:admin", "org:integrations", "org:read", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "choices": { "type": "array", "items": { "type": "array", "items": { "type": "string" } }, "description": "Select options returned by the installed app. Each choice is a `[value, label]` pair" }, "defaultValue": { "type": "string", "description": "Value of the option to select by default, if the app returned one" } }, "required": [ "choices" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "control" }, "x-sentry-experimental": true } }, "/sentry-apps/{sentry_app_id_or_slug}/": { "get": { "operationId": "getSentryApp", "description": "Retrieve a custom integration.", "summary": "Retrieve a custom integration by ID or slug.", "parameters": [ { "in": "path", "name": "sentry_app_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the custom integration.", "required": true } ], "tags": [ "Integration" ], "security": [ { "auth_token": [ "event:admin", "event:read", "event:write", "member:read", "org:read", "project:read", "project:releases", "team:read" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "allowedOrigins": { "type": "array", "items": { "type": "string" }, "description": "Allowed origins for CORS" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the custom integration" }, "events": { "type": "array", "items": { "type": "string" }, "description": "Resources the integration's webhooks are subscribed to, such as issue" }, "webhookEvents": { "type": "array", "items": { "type": "string" }, "description": "Webhook events the integration is subscribed to, such as issue.resolved" }, "featureData": { "type": "array", "items": { "type": "string" }, "description": "Features the integration supports. Empty for internal integrations" }, "isAlertable": { "type": "boolean", "description": "Whether the integration can be used in alert rules" }, "metadata": { "type": "string", "description": "Metadata of the integration" }, "name": { "type": "string", "description": "Name of the custom integration" }, "schema": { "type": "string", "description": "UI components schema used to render the integration's UI elements" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Permission scopes for API access" }, "slug": { "type": "string", "description": "Slug of the custom integration" }, "status": { "enum": [ "unpublished", "published", "internal", "publish_request_inprogress", "deletion_in_progress" ], "type": "string", "description": "Status of the integration" }, "uuid": { "type": "string", "format": "uuid", "description": "UUID of the custom integration" }, "verifyInstall": { "type": "boolean", "description": "Whether installations of the integration must be verified" }, "webhookHeaders": { "type": "array", "items": { "type": "string" }, "description": "Custom headers sent with every webhook request, as Header-Name: value pairs. Values are masked" }, "isDisabled": { "type": "boolean", "description": "Whether the integration is disabled" }, "author": { "type": "string", "nullable": true, "description": "Author of the integration" }, "overview": { "type": "string", "nullable": true, "description": "Description of the integration" }, "popularity": { "type": "integer", "nullable": true, "description": "Popularity score of the integration" }, "redirectUrl": { "type": "string", "nullable": true, "description": "URL to redirect to after installation" }, "webhookUrl": { "type": "string", "nullable": true, "description": "Webhook destination URL" }, "clientSecret": { "type": "string", "nullable": true, "description": "OAuth client secret. Only shown to authorized users within 5 minutes of creation, and masked otherwise" }, "datePublished": { "type": "string", "format": "date-time", "description": "When the integration was published (ISO 8601). Only set for published integrations" }, "clientId": { "type": "string", "description": "OAuth client ID. Only included for members of the owner organization" }, "owner": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the organization that owns the integration" }, "slug": { "type": "string", "description": "Slug of the organization that owns the integration" } }, "required": [ "id", "slug" ], "description": "Organization that owns the integration. Only included for members of the owner organization" } }, "required": [ "allowedOrigins", "avatars", "events", "featureData", "isAlertable", "metadata", "name", "schema", "scopes", "slug", "status", "uuid", "verifyInstall", "webhookEvents", "webhookHeaders" ] }, "examples": { "RetrieveACustomIntegration": { "value": { "allowedOrigins": [], "author": "ACME Corp", "avatars": [ { "avatarType": "avatar", "avatarUuid": "6c25b771-a576-4c18-a1c3-ab059c1d42ba", "avatarUrl": "https://example.com/avatar.png", "color": false, "photoType": "icon" } ], "events": [ "issue" ], "webhookEvents": [ "issue.assigned", "issue.created", "issue.ignored", "issue.resolved", "issue.unresolved" ], "isAlertable": false, "isDisabled": false, "metadata": "", "name": "ACME Corp Integration", "overview": null, "popularity": 27, "redirectUrl": null, "featureData": [], "schema": "", "scopes": [ "event:read", "org:read" ], "slug": "acme-corp-integration", "status": "unpublished", "uuid": "77cebea3-019e-484d-8673-6c3969698827", "verifyInstall": true, "webhookUrl": "https://example.com/webhook", "webhookHeaders": [ "X-Custom-Header: value" ], "clientId": "ed06141686bb60102d878c607eff449fa9907fa7a8cb70f0d337a8fb0b6566c3", "clientSecret": "**********", "owner": { "id": 42, "slug": "acme-corp" } }, "summary": "Retrieve a custom integration" } } } }, "description": "" } }, "x-sentry-routing": { "silo": "control" } }, "put": { "operationId": "updateSentryApp", "description": "Update an existing custom integration.", "summary": "Update an existing custom integration.", "parameters": [ { "in": "path", "name": "sentry_app_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the custom integration.", "required": true } ], "tags": [ "Integration" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "description": "The name of the custom integration." }, "scopes": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "The custom integration's permission scopes for API access." }, "author": { "type": "string", "nullable": true, "description": "The custom integration's author." }, "events": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Webhook events the custom integration is subscribed to." }, "features": { "type": "array", "items": { "enum": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, "", null ], "type": "integer", "description": "* `0` - integrations-api\n* `1` - integrations-issue-link\n* `2` - integrations-stacktrace-link\n* `3` - integrations-event-hooks\n* `4` - integrations-project-management\n* `5` - integrations-incident-management\n* `6` - integrations-feature-flag\n* `7` - integrations-alert-rule\n* `8` - integrations-release-management\n* `9` - integrations-visualization\n* `11` - integrations-chat\n* `12` - integrations-session-replay" }, "nullable": true, "description": "The list of features that the custom integration supports." }, "schema": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "The UI components schema, used to render the custom integration's configuration UI elements. See our [schema docs](https://docs.sentry.io/organization/integrations/integration-platform/ui-components/) for more information." }, "webhookUrl": { "type": "string", "format": "uri", "nullable": true, "description": "The webhook destination URL.", "maxLength": 512 }, "redirectUrl": { "type": "string", "format": "uri", "nullable": true, "description": "The post-installation redirect URL.", "maxLength": 200 }, "isInternal": { "type": "boolean", "default": false, "description": "Whether or not the integration is internal only. False means the integration is public." }, "isAlertable": { "type": "boolean", "default": false, "description": "Marks whether or not the custom integration can be used in an alert rule." }, "overview": { "type": "string", "nullable": true, "description": "The custom integration's description." }, "verifyInstall": { "type": "boolean", "default": true, "description": "Whether or not an installation of the custom integration should be verified." }, "allowedOrigins": { "type": "array", "items": { "type": "string", "maxLength": 255 }, "description": "The list of allowed origins for CORS." }, "webhookHeaders": { "type": "array", "items": { "type": "string", "maxLength": 1024 }, "description": "Custom headers sent with every webhook request. Each entry is a single 'Header-Name: value' pair." } }, "required": [ "name", "scopes" ] } } }, "required": true }, "security": [ { "auth_token": [ "org:admin", "org:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "allowedOrigins": { "type": "array", "items": { "type": "string" }, "description": "Allowed origins for CORS" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the custom integration" }, "events": { "type": "array", "items": { "type": "string" }, "description": "Resources the integration's webhooks are subscribed to, such as issue" }, "webhookEvents": { "type": "array", "items": { "type": "string" }, "description": "Webhook events the integration is subscribed to, such as issue.resolved" }, "featureData": { "type": "array", "items": { "type": "string" }, "description": "Features the integration supports. Empty for internal integrations" }, "isAlertable": { "type": "boolean", "description": "Whether the integration can be used in alert rules" }, "metadata": { "type": "string", "description": "Metadata of the integration" }, "name": { "type": "string", "description": "Name of the custom integration" }, "schema": { "type": "string", "description": "UI components schema used to render the integration's UI elements" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Permission scopes for API access" }, "slug": { "type": "string", "description": "Slug of the custom integration" }, "status": { "enum": [ "unpublished", "published", "internal", "publish_request_inprogress", "deletion_in_progress" ], "type": "string", "description": "Status of the integration" }, "uuid": { "type": "string", "format": "uuid", "description": "UUID of the custom integration" }, "verifyInstall": { "type": "boolean", "description": "Whether installations of the integration must be verified" }, "webhookHeaders": { "type": "array", "items": { "type": "string" }, "description": "Custom headers sent with every webhook request, as Header-Name: value pairs. Values are masked" }, "isDisabled": { "type": "boolean", "description": "Whether the integration is disabled" }, "author": { "type": "string", "nullable": true, "description": "Author of the integration" }, "overview": { "type": "string", "nullable": true, "description": "Description of the integration" }, "popularity": { "type": "integer", "nullable": true, "description": "Popularity score of the integration" }, "redirectUrl": { "type": "string", "nullable": true, "description": "URL to redirect to after installation" }, "webhookUrl": { "type": "string", "nullable": true, "description": "Webhook destination URL" }, "clientSecret": { "type": "string", "nullable": true, "description": "OAuth client secret. Only shown to authorized users within 5 minutes of creation, and masked otherwise" }, "datePublished": { "type": "string", "format": "date-time", "description": "When the integration was published (ISO 8601). Only set for published integrations" }, "clientId": { "type": "string", "description": "OAuth client ID. Only included for members of the owner organization" }, "owner": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the organization that owns the integration" }, "slug": { "type": "string", "description": "Slug of the organization that owns the integration" } }, "required": [ "id", "slug" ], "description": "Organization that owns the integration. Only included for members of the owner organization" } }, "required": [ "allowedOrigins", "avatars", "events", "featureData", "isAlertable", "metadata", "name", "schema", "scopes", "slug", "status", "uuid", "verifyInstall", "webhookEvents", "webhookHeaders" ] }, "examples": { "UpdateACustomIntegration": { "value": { "allowedOrigins": [], "author": "ACME Corp", "avatars": [ { "avatarType": "avatar", "avatarUuid": "6c25b771-a576-4c18-a1c3-ab059c1d42ba", "avatarUrl": "https://example.com/avatar.png", "color": false, "photoType": "icon" } ], "events": [ "issue" ], "webhookEvents": [ "issue.assigned", "issue.created", "issue.ignored", "issue.resolved", "issue.unresolved" ], "isAlertable": false, "isDisabled": false, "metadata": "", "name": "ACME Corp Integration", "overview": null, "popularity": 27, "redirectUrl": null, "featureData": [], "schema": "", "scopes": [ "event:read", "org:read" ], "slug": "acme-corp-integration", "status": "unpublished", "uuid": "77cebea3-019e-484d-8673-6c3969698827", "verifyInstall": true, "webhookUrl": "https://example.com/webhook", "webhookHeaders": [ "X-Custom-Header: value" ], "clientId": "ed06141686bb60102d878c607eff449fa9907fa7a8cb70f0d337a8fb0b6566c3", "clientSecret": "**********", "owner": { "id": 42, "slug": "acme-corp" } }, "summary": "Update a custom integration" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "control" } }, "delete": { "operationId": "deleteSentryApp", "description": "Delete a custom integration.", "summary": "Delete a custom integration.", "parameters": [ { "in": "path", "name": "sentry_app_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the custom integration.", "required": true } ], "tags": [ "Integration" ], "security": [ { "auth_token": [ "org:admin" ] } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "control" } } }, "/teams/{organization_id_or_slug}/{team_id_or_slug}/": { "get": { "operationId": "getTeam", "description": "Return details on an individual team.", "summary": "Retrieve a Team", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true }, { "in": "query", "name": "expand", "schema": { "type": "string" }, "description": "\nList of strings to opt in to additional data. Supports `projects`, `externalTeams`.\n" }, { "in": "query", "name": "collapse", "schema": { "type": "string" }, "description": "\nList of strings to opt out of certain pieces of data. Supports `organization`.\n" } ], "tags": [ "Teams" ], "security": [ { "auth_token": [ "team:admin", "team:read", "team:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Team ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Team slug, unique within the organization" }, "name": { "type": "string", "description": "Display name of the team" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the team was created (ISO 8601)" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of the team" }, "teamRole": { "type": "string", "nullable": true, "description": "The requesting user's role in the team" }, "flags": { "type": "object", "additionalProperties": { "type": "boolean" }, "description": "Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the team through their team role. Empty if the user has no access" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams" }, "isPending": { "type": "boolean", "description": "Whether the requesting user has a pending request to join the team" }, "memberCount": { "type": "integer", "description": "Number of members in the team" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Team avatar" }, "externalTeams": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Teams in external providers, such as Slack or GitHub, that are linked to this team" }, "organization": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ], "description": "Organization the team belongs to" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ] }, "description": "Projects the team has access to" } }, "required": [ "access", "avatar", "dateCreated", "flags", "hasAccess", "id", "isMember", "isPending", "memberCount", "name", "slug", "teamRole" ] }, "examples": { "RetrieveATeam": { "value": { "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null }, "dateCreated": "2018-11-06T21:19:55.114Z", "hasAccess": true, "id": "2", "isMember": true, "isPending": false, "memberCount": 1, "name": "Powerful Abolitionist", "organization": { "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null }, "dateCreated": "2018-11-06T21:19:55.101Z", "id": "2", "isEarlyAdopter": false, "allowMemberInvite": true, "allowMemberProjectCreation": true, "allowSuperuserAccess": false, "name": "The Interstellar Jurisdiction", "require2FA": false, "slug": "the-interstellar-jurisdiction", "status": { "id": "active", "name": "active" }, "features": [ "session-replay-videos" ], "hasAuthProvider": true, "links": { "organizationUrl": "https://philosophers.sentry.io", "regionUrl": "https://us.sentry.io" } }, "slug": "powerful-abolitionist", "access": [ "event:read", "event:write", "team:read", "org:read", "project:read", "member:read", "project:releases", "alerts:read" ], "flags": { "idp:provisioned": false }, "teamRole": "contributor" }, "summary": "Retrieve a Team" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateTeam", "description": "Update various attributes and configurable settings for the given\nteam.", "summary": "Update a Team", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true } ], "tags": [ "Teams" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "slug": { "type": "string", "description": "Uniquely identifies a team. This is must be available.", "maxLength": 50, "pattern": "^(?![0-9]+$)[a-z0-9_\\-]+$" }, "name": { "type": "string", "description": "The name of the team.", "maxLength": 64 } }, "required": [ "slug" ] } } }, "required": true }, "security": [ { "auth_token": [ "team:admin", "team:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Team ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Team slug, unique within the organization" }, "name": { "type": "string", "description": "Display name of the team" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the team was created (ISO 8601)" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of the team" }, "teamRole": { "type": "string", "nullable": true, "description": "The requesting user's role in the team" }, "flags": { "type": "object", "additionalProperties": { "type": "boolean" }, "description": "Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the team through their team role. Empty if the user has no access" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams" }, "isPending": { "type": "boolean", "description": "Whether the requesting user has a pending request to join the team" }, "memberCount": { "type": "integer", "description": "Number of members in the team" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Team avatar" }, "externalTeams": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Teams in external providers, such as Slack or GitHub, that are linked to this team" }, "organization": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ], "description": "Organization the team belongs to" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ] }, "description": "Projects the team has access to" } }, "required": [ "access", "avatar", "dateCreated", "flags", "hasAccess", "id", "isMember", "isPending", "memberCount", "name", "slug", "teamRole" ] }, "examples": { "UpdateATeam": { "value": { "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null }, "dateCreated": "2018-11-06T21:20:08.115Z", "hasAccess": true, "id": "3", "isMember": false, "isPending": false, "memberCount": 1, "name": "The Inflated Philosophers", "slug": "the-inflated-philosophers", "access": [ "event:read", "event:write", "team:read", "org:read", "project:read", "member:read", "project:releases", "alerts:read" ], "flags": { "idp:provisioned": false }, "teamRole": "contributor" }, "summary": "Update a Team" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteTeam", "description": "Schedules a team for deletion.\n\n**Note:** Deletion happens asynchronously and therefore is not\nimmediate. Teams will have their slug released while waiting for deletion.", "summary": "Delete a Team", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true } ], "tags": [ "Teams" ], "security": [ { "auth_token": [ "team:admin" ] } ], "responses": { "204": { "description": "No Content" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/teams/{organization_id_or_slug}/{team_id_or_slug}/external-teams/": { "post": { "operationId": "createTeamExternalTeam", "description": "Link a team from an external provider to a Sentry team.", "summary": "Create an External Team", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true } ], "tags": [ "Integrations" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "team_id": { "type": "integer", "description": "ID of the Sentry team to link to the external team." }, "external_name": { "type": "string", "description": "The associated name for the provider." }, "provider": { "enum": [ "github", "github_enterprise", "jira_server", "slack", "slack_staging", "perforce", "gitlab", "cursor_origin", "msteams", "custom_scm" ], "type": "string", "description": "The provider of the external actor.\n\n* `github`\n* `github_enterprise`\n* `jira_server`\n* `slack`\n* `slack_staging`\n* `perforce`\n* `gitlab`\n* `cursor_origin`\n* `msteams`\n* `custom_scm`" }, "integration_id": { "type": "integer", "description": "The Integration ID." }, "external_id": { "type": "string", "nullable": true, "description": "The associated user ID for provider." } }, "required": [ "external_name", "integration_id", "provider", "team_id" ] } } }, "required": true }, "security": [ { "auth_token": [ "team:admin", "team:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "examples": { "CreateAnExternalTeam": { "value": { "externalId": "asdf", "externalName": "@team-foo", "provider": "slack", "integrationId": "1", "id": "1", "teamId": "2" }, "summary": "Create an external team" } } } }, "description": "" }, "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "examples": { "CreateAnExternalTeam": { "value": { "externalId": "asdf", "externalName": "@team-foo", "provider": "slack", "integrationId": "1", "id": "1", "teamId": "2" }, "summary": "Create an external team" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/teams/{organization_id_or_slug}/{team_id_or_slug}/external-teams/{external_team_id}/": { "put": { "operationId": "updateTeamExternalTeam", "description": "Update a team in an external provider that is currently linked to a Sentry team.", "summary": "Update an External Team", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true }, { "in": "path", "name": "external_team_id", "schema": { "type": "integer" }, "description": "The ID of the external team object. This is returned when creating an external team.", "required": true } ], "tags": [ "Integrations" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "team_id": { "type": "integer", "description": "ID of the Sentry team to link to the external team." }, "external_name": { "type": "string", "description": "The associated name for the provider." }, "provider": { "enum": [ "github", "github_enterprise", "jira_server", "slack", "slack_staging", "perforce", "gitlab", "cursor_origin", "msteams", "custom_scm" ], "type": "string", "description": "The provider of the external actor.\n\n* `github`\n* `github_enterprise`\n* `jira_server`\n* `slack`\n* `slack_staging`\n* `perforce`\n* `gitlab`\n* `cursor_origin`\n* `msteams`\n* `custom_scm`" }, "integration_id": { "type": "integer", "description": "The Integration ID." }, "external_id": { "type": "string", "nullable": true, "description": "The associated user ID for provider." } }, "required": [ "external_name", "integration_id", "provider", "team_id" ] } } }, "required": true }, "security": [ { "auth_token": [ "team:admin", "team:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "examples": { "CreateAnExternalTeam": { "value": { "externalId": "asdf", "externalName": "@team-foo", "provider": "slack", "integrationId": "1", "id": "1", "teamId": "2" }, "summary": "Create an external team" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true }, "delete": { "operationId": "deleteTeamExternalTeam", "description": "Delete the link between a team from an external provider and a Sentry team.", "summary": "Delete an External Team", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true }, { "in": "path", "name": "external_team_id", "schema": { "type": "integer" }, "description": "The ID of the external team object. This is returned when creating an external team.", "required": true } ], "tags": [ "Integrations" ], "security": [ { "auth_token": [ "team:admin" ] } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/teams/{organization_id_or_slug}/{team_id_or_slug}/members/": { "get": { "operationId": "listTeamMembers", "description": "List all members on a team.\n\nThe response will not include members with pending invites.", "summary": "List a Team's Members", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Teams" ], "security": [ { "auth_token": [ "team:admin", "team:read", "team:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "externalUsers": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested" }, "role": { "type": "string", "description": "Deprecated. Use orgRole" }, "roleName": { "type": "string", "description": "Deprecated. Name of the member's organization role" }, "id": { "type": "string", "description": "Organization member ID" }, "email": { "type": "string", "description": "Email address of the member's user, or the invited email address if they have no account yet" }, "name": { "type": "string", "description": "Display name of the member's user, or their email address if they have no account yet" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "description": "The member's user" }, "orgRole": { "type": "string", "description": "ID of the member's organization role" }, "pending": { "type": "boolean", "description": "Whether the member has no user account linked yet, as with an invite that hasn't been accepted" }, "expired": { "type": "boolean", "description": "Whether the member's invite has expired" }, "flags": { "type": "object", "properties": { "idp:provisioned": { "type": "boolean", "description": "Whether the member is provisioned and managed through the organization's identity provider (SCIM)" }, "idp:role-restricted": { "type": "boolean", "description": "Whether the member's organization role is set by the identity provider through SCIM" }, "sso:linked": { "type": "boolean", "description": "Whether the member has linked their account to the organization's SSO provider" }, "sso:invalid": { "type": "boolean", "description": "Whether the member's SSO link is invalid" }, "member-limit:restricted": { "type": "boolean", "description": "Whether the member is restricted by the plan's member limit" }, "partnership:restricted": { "type": "boolean", "description": "Whether the member is managed by an active partnership and can't be changed until it ends" } }, "required": [ "idp:provisioned", "idp:role-restricted", "member-limit:restricted", "partnership:restricted", "sso:invalid", "sso:linked" ], "description": "Member flags" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the member was added or invited" }, "inviteStatus": { "enum": [ "approved", "requested_to_be_invited", "requested_to_join", null ], "type": "string", "nullable": true, "description": "Invite status" }, "inviterName": { "type": "string", "nullable": true, "description": "Name of the user who invited the member, or null" }, "teamRole": { "type": "string", "nullable": true, "description": "ID of the member's team role, or null if the member has the minimum team role from their organization role" }, "teamSlug": { "type": "string", "description": "Slug of the team" } }, "required": [ "dateCreated", "email", "expired", "flags", "id", "inviteStatus", "inviterName", "name", "orgRole", "pending", "teamRole", "teamSlug", "user" ] } }, "examples": { "ListTeamMembers": { "value": [ { "id": "57377908164", "email": "sirpenguin@antarcticarocks.com", "name": "Sir Penguin", "user": { "id": "280094367316", "name": "Sir Penguin", "username": "sirpenguin@antarcticarocks.com", "email": "sirpenguin@antarcticarocks.com", "avatarUrl": "https://secure.gravatar.com/avatar/16aeb26c5fdba335c7078e9e9ddb5149?s=32&d=mm", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2021-07-06T21:13:58.375239Z", "lastLogin": "2021-08-02T18:25:00.051182Z", "has2fa": false, "lastActive": "2021-08-02T21:32:18.836829Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "2153450836", "email": "sirpenguin@antarcticarocks.com", "is_verified": true } ], "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "canReset2fa": true }, "orgRole": "member", "pending": false, "expired": false, "flags": { "idp:provisioned": false, "idp:role-restricted": false, "sso:linked": false, "sso:invalid": false, "member-limit:restricted": false, "partnership:restricted": false }, "dateCreated": "2021-07-06T21:13:01.120263Z", "inviteStatus": "approved", "inviterName": "maininviter@antarcticarocks.com", "teamRole": "member", "teamSlug": "powerful-abolitionist" } ], "summary": "List Team Members" } } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/teams/{organization_id_or_slug}/{team_id_or_slug}/projects/": { "get": { "operationId": "listTeamProjects", "description": "Return a list of projects bound to a team.", "summary": "List a Team's Projects", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Teams" ], "security": [ { "auth_token": [ "project:admin", "project:read", "project:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "latestDeploys": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed" }, "options": { "type": "object", "additionalProperties": {}, "description": "Requested project options, keyed by option name. Only included when options are requested" }, "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "nullable": true, "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms seen in the project's events" }, "hasUserReports": { "type": "boolean", "description": "Whether the project has received user reports" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments seen in the project's events" }, "latestRelease": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ], "nullable": true, "description": "Latest release of the project" } }, "required": [ "access", "dateCreated", "environments", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "hasUserReports", "id", "isBookmarked", "isMember", "latestRelease", "name", "platform", "platforms", "slug", "team", "teams" ] } }, "examples": { "GetListOfTeam'sProjects": { "value": [ { "team": { "id": "2349234102", "name": "Prime Mover", "slug": "prime-mover" }, "teams": [ { "id": "2349234102", "name": "Prime Mover", "slug": "prime-mover" }, { "id": "47584447", "name": "Powerful Abolitionist", "slug": "powerful-abolitionist" } ], "id": "6758470122493650", "slug": "the-spoiled-yoghurt", "name": "The Spoiled Yoghurt", "isBookmarked": false, "isMember": true, "access": [ "project:read", "event:read", "team:read", "alerts:read", "org:read", "event:write", "project:releases", "member:read" ], "hasAccess": true, "dateCreated": "2023-03-29T15:25:21.344565Z", "environments": [ "production" ], "features": [ "custom-inbound-filters", "discard-groups", "minidump", "rate-limits", "servicehooks", "similarity-indexing", "similarity-indexing-v2", "similarity-view", "similarity-view-v2" ], "firstEvent": null, "firstTransactionEvent": true, "hasSessions": false, "hasProfiles": false, "hasReplays": false, "hasFlags": false, "hasMonitors": false, "hasFeedbacks": false, "hasNewFeedbacks": false, "hasMinifiedStackTrace": false, "hasInsightsHttp": true, "hasInsightsDb": false, "hasInsightsAssets": false, "hasInsightsAppStart": false, "hasInsightsScreenLoad": false, "hasInsightsVitals": false, "hasInsightsCaches": true, "hasInsightsQueues": true, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "platform": "node-express", "platforms": [], "latestRelease": null, "hasUserReports": false, "latestDeploys": null } ], "summary": "Get list of team's projects" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Team not found." } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "createTeamProject", "description": "Create a new project bound to a team.\n\n Note: If your organization has disabled member project creation, the `org:write` scope or the Team Admin role on the team is required.\n ", "summary": "Create a New Project", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "team_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the team the resource belongs to.", "required": true } ], "tags": [ "Projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "description": "The name for the project.", "maxLength": 50 }, "slug": { "type": "string", "nullable": true, "description": "Uniquely identifies a project and is used for the interface.\n If not provided, it is automatically generated from the name.", "maxLength": 100, "pattern": "^(?![0-9]+$)[a-z0-9_\\-]+$" }, "platform": { "type": "string", "nullable": true, "description": "The platform for the project." }, "default_rules": { "type": "boolean", "description": "\nDefaults to true where the behavior is to alert the user on every new\nissue. Setting this to false will turn this off and the user must create\ntheir own alerts to be notified of new issues.\n " } }, "required": [ "name" ] } } }, "required": true }, "security": [ { "auth_token": [ "project:admin", "project:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "latestDeploys": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed" }, "options": { "type": "object", "additionalProperties": {}, "description": "Requested project options, keyed by option name. Only included when options are requested" }, "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "nullable": true, "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms seen in the project's events" }, "hasUserReports": { "type": "boolean", "description": "Whether the project has received user reports" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments seen in the project's events" }, "latestRelease": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ], "nullable": true, "description": "Latest release of the project" } }, "required": [ "access", "dateCreated", "environments", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "hasUserReports", "id", "isBookmarked", "isMember", "latestRelease", "name", "platform", "platforms", "slug", "team", "teams" ] }, "examples": { "ProjectSuccessfullyCreated": { "value": { "team": { "id": "2349234102", "name": "Prime Mover", "slug": "prime-mover" }, "teams": [ { "id": "2349234102", "name": "Prime Mover", "slug": "prime-mover" }, { "id": "47584447", "name": "Powerful Abolitionist", "slug": "powerful-abolitionist" } ], "id": "6758470122493650", "slug": "the-spoiled-yoghurt", "name": "The Spoiled Yoghurt", "isBookmarked": false, "isMember": true, "access": [ "project:read", "event:read", "team:read", "alerts:read", "org:read", "event:write", "project:releases", "member:read" ], "hasAccess": true, "dateCreated": "2023-03-29T15:25:21.344565Z", "environments": [ "production" ], "features": [ "custom-inbound-filters", "discard-groups", "minidump", "rate-limits", "servicehooks", "similarity-indexing", "similarity-indexing-v2", "similarity-view", "similarity-view-v2" ], "firstEvent": null, "firstTransactionEvent": true, "hasSessions": false, "hasProfiles": false, "hasReplays": false, "hasFlags": false, "hasMonitors": false, "hasFeedbacks": false, "hasNewFeedbacks": false, "hasMinifiedStackTrace": false, "hasInsightsHttp": true, "hasInsightsDb": false, "hasInsightsAssets": false, "hasInsightsAppStart": false, "hasInsightsScreenLoad": false, "hasInsightsVitals": false, "hasInsightsCaches": true, "hasInsightsQueues": true, "hasInsightsAgentMonitoring": false, "hasInsightsMCP": false, "hasLogs": false, "hasTraceMetrics": false, "platform": "node-express", "platforms": [], "latestRelease": null, "hasUserReports": false, "latestDeploys": null }, "summary": "Project successfully created" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Team not found." }, "409": { "description": "A project with this slug already exists." } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/users/{user_id}/": { "get": { "operationId": "retrieveUserDetails", "description": "Return the authenticated user's account details, including email addresses,\ntwo-factor authenticators, SSO identities and preferences. Use `me` as the\n`user_id`.\n\nAny personal auth token or OAuth application token can call this endpoint for its\nown user, and no scope is required. Tokens can't read other users: requesting\nanother user's ID returns 403. Org auth tokens and integration tokens have no user\nand can't call it.", "summary": "Retrieve a User's Details", "parameters": [ { "in": "path", "name": "user_id", "schema": { "type": "string" }, "description": "The ID of the user, or `me` for the authenticated user.", "required": true } ], "tags": [ "Users" ], "security": [ { "auth_token": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" }, "permissions": { "type": "array", "items": { "type": "string" }, "description": "Sentry staff permissions granted to the user, such as users.admin. Empty for most users" }, "options": { "type": "object", "properties": { "theme": { "type": "string", "description": "UI theme: \"light\", \"dark\" or \"system\". Defaults to \"system\"" }, "language": { "type": "string", "description": "UI language code, such as `en`" }, "stacktraceOrder": { "enum": [ -1, 1, 2 ], "type": "integer", "description": "Stack trace frame order: -1 for the default (most recent first), 1 for most recent last, 2 for most recent first" }, "defaultIssueEvent": { "type": "string", "description": "Event shown by default on issue details: \"recommended\", \"latest\" or \"oldest\"" }, "timezone": { "type": "string", "description": "Time zone for displayed dates, such as `UTC`" }, "clock24Hours": { "type": "boolean", "description": "Whether times are shown in 24-hour format" }, "prefersIssueDetailsStreamlinedUI": { "type": "boolean", "nullable": true, "description": "Whether the user prefers the streamlined issue details UI, or null if they haven't chosen" } }, "required": [ "clock24Hours", "defaultIssueEvent", "language", "prefersIssueDetailsStreamlinedUI", "stacktraceOrder", "theme", "timezone" ], "description": "The user's preferences. Only included for the requesting user" }, "flags": { "type": "object", "properties": { "newsletter_consent_prompt": { "type": "boolean", "description": "Whether to ask the user for newsletter consent" } }, "required": [ "newsletter_consent_prompt" ], "description": "Account flags. Only included for the requesting user" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "permissions", "username" ] }, "examples": { "RetrieveYourUserDetails": { "value": { "id": "1", "name": "Jane Doe", "username": "jane@example.com", "email": "jane@example.com", "avatarUrl": "https://gravatar.com/avatar/0123456789abcdef0123456789abcdef?s=32&d=mm", "isActive": true, "isSuspended": false, "hasPasswordAuth": true, "isManaged": false, "dateJoined": "2023-03-01T17:42:12.547383Z", "lastLogin": "2024-07-16T15:36:46.048343Z", "has2fa": true, "lastActive": "2024-07-17T09:12:44.104915Z", "isSuperuser": false, "isStaff": false, "experiments": {}, "emails": [ { "id": "1", "email": "jane@example.com", "is_verified": true } ], "options": { "theme": "system", "language": "en", "stacktraceOrder": -1, "defaultIssueEvent": "recommended", "timezone": "UTC", "clock24Hours": false, "prefersIssueDetailsStreamlinedUI": null }, "flags": { "newsletter_consent_prompt": false }, "avatar": { "avatarType": "letter_avatar", "avatarUuid": null, "avatarUrl": null }, "identities": [], "authenticators": [ { "id": "1", "type": "totp", "name": "Authenticator App", "dateCreated": "2023-03-01T17:45:01.120941Z", "dateUsed": "2024-07-16T15:36:40.501876Z" } ], "permissions": [] }, "summary": "Retrieve your user details" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "control" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/tags/{key}/values/": { "get": { "tags": [ "Projects" ], "description": "Return a list of values associated with this key. The `query`\nparameter can be used to to perform a \"contains\" match on\nvalues. \n\nWhen [paginated](/api/pagination) can return at most 1000 values.", "operationId": "List a Tag's Values", "parameters": [ { "name": "organization_id_or_slug", "in": "path", "description": "The ID or slug of the organization.", "required": true, "schema": { "type": "string" } }, { "name": "project_id_or_slug", "in": "path", "description": "The ID or slug of the project.", "required": true, "schema": { "type": "string" } }, { "name": "key", "in": "path", "description": "The tag key to look up.", "required": true, "schema": { "type": "string" } }, { "name": "cursor", "in": "query", "required": false, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string", "description": "The display label of the tag value. For the `sentry:user` tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed." } } } }, "example": [ { "name": "mint_choco" } ] } } }, "403": { "description": "Forbidden" } }, "security": [ { "auth_token": [ "project:read" ] } ], "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/hooks/": { "get": { "tags": [ "Projects" ], "description": "Return a list of service hooks bound to a project.", "operationId": "List a Project's Service Hooks", "parameters": [ { "name": "organization_id_or_slug", "in": "path", "description": "The ID or slug of the organization the client keys belong to.", "required": true, "schema": { "type": "string" } }, { "name": "project_id_or_slug", "in": "path", "description": "The ID or slug of the project the client keys belong to.", "required": true, "schema": { "type": "string" } }, { "name": "cursor", "in": "query", "required": false, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "required": [ "dateCreated", "events", "id", "secret", "status", "url" ], "properties": { "dateCreated": { "type": "string", "description": "When the service hook was created (ISO 8601)." }, "events": { "type": "array", "description": "The events the service hook is subscribed to, such as `event.alert` and `event.created`.", "items": { "type": "string" } }, "id": { "type": "string", "description": "The ID of the service hook." }, "secret": { "type": "string", "description": "The secret used to sign the requests that Sentry sends to the hook URL." }, "status": { "type": "string", "description": "The status of the service hook, such as `active` or `disabled`." }, "url": { "type": "string", "description": "The URL that receives the service hook requests." } } } }, "example": [ { "dateCreated": "2018-11-06T21:20:08.143Z", "events": [ "event.alert", "event.created" ], "id": "4f9d73e63b7144ecb8944c41620a090b", "secret": "8fcac28aaa4c4f5fa572b61d40a8e084364db25fd37449c299e5a41c0504cbc2", "status": "active", "url": "https://empowerplant.io/sentry-hook" } ] } } }, "403": { "description": "You do not have that feature enabled" } }, "security": [ { "auth_token": [ "project:read" ] } ], "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "tags": [ "Projects" ], "description": "Register a new service hook on a project.\n\nEvents include:\n\n- event.alert: An alert is generated for an event (via rules).\n- event.created: A new event has been processed.\n\nThis endpoint requires the 'servicehooks' feature to be enabled for your project.", "operationId": "Register a New Service Hook", "parameters": [ { "name": "organization_id_or_slug", "in": "path", "description": "The ID or slug of the organization the client keys belong to.", "required": true, "schema": { "type": "string" } }, { "name": "project_id_or_slug", "in": "path", "description": "The ID or slug of the project the client keys belong to.", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "required": [ "url", "events" ], "type": "object", "properties": { "url": { "type": "string", "description": "The URL for the webhook." }, "events": { "type": "array", "description": "The events to subscribe to.", "items": { "type": "string" } } } }, "example": { "url": "https://empowerplant.io/sentry-hook", "events": [ "event.alert", "event.created" ] } } }, "required": true }, "responses": { "201": { "description": "Success", "content": { "application/json": { "schema": { "type": "object", "required": [ "dateCreated", "events", "id", "secret", "status", "url" ], "properties": { "dateCreated": { "type": "string", "description": "When the service hook was created (ISO 8601)." }, "events": { "type": "array", "description": "The events the service hook is subscribed to, such as `event.alert` and `event.created`.", "items": { "type": "string" } }, "id": { "type": "string", "description": "The ID of the service hook." }, "secret": { "type": "string", "description": "The secret used to sign the requests that Sentry sends to the hook URL." }, "status": { "type": "string", "description": "The status of the service hook, such as `active` or `disabled`." }, "url": { "type": "string", "description": "The URL that receives the service hook requests." } } }, "example": { "dateCreated": "2018-11-06T21:20:08.143Z", "events": [ "event.alert", "event.created" ], "id": "4f9d73e63b7144ecb8944c41620a090b", "secret": "8fcac28aaa4c4f5fa572b61d40a8e084364db25fd37449c299e5a41c0504cbc2", "status": "active", "url": "https://empowerplant.io/sentry-hook" } } } }, "403": { "description": "You do not have that feature enabled" }, "404": { "description": "The requested resource does not exist" } }, "security": [ { "auth_token": [ "project:write" ] } ], "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/hooks/{hook_id}/": { "get": { "tags": [ "Projects" ], "description": "Return a service hook bound to a project.", "operationId": "Retrieve a Service Hook", "parameters": [ { "name": "organization_id_or_slug", "in": "path", "description": "The ID or slug of the organization the client keys belong to.", "required": true, "schema": { "type": "string" } }, { "name": "project_id_or_slug", "in": "path", "description": "The ID or slug of the project the client keys belong to.", "required": true, "schema": { "type": "string" } }, { "name": "hook_id", "in": "path", "description": "The GUID of the service hook.", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "object", "required": [ "dateCreated", "events", "id", "secret", "status", "url" ], "properties": { "dateCreated": { "type": "string", "description": "When the service hook was created (ISO 8601)." }, "events": { "type": "array", "description": "The events the service hook is subscribed to, such as `event.alert` and `event.created`.", "items": { "type": "string" } }, "id": { "type": "string", "description": "The ID of the service hook." }, "secret": { "type": "string", "description": "The secret used to sign the requests that Sentry sends to the hook URL." }, "status": { "type": "string", "description": "The status of the service hook, such as `active` or `disabled`." }, "url": { "type": "string", "description": "The URL that receives the service hook requests." } } }, "example": { "dateCreated": "2018-11-06T21:20:08.143Z", "events": [ "event.alert", "event.created" ], "id": "4f9d73e63b7144ecb8944c41620a090b", "secret": "8fcac28aaa4c4f5fa572b61d40a8e084364db25fd37449c299e5a41c0504cbc2", "status": "active", "url": "https://empowerplant.io/sentry-hook" } } } }, "403": { "description": "Forbidden" }, "404": { "description": "The requested resource does not exist" } }, "security": [ { "auth_token": [ "project:read" ] } ], "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "tags": [ "Projects" ], "description": "Update a service hook.", "operationId": "Update a Service Hook", "parameters": [ { "name": "organization_id_or_slug", "in": "path", "description": "The ID or slug of the organization the client keys belong to.", "required": true, "schema": { "type": "string" } }, { "name": "project_id_or_slug", "in": "path", "description": "The ID or slug of the project the client keys belong to.", "required": true, "schema": { "type": "string" } }, { "name": "hook_id", "in": "path", "description": "The GUID of the service hook.", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "required": [ "url", "events" ], "type": "object", "properties": { "url": { "type": "string", "description": "The URL for the webhook." }, "events": { "type": "array", "description": "The events to subscribe to.", "items": { "type": "string" } } } }, "example": { "url": "https://empowerplant.io/sentry-hook", "events": [ "event.alert", "event.created" ] } } }, "required": false }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "object", "required": [ "dateCreated", "events", "id", "secret", "status", "url" ], "properties": { "dateCreated": { "type": "string", "description": "When the service hook was created (ISO 8601)." }, "events": { "type": "array", "description": "The events the service hook is subscribed to, such as `event.alert` and `event.created`.", "items": { "type": "string" } }, "id": { "type": "string", "description": "The ID of the service hook." }, "secret": { "type": "string", "description": "The secret used to sign the requests that Sentry sends to the hook URL." }, "status": { "type": "string", "description": "The status of the service hook, such as `active` or `disabled`." }, "url": { "type": "string", "description": "The URL that receives the service hook requests." } } }, "example": { "dateCreated": "2018-11-06T21:20:08.143Z", "events": [ "event.alert", "event.created" ], "id": "4f9d73e63b7144ecb8944c41620a090b", "secret": "8fcac28aaa4c4f5fa572b61d40a8e084364db25fd37449c299e5a41c0504cbc2", "status": "active", "url": "https://empowerplant.io/sentry-hook" } } } }, "400": { "description": "Bad Input" }, "403": { "description": "Forbidden" }, "404": { "description": "The requested resource does not exist" } }, "security": [ { "auth_token": [ "project:write" ] } ], "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "tags": [ "Projects" ], "description": "Remove a service hook.", "operationId": "Remove a Service Hook", "parameters": [ { "name": "organization_id_or_slug", "in": "path", "description": "The ID or slug of the organization the client keys belong to.", "required": true, "schema": { "type": "string" } }, { "name": "project_id_or_slug", "in": "path", "description": "The ID or slug of the project the client keys belong to.", "required": true, "schema": { "type": "string" } }, { "name": "hook_id", "in": "path", "description": "The GUID of the service hook.", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "Success" }, "403": { "description": "Forbidden" }, "404": { "description": "The requested resource does not exist" } }, "security": [ { "auth_token": [ "project:admin" ] } ], "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/projects/{organization_id_or_slug}/{project_id_or_slug}/issues/": { "get": { "tags": [ "Events" ], "description": "**Deprecated**: This endpoint has been replaced with the [Organization Issues endpoint](/api/events/list-an-organizations-issues/) which\nsupports filtering on project and additional functionality.\n\nReturn a list of issues (groups) bound to a project. All parameters are supplied as query string parameters. \n\n A default query of ``is:unresolved`` is applied. To return results with other statuses send an new query value (i.e. ``?query=`` for all results).\n\nThe ``statsPeriod`` parameter can be used to select the timeline stats which should be present. Possible values are: ``\"\"`` (disable),``\"24h\"`` (default), ``\"14d\"``\n\nUser feedback items from the [User Feedback Widget](https://docs.sentry.io/product/user-feedback/#user-feedback-widget) are built off the issue platform, so to return a list of user feedback items for a specific project, filter for `issue.category:feedback`.", "operationId": "List a Project's Issues", "deprecated": true, "parameters": [ { "name": "organization_id_or_slug", "in": "path", "description": "The ID or slug of the organization the issues belong to.", "required": true, "schema": { "type": "string" } }, { "name": "project_id_or_slug", "in": "path", "description": "The ID or slug of the project the issues belong to.", "required": true, "schema": { "type": "string" } }, { "name": "statsPeriod", "in": "query", "description": "An optional stat period (can be one of `\"24h\"`, `\"14d\"`, and `\"\"`), defaults to \"24h\" if not provided.", "schema": { "type": "string" } }, { "name": "shortIdLookup", "in": "query", "description": "If this is set to `1` then short IDs are looked up by this function as well. This can cause the return value of the function to return an event issue of a different project which is why this is an opt-in.", "schema": { "type": "string", "enum": [ "1", "0" ] } }, { "name": "query", "in": "query", "description": "An optional Sentry structured search query. If not provided an implied `\"is:unresolved\"` is assumed.", "schema": { "type": "string" } }, { "name": "hashes", "in": "query", "description": "A list of hashes of groups to return. Is not compatible with 'query' parameter. The maximum number of hashes that can be sent is 100. If more are sent, only the first 100 will be used.", "schema": { "type": "string" } }, { "name": "sort", "in": "query", "description": "The sort order of the issues. Options include 'Last Seen' (`date`), 'First Seen' (`new`), 'Trends' (`trends`), 'Events' (`freq`), 'Users' (`user`), and 'Recommended' (`recommended`).", "schema": { "type": "string", "default": "date", "enum": [ "date", "new", "trends", "freq", "user", "recommended" ] } }, { "name": "limit", "in": "query", "description": "The maximum number of issues to return. The maximum is 100.", "schema": { "type": "integer", "default": 100 } }, { "name": "cursor", "in": "query", "required": false, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "required": [ "lastSeen", "numComments", "userCount", "culprit", "title", "id", "assignedTo", "logger", "stats", "type", "annotations", "metadata", "status", "subscriptionDetails", "isPublic", "hasSeen", "shortId", "shareId", "firstSeen", "count", "permalink", "level", "isSubscribed", "isBookmarked", "project", "statusDetails" ], "properties": { "annotations": { "type": "array", "description": "Annotations on the issue, such as links to external issues.", "items": { "type": "string" } }, "assignedTo": { "type": "object", "description": "The user or team the issue is assigned to. Null when the issue is unassigned.", "nullable": true, "required": [ "type", "id", "name" ], "properties": { "type": { "type": "string", "enum": [ "user", "team" ], "description": "Whether the assignee is a user or a team." }, "id": { "type": "string", "description": "The ID of the user or team." }, "name": { "type": "string", "description": "The display name of the user, or the slug of the team." }, "email": { "type": "string", "description": "The email address of the user. Only set for users." } } }, "count": { "type": "string", "description": "The total number of events in the issue." }, "culprit": { "type": "string", "description": "The function or module where the issue occurs." }, "firstSeen": { "type": "string", "description": "When the issue was first seen (ISO 8601)." }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred." }, "id": { "type": "string", "description": "The ID of the issue." }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue." }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly." }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue." }, "lastSeen": { "type": "string", "description": "When the issue was last seen (ISO 8601)." }, "level": { "type": "string", "description": "The severity level of the issue, such as `error` or `warning`." }, "logger": { "type": "string", "description": "The logger of the issue's events.", "nullable": true }, "metadata": { "description": "Metadata of the issue. Its keys depend on the issue type.", "oneOf": [ { "type": "object", "required": [ "filename", "type", "value" ], "properties": { "filename": { "type": "string", "description": "The file where the error was raised." }, "type": { "type": "string", "description": "The type of the error." }, "value": { "type": "string", "description": "The error message." } } }, { "type": "object", "required": [ "title" ], "properties": { "title": { "type": "string", "description": "The title of the issue." } } } ] }, "numComments": { "type": "integer", "description": "The number of comments on the issue." }, "permalink": { "type": "string", "description": "The URL of the issue in Sentry." }, "project": { "type": "object", "description": "The project the issue belongs to.", "properties": { "id": { "type": "string", "description": "The ID of the project." }, "name": { "type": "string", "description": "The name of the project." }, "slug": { "type": "string", "description": "The slug of the project." } } }, "shareId": { "type": "string", "description": "The ID used in the issue's public share URL. Null when the issue isn't shared.", "nullable": true }, "shortId": { "type": "string", "description": "The short ID of the issue, such as `PROJECT-1A`." }, "stats": { "type": "object", "description": "Event counts for the issue over time.", "properties": { "24h": { "type": "array", "items": { "type": "array", "items": { "type": "number" } }, "description": "Hourly event counts for the last 24 hours, as [timestamp, count] pairs." } } }, "status": { "type": "string", "description": "The status of the issue.", "enum": [ "resolved", "unresolved", "ignored" ] }, "statusDetails": { "type": "object", "description": "Details of the issue's status, such as when an ignore expires or which release resolves it. Empty when the status has no details.", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored." }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored." }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored." }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount." }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount." }, "actor": { "type": "object", "nullable": true, "description": "User who ignored or resolved the issue.", "properties": { "id": { "type": "string", "description": "ID of the user." }, "name": { "type": "string", "description": "Name of the user." }, "username": { "type": "string", "description": "Username of the user." }, "email": { "type": "string", "description": "Email address of the user." } } }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release." }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in." }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in." }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed." }, "info": { "type": "object", "nullable": true, "description": "Reprocessing progress details.", "required": [ "dateCreated", "syncCount", "totalEvents" ], "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)." }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started." }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum." } } } } }, "subscriptionDetails": { "type": "object", "description": "Why the requesting user is subscribed to the issue. Null when there's no subscription.", "nullable": true, "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue." }, "reason": { "type": "string", "description": "Why the requesting user is subscribed, such as `commented`, `assigned`, `bookmarked`, `changed_status`, `mentioned` or `unknown`." } } }, "title": { "type": "string", "description": "The title of the issue." }, "type": { "type": "string", "description": "The event type of the issue, such as `error` or `default`." }, "userCount": { "type": "integer", "description": "The number of users affected by the issue." } } } }, "example": [ { "annotations": [], "assignedTo": null, "count": "1", "culprit": "raven.scripts.runner in main", "firstSeen": "2018-11-06T21:19:55Z", "hasSeen": false, "id": "1", "isBookmarked": false, "isPublic": false, "isSubscribed": true, "lastSeen": "2018-11-06T21:19:55Z", "level": "error", "logger": null, "metadata": { "title": "This is an example Python exception" }, "numComments": 0, "permalink": "https://sentry.io/the-interstellar-jurisdiction/pump-station/issues/1/", "project": { "id": "2", "name": "Pump Station", "slug": "pump-station" }, "shareId": null, "shortId": "PUMP-STATION-1", "stats": { "24h": [ [ 1541455200, 473 ], [ 1541458800, 914 ], [ 1541462400, 991 ], [ 1541466000, 925 ], [ 1541469600, 881 ], [ 1541473200, 182 ], [ 1541476800, 490 ], [ 1541480400, 820 ], [ 1541484000, 322 ], [ 1541487600, 836 ], [ 1541491200, 565 ], [ 1541494800, 758 ], [ 1541498400, 880 ], [ 1541502000, 677 ], [ 1541505600, 381 ], [ 1541509200, 814 ], [ 1541512800, 329 ], [ 1541516400, 446 ], [ 1541520000, 731 ], [ 1541523600, 111 ], [ 1541527200, 926 ], [ 1541530800, 772 ], [ 1541534400, 400 ], [ 1541538000, 943 ] ] }, "status": "unresolved", "statusDetails": {}, "subscriptionDetails": null, "title": "This is an example Python exception", "type": "default", "userCount": 0 } ] } } }, "403": { "description": "Forbidden" } }, "security": [ { "auth_token": [ "event:read" ] } ], "x-sentry-routing": { "silo": "unknown", "organizationParameter": "organization_id_or_slug" } }, "put": { "tags": [ "Events" ], "description": "Bulk mutate various attributes on issues. The list of issues to modify is given through the `id` query parameter. It is repeated for each issue that should be modified.\n\n- For non-status updates, the `id` query parameter is required.\n- For status updates, the `id` query parameter may be omitted\nfor a batch \"update all\" query.\n- To restrict a batch \"update all\" to issues with a given status,\nuse the `query` parameter, e.g. `query=is:resolved`.\n\nThe following attributes can be modified and are supplied as JSON object in the body:\n\nIf any IDs are out of scope this operation will succeed without any data mutation.", "operationId": "Bulk Mutate a List of Issues", "parameters": [ { "name": "organization_id_or_slug", "in": "path", "description": "The ID or slug of the organization the issues belong to.", "required": true, "schema": { "type": "string" } }, { "name": "project_id_or_slug", "in": "path", "description": "The ID or slug of the project the issues belong to.", "required": true, "schema": { "type": "string" } }, { "name": "id", "in": "query", "description": "A list of IDs of the issues to be mutated. This parameter shall be repeated for each issue. It is optional only if a status is mutated in which case an implicit update all is assumed.", "required": false, "schema": { "type": "integer" } }, { "name": "query", "in": "query", "description": "An optional Sentry structured search query that selects the issues to update when `id` is not provided. If not provided an implied `\"is:unresolved\"` is assumed. Use `is:` (e.g. `is:resolved`) to limit it to issues with that status.", "required": false, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "type": "string", "description": "The new status for the issues. Valid values are `\"resolved\"`, `\"resolvedInNextRelease\"`, `\"unresolved\"`, and `\"ignored\"`." }, "statusDetails": { "type": "object", "properties": { "inRelease": { "type": "string" }, "inNextRelease": { "type": "boolean" }, "inCommit": { "type": "string" }, "ignoreDuration": { "type": "integer" }, "ignoreCount": { "type": "integer" }, "ignoreWindow": { "type": "integer" }, "ignoreUserCount": { "type": "integer" }, "ignoreUserWindow": { "type": "integer" } }, "description": "Additional details about the resolution. Valid values are `\"inRelease\"`, `\"inNextRelease\"`, `\"inCommit\"`, `\"ignoreDuration\"`, `\"ignoreCount\"`, `\"ignoreWindow\"`, `\"ignoreUserCount\"`, and `\"ignoreUserWindow\"`." }, "ignoreDuration": { "type": "integer", "description": "The number of minutes to ignore this issue." }, "isPublic": { "type": "boolean", "description": "Sets the issue to public or private." }, "merge": { "type": "boolean", "description": "Allows to merge or unmerge different issues." }, "assignedTo": { "type": "string", "description": "The actor ID (or username) of the user or team that should be assigned to this issue." }, "hasSeen": { "type": "boolean", "description": "In case this API call is invoked with a user context this allows changing of the flag that indicates if the user has seen the event." }, "isBookmarked": { "type": "boolean", "description": "In case this API call is invoked with a user context this allows changing of the bookmark flag." } } }, "example": { "isPublic": false, "status": "unresolved" } } }, "required": true }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "object", "required": [ "isPublic", "status", "statusDetails" ], "properties": { "isPublic": { "type": "boolean", "description": "Whether the issues are shared publicly." }, "status": { "type": "string", "description": "The new status of the issues.", "enum": [ "resolved", "unresolved", "ignored" ] }, "statusDetails": { "type": "object", "description": "Details of the new status, such as the release that resolves the issues or when an ignore expires. Empty when the new status has no details.", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issues stop being ignored." }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issues stop being ignored." }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issues stop being ignored." }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount." }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount." }, "ignoreUntilEscalating": { "type": "boolean", "description": "Whether the issues stay ignored until they escalate." }, "actor": { "type": "object", "nullable": true, "description": "User who ignored or resolved the issues.", "properties": { "id": { "type": "string", "description": "ID of the user." }, "name": { "type": "string", "description": "Name of the user." }, "username": { "type": "string", "description": "Username of the user." }, "email": { "type": "string", "description": "Email address of the user." } } }, "inNextRelease": { "type": "boolean", "description": "Whether the issues are resolved in the next release." }, "inRelease": { "type": "string", "description": "Version of the release the issues are resolved in." }, "inCommit": { "type": "object", "description": "Commit the issues are resolved in.", "properties": { "id": { "type": "string", "description": "Commit SHA." }, "message": { "type": "string", "nullable": true, "description": "Commit message." }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made." } } } } } } }, "example": { "isPublic": false, "status": "unresolved", "statusDetails": {} } } } }, "400": { "description": "Bad Input" }, "403": { "description": "Forbidden" }, "404": { "description": "The requested resource does not exist" } }, "security": [ { "auth_token": [ "event:write" ] } ], "x-sentry-routing": { "silo": "unknown", "organizationParameter": "organization_id_or_slug" } }, "delete": { "tags": [ "Events" ], "description": "Permanently remove the given issues. The list of issues to modify is given through the `id` query parameter. It is repeated for each issue that should be removed.\n\nIf any IDs are out of scope this operation will succeed without any data mutation.", "operationId": "Bulk Remove a List of Issues", "parameters": [ { "name": "organization_id_or_slug", "in": "path", "description": "The ID or slug of the organization the issues belong to.", "required": true, "schema": { "type": "string" } }, { "name": "project_id_or_slug", "in": "path", "description": "The ID or slug of the project the issues belong to.", "required": true, "schema": { "type": "string" } }, { "name": "id", "in": "query", "description": "A list of IDs of the issues to be removed. This parameter shall be repeated for each issue, e.g. `?id=1&id=2&id=3`. If this parameter is not provided, it will attempt to remove the first 1000 issues.", "schema": { "type": "integer" } }, { "name": "query", "in": "query", "description": "An optional Sentry structured search query that selects the issues to remove when `id` is not provided. If not provided an implied `\"is:unresolved\"` is assumed. Use `is:` (e.g. `is:resolved`) to limit it to issues with that status.", "required": false, "schema": { "type": "string" } } ], "responses": { "204": { "description": "Success" }, "403": { "description": "Forbidden" }, "404": { "description": "Project not found" } }, "security": [ { "auth_token": [ "event:admin" ] } ], "x-sentry-routing": { "silo": "unknown", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/releases/{version}/commitfiles/": { "get": { "tags": [ "Releases" ], "description": "Retrieve files changed in a release's commits", "operationId": "Retrieve Files Changed in a Release's Commits", "parameters": [ { "name": "organization_id_or_slug", "in": "path", "description": "The ID or slug of the organization the release belongs to.", "required": true, "schema": { "type": "string" } }, { "name": "version", "in": "path", "description": "The version identifier of the release.", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "security": [ { "auth_token": [ "project:releases" ] } ], "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/sentry-app-installations/": { "get": { "tags": [ "Integration" ], "description": "Return a list of integration platform installations for a given organization.", "operationId": "List an Organization's Integration Platform Installations", "parameters": [ { "name": "organization_id_or_slug", "in": "path", "description": "The organization short name.", "required": true, "schema": { "type": "string" } }, { "name": "cursor", "in": "query", "required": false, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "required": [ "app", "organization", "uuid", "status" ], "properties": { "app": { "type": "object", "description": "Custom integration that's installed", "required": [ "uuid", "slug", "sentryAppId" ], "properties": { "uuid": { "type": "string", "description": "UUID of the custom integration" }, "slug": { "type": "string", "description": "Slug of the custom integration" }, "sentryAppId": { "type": "integer", "description": "ID of the custom integration" } } }, "organization": { "type": "object", "description": "Organization the integration is installed in", "required": [ "slug" ], "properties": { "slug": { "type": "string", "description": "Slug of the organization the integration is installed in" } } }, "uuid": { "type": "string", "description": "UUID of the installation" }, "status": { "type": "string", "description": "Status of the installation, such as pending or installed" } } } }, "example": [ { "app": { "uuid": "a9988ad6-meow-4905-bb93-f7cbf4c96bbb", "slug": "cat-75c19a", "sentryAppId": 1 }, "organization": { "slug": "sentry" }, "uuid": "01635075-m30w-4f96-8fc8-ff9680780a13", "status": "installed" } ] } } }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "security": [ { "auth_token": [ "org:read", "org:integrations" ] } ], "x-sentry-routing": { "silo": "control", "organizationParameter": "organization_id_or_slug" } } }, "/sentry-app-installations/{uuid}/external-issues/": { "post": { "tags": [ "Integration" ], "description": "Create or update an external issue from an integration platform integration.", "operationId": "Create or update an External Issue", "parameters": [ { "name": "uuid", "in": "path", "description": "The uuid of the integration platform integration.", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "required": [ "issueId", "webUrl", "project", "identifier" ], "type": "object", "properties": { "issueId": { "type": "integer", "description": "The ID of the Sentry issue to link the external issue to." }, "webUrl": { "type": "string", "description": "The URL of the external service to link the issue to." }, "project": { "type": "string", "description": "The external service's project." }, "identifier": { "type": "string", "description": "A unique identifier of the external issue." } } }, "example": { "issueId": 1, "webUrl": "https://somerandom.io/project/issue-id", "project": "ExternalProj", "identifier": "issue-1" } } }, "required": true }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "object", "required": [ "id", "issueId", "serviceType", "displayName", "webUrl" ], "properties": { "id": { "type": "string", "description": "ID of the external issue link" }, "issueId": { "type": "string", "description": "ID of the Sentry issue" }, "serviceType": { "type": "string", "description": "Slug of the custom integration that created the external issue" }, "displayName": { "type": "string", "description": "Display name of the external issue, such as ABC-123" }, "webUrl": { "type": "string", "description": "URL of the external issue" } } }, "example": { "id": "1", "issueId": "1", "serviceType": "testing", "displayName": "ExternalProj#issue-1", "webUrl": "https://somerandom.io/project/issue-id" } } } }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "security": [ { "auth_token": [ "event:write" ] } ], "x-sentry-routing": { "silo": "control" } } }, "/sentry-app-installations/{uuid}/external-issues/{external_issue_id}/": { "delete": { "tags": [ "Integration" ], "description": "Delete an external issue.", "operationId": "Delete an External Issue", "parameters": [ { "name": "uuid", "in": "path", "description": "The uuid of the integration platform integration.", "required": true, "schema": { "type": "string" } }, { "name": "external_issue_id", "in": "path", "description": "The ID of the external issue.", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "Success" }, "403": { "description": "Forbidden" }, "404": { "description": "External issue not found" }, "409": { "description": "This issue link is being updated. Try again." } }, "security": [ { "auth_token": [ "event:write", "event:admin" ] } ], "x-sentry-routing": { "silo": "control" } } }, "/organizations/{organization_id_or_slug}/spike-protections/": { "post": { "tags": [ "Projects" ], "description": "Enables Spike Protection feature for some of the projects within the organization.", "operationId": "Enable Spike Protection", "parameters": [ { "name": "organization_id_or_slug", "in": "path", "description": "The ID or slug of the organization the projects belong to", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Django Rest Framework serializer for incoming Spike Protection API payloads", "properties": { "projects": { "description": "Slugs of projects to enable Spike Protection for. Set to `$all` to enable Spike Protection for all the projects in the organization.", "type": "array", "items": { "type": "string" } } }, "required": [ "projects" ] } } }, "required": true }, "responses": { "201": { "description": "Success" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "security": [ { "auth_token": [ "project:read", "project:write", "project:admin" ] } ], "x-sentry-routing": { "silo": "unknown", "organizationParameter": "organization_id_or_slug" } }, "delete": { "tags": [ "Projects" ], "description": "Disables Spike Protection feature for some of the projects within the organization.", "operationId": "Disable Spike Protection", "parameters": [ { "name": "organization_id_or_slug", "in": "path", "description": "The ID or slug of the organization the projects belong to", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Django Rest Framework serializer for incoming Spike Protection API payloads", "properties": { "projects": { "description": "Slugs of projects to disable Spike Protection for. Set to `$all` to disable Spike Protection for all the projects in the organization.", "type": "array", "items": { "type": "string" } } }, "required": [ "projects" ] } } }, "required": true }, "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" } }, "security": [ { "auth_token": [ "project:read", "project:write", "project:admin" ] } ], "x-sentry-routing": { "silo": "unknown", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/issues/{issue_id}/": { "get": { "operationId": "getOrganizationIssue", "description": "Return details on an individual issue, including its basic stats, comment count, and\nuser-report count.", "summary": "Retrieve an Issue", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "expand", "schema": { "type": "array", "items": { "type": "string", "enum": [ "forecast", "inbox", "integrationIssues", "latestEventHasAttachments", "owners", "sentryAppIssues" ] } }, "description": "Additional data to include in the response." }, { "in": "query", "name": "collapse", "schema": { "type": "array", "items": { "type": "string", "enum": [ "release", "stats", "tags" ] } }, "description": "Fields to remove from the response to improve query performance." } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "event:admin", "event:read", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "isUnhandled": { "type": "boolean", "description": "Whether the issue includes unhandled events" }, "count": { "type": "string", "description": "Total number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "derivedData": { "type": "object", "properties": { "blocker": { "type": "string", "description": "Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr" }, "progress": { "type": "string", "description": "How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied" }, "status": { "type": "string", "description": "Status of the issue from its action log: open or closed" }, "viewCount": { "type": "integer", "description": "Number of times the issue was viewed" }, "hasOpenFixPr": { "type": "boolean", "description": "Whether an open pull request is linked to the issue" }, "isAssigned": { "type": "boolean", "description": "Whether the issue has an assignee" }, "hasRootCause": { "type": "boolean", "description": "Whether a root cause was found for the issue" }, "lastCompletedAutofixStep": { "type": "string", "description": "Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration" }, "lastProgressedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue's progress last advanced (ISO 8601)" }, "impact": { "type": "object", "properties": { "score": { "type": "number", "format": "double", "nullable": true, "description": "Estimated per-occurrence impact on the end user's capability from 0 to 100" }, "level": { "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "type": "string", "nullable": true, "description": "Impact level derived from the assessment score" }, "description": { "type": "string", "description": "Human-readable description of the capability affected by the issue" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string", "description": "Stable identifier for the evidence supporting this claim" }, "claim": { "type": "string", "description": "Concise explanation of what the cited evidence establishes" }, "source": { "type": "string", "description": "The category of evidence cited, such as an event, trace, replay, or log" } }, "required": [ "claim", "reference", "source" ] }, "description": "Evidence-backed claims supporting the impact assessment" }, "sourceEventId": { "type": "string", "description": "ID of the issue event used to generate the impact assessment" } }, "required": [ "citations", "description", "level", "score", "sourceEventId" ], "nullable": true, "description": "The issue's impact assessment, or null when no assessment is available" } }, "required": [ "blocker", "hasOpenFixPr", "hasRootCause", "isAssigned", "lastCompletedAutofixStep", "lastProgressedAt", "progress", "status", "viewCount" ], "description": "Additional data derived for the issue. Only included when requested with expand" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "shareId": { "type": "string", "nullable": true, "description": "ID used in the issue's public share URL. Null when the issue isn't shared" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "permalink": { "type": "string", "format": "uri", "description": "URL of the issue in Sentry" }, "logger": { "type": "string", "nullable": true, "description": "Logger of the issue's events" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "statusDetails": { "type": "object", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored" }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored (ISO 8601)" }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored" }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount" }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount" }, "actor": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who ignored or resolved the issue" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in" }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in" }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed" }, "info": { "type": "object", "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)" }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started" }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum" } }, "required": [ "dateCreated", "syncCount", "totalEvents" ], "nullable": true, "description": "Reprocessing progress details" } }, "description": "Details of the issue's status, such as when an ignore expires or which release resolves it" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "priority": { "enum": [ "low", "medium", "high", null ], "type": "string", "nullable": true, "description": "Priority of the issue: high, medium or low" }, "priorityLockedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the priority was last set manually, which stops automatic priority updates (ISO 8601)" }, "seerFixabilityScore": { "type": "number", "format": "double", "nullable": true, "description": "Seer's score for how likely the issue is to be fixable" }, "seerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When Seer Autofix was last triggered for the issue (ISO 8601)" }, "seerExplorerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601)" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "User or team the issue is assigned to" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "nullable": true, "description": "Why the requesting user is subscribed to the issue" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred" }, "annotations": { "type": "array", "items": { "type": "object", "properties": { "displayName": { "type": "string", "description": "Display name of the linked external issue" }, "url": { "type": "string", "description": "URL of the linked external issue" } }, "required": [ "displayName", "url" ] }, "description": "External issues linked to the issue" }, "firstRelease": { "anyOf": [ { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release started (ISO 8601)" }, "owner": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "Release owner" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its first event (ISO 8601)" }, "lastEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its most recent event (ISO 8601)" }, "currentProjectMeta": { "type": "object", "properties": { "sessionsLowerBound": { "type": "string", "nullable": true, "description": "Start of the release's sessions in the project (ISO 8601)" }, "sessionsUpperBound": { "type": "string", "nullable": true, "description": "End of the release's sessions in the project (ISO 8601)" }, "nextReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the next release in the project" }, "prevReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the previous release in the project" }, "firstReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the first release in the project" }, "lastReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the latest release in the project" } }, "nullable": true, "description": "Session bounds and neighboring release versions in the current project, when a project is requested" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "adoptionStages": { "type": "object", "additionalProperties": { "type": "object", "properties": { "stage": { "enum": [ "adopted", "low_adoption", "replaced" ], "type": "string", "description": "Adoption stage of the release" }, "adopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was adopted (ISO 8601)" }, "unadopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release stopped being adopted (ISO 8601)" } }, "required": [ "adopted", "stage", "unadopted" ] }, "nullable": true, "description": "Adoption stage of the release in each project, keyed by project slug" }, "id": { "type": "integer", "description": "Release ID" }, "version": { "type": "string", "description": "Version of the release" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "shortVersion": { "type": "string", "description": "Shortened release version" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "authors": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] } ] }, "description": "Authors of the release's commits" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "healthData": { "type": "object", "properties": { "durationP50": { "type": "number", "format": "double", "nullable": true, "description": "Median session duration in seconds" }, "durationP90": { "type": "number", "format": "double", "nullable": true, "description": "90th percentile session duration in seconds" }, "crashFreeUsers": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of users who didn't experience a crash" }, "crashFreeSessions": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of sessions that didn't crash" }, "totalUsers": { "type": "integer", "nullable": true, "description": "Total number of users in the release" }, "totalUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the release over the last 24 hours" }, "totalProjectUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the project over the last 24 hours" }, "totalSessions": { "type": "integer", "nullable": true, "description": "Total number of sessions in the release" }, "totalSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the release over the last 24 hours" }, "totalProjectSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the project over the last 24 hours" }, "adoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's users over the last 24 hours that were on the release" }, "sessionsAdoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's sessions over the last 24 hours that were on the release" }, "sessionsCrashed": { "type": "integer", "description": "Number of crashed sessions" }, "sessionsErrored": { "type": "integer", "description": "Number of sessions with errors" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "description": "Session or user counts over time, keyed by stats period" } }, "required": [ "hasHealthData", "sessionsCrashed", "sessionsErrored", "stats" ], "nullable": true, "description": "Release health data for the project. Only included when health data is requested" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released in the project (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When work on the release started (ISO 8601)" }, "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Platforms of the project" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data in the project" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release in the project" } }, "required": [ "hasHealthData", "id", "name", "newGroups", "platform", "platforms", "slug" ] }, "description": "Projects in the release" } }, "required": [ "authors", "commitCount", "data", "deployCount", "id", "newGroups", "projects", "shortVersion", "status", "version", "versionInfo" ] }, { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "First release the issue was seen in. Omitted when release is collapsed" }, "lastRelease": { "anyOf": [ { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release started (ISO 8601)" }, "owner": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "Release owner" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its first event (ISO 8601)" }, "lastEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its most recent event (ISO 8601)" }, "currentProjectMeta": { "type": "object", "properties": { "sessionsLowerBound": { "type": "string", "nullable": true, "description": "Start of the release's sessions in the project (ISO 8601)" }, "sessionsUpperBound": { "type": "string", "nullable": true, "description": "End of the release's sessions in the project (ISO 8601)" }, "nextReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the next release in the project" }, "prevReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the previous release in the project" }, "firstReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the first release in the project" }, "lastReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the latest release in the project" } }, "nullable": true, "description": "Session bounds and neighboring release versions in the current project, when a project is requested" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "adoptionStages": { "type": "object", "additionalProperties": { "type": "object", "properties": { "stage": { "enum": [ "adopted", "low_adoption", "replaced" ], "type": "string", "description": "Adoption stage of the release" }, "adopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was adopted (ISO 8601)" }, "unadopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release stopped being adopted (ISO 8601)" } }, "required": [ "adopted", "stage", "unadopted" ] }, "nullable": true, "description": "Adoption stage of the release in each project, keyed by project slug" }, "id": { "type": "integer", "description": "Release ID" }, "version": { "type": "string", "description": "Version of the release" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "shortVersion": { "type": "string", "description": "Shortened release version" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "authors": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] } ] }, "description": "Authors of the release's commits" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "healthData": { "type": "object", "properties": { "durationP50": { "type": "number", "format": "double", "nullable": true, "description": "Median session duration in seconds" }, "durationP90": { "type": "number", "format": "double", "nullable": true, "description": "90th percentile session duration in seconds" }, "crashFreeUsers": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of users who didn't experience a crash" }, "crashFreeSessions": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of sessions that didn't crash" }, "totalUsers": { "type": "integer", "nullable": true, "description": "Total number of users in the release" }, "totalUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the release over the last 24 hours" }, "totalProjectUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the project over the last 24 hours" }, "totalSessions": { "type": "integer", "nullable": true, "description": "Total number of sessions in the release" }, "totalSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the release over the last 24 hours" }, "totalProjectSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the project over the last 24 hours" }, "adoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's users over the last 24 hours that were on the release" }, "sessionsAdoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's sessions over the last 24 hours that were on the release" }, "sessionsCrashed": { "type": "integer", "description": "Number of crashed sessions" }, "sessionsErrored": { "type": "integer", "description": "Number of sessions with errors" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "description": "Session or user counts over time, keyed by stats period" } }, "required": [ "hasHealthData", "sessionsCrashed", "sessionsErrored", "stats" ], "nullable": true, "description": "Release health data for the project. Only included when health data is requested" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released in the project (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When work on the release started (ISO 8601)" }, "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Platforms of the project" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data in the project" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release in the project" } }, "required": [ "hasHealthData", "id", "name", "newGroups", "platform", "platforms", "slug" ] }, "description": "Projects in the release" } }, "required": [ "authors", "commitCount", "data", "deployCount", "id", "newGroups", "projects", "shortVersion", "status", "version", "versionInfo" ] }, { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Latest release the issue was seen in. Omitted when release is collapsed" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "uniqueValues": { "type": "integer", "nullable": true, "description": "Number of distinct values seen for the tag key" }, "totalValues": { "type": "integer", "nullable": true, "description": "Number of events counted for the tag key. For an issue tag, this is the issue's retained event count, including events without the tag" }, "topValues": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "nullable": true, "description": "Search query that matches events with the tag value. Only set for the user tag" }, "key": { "type": "string", "description": "Tag key, with the `sentry:` prefix removed from built-in keys" }, "name": { "type": "string", "nullable": true, "description": "Display label of the tag value. For the user tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed" }, "value": { "type": "string", "nullable": true, "description": "Tag value" }, "count": { "type": "integer", "nullable": true, "description": "Number of events with the tag value. Null for an empty value" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the tag value was last seen (ISO 8601). Null for an empty value" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the tag value was first seen (ISO 8601). Null for an empty value" } }, "required": [ "count", "firstSeen", "key", "lastSeen", "name", "value" ] }, "nullable": true, "description": "Most frequent values of the tag key, ordered by count" }, "key": { "type": "string", "description": "Tag key, with the `sentry:` prefix removed from built-in keys" }, "name": { "type": "string", "description": "Display label of the tag key" } }, "required": [ "key", "name" ] }, "description": "Tag keys seen on the issue's events, with their top values. Omitted when tags is collapsed" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "number", "format": "double" } } }, "description": "Event counts for the last 24 hours (hourly) and 30 days (daily), as [timestamp, count] pairs. Omitted when stats is collapsed" }, "inbox": { "type": "object", "properties": { "reason": { "type": "integer", "description": "Why the issue is in the inbox: 0 new, 1 unignored, 2 regression, 3 manual, 4 reprocessed, 5 escalating or 6 ongoing" }, "reason_details": { "type": "object", "properties": { "until": { "type": "string", "nullable": true, "description": "When the ignore that ended was set to expire (ISO 8601)" }, "count": { "type": "integer", "nullable": true, "description": "Number of occurrences the ignore that ended was set to wait for" }, "window": { "type": "integer", "nullable": true, "description": "Window in minutes for count" }, "user_count": { "type": "integer", "nullable": true, "description": "Number of affected users the ignore that ended was set to wait for" }, "user_window": { "type": "integer", "nullable": true, "description": "Window in minutes for user_count" } }, "required": [ "count", "until", "user_count", "user_window", "window" ], "nullable": true, "description": "Details of the ignore that ended when the issue came back to the inbox. Null otherwise" }, "date_added": { "type": "string", "format": "date-time", "description": "When the issue was added to the inbox (ISO 8601)" } }, "required": [ "date_added", "reason", "reason_details" ], "nullable": true, "description": "Why the issue is in the inbox. Only included when requested with expand" }, "owners": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "How the owner was found: suspectCommit, ownershipRule, codeowners or seerSuggested" }, "owner": { "type": "string", "description": "Owner as an actor identifier, such as user:1 or team:1" }, "date_added": { "type": "string", "format": "date-time", "description": "When the owner was suggested (ISO 8601)" } }, "required": [ "date_added", "owner", "type" ] }, "nullable": true, "description": "Suggested owners of the issue. Only included when requested with expand" }, "forecast": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "integer" }, "description": "Forecast daily event counts, starting on the day the forecast was generated" }, "date_added": { "type": "number", "format": "double", "description": "When the forecast was generated, as a Unix timestamp" } }, "required": [ "data", "date_added" ], "description": "Escalation forecast for the issue. Only included when requested with expand" }, "integrationIssues": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the external issue link in Sentry" }, "key": { "type": "string", "description": "Key of the issue in the integration, such as APP-123" }, "title": { "type": "string", "nullable": true, "description": "Title of the issue in the integration" }, "description": { "type": "string", "nullable": true, "description": "Description of the issue in the integration" }, "displayName": { "type": "string", "description": "Name of the issue to display" }, "integrationKey": { "type": "string", "description": "Provider of the integration, such as jira" }, "integrationName": { "type": "string", "description": "Name of the integration" } } }, "description": "External issues linked through integrations. Only included when requested with expand" }, "sentryAppIssues": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the external issue link" }, "issueId": { "type": "string", "description": "ID of the Sentry issue" }, "serviceType": { "type": "string", "description": "Slug of the custom integration that created the external issue" }, "displayName": { "type": "string", "description": "Display name of the external issue, such as ABC-123" }, "webUrl": { "type": "string", "description": "URL of the external issue" } }, "required": [ "displayName", "id", "issueId", "serviceType", "webUrl" ] }, "description": "External issues linked through Sentry apps. Only included when requested with expand" }, "latestEventHasAttachments": { "type": "boolean", "description": "Whether the issue's latest event has attachments. Only included when requested with expand" }, "activity": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "assigned" ] }, "data": { "type": "object", "properties": { "assignee": { "nullable": true, "type": "string", "description": "ID of the user or team the issue was assigned to" }, "assigneeEmail": { "nullable": true, "type": "string", "description": "Email of the user the issue was assigned to" }, "assigneeName": { "nullable": true, "type": "string", "description": "Name of the user or team the issue was assigned to" }, "assigneeType": { "nullable": true, "type": "string", "description": "What the issue was assigned to: user or team" }, "integration": { "nullable": true, "type": "string", "description": "What assigned the issue, such as codeowners or projectOwnership" }, "rule": { "nullable": true, "type": "string", "description": "Ownership rule that assigned the issue" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "auto_set_ongoing" ] }, "data": { "type": "object", "properties": { "after_days": { "nullable": true, "type": "integer", "description": "Days after which the issue became ongoing" }, "manually": { "type": "boolean", "description": "Whether a user marked the issue reviewed, rather than time passing" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "create_issue" ] }, "data": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the external issue" }, "provider": { "type": "string", "description": "Integration provider, such as Jira or GitHub" }, "location": { "type": "string", "description": "URL of the external issue" }, "label": { "type": "string", "description": "Label of the external issue, such as PROJ-123" }, "new": { "nullable": true, "type": "boolean", "description": "Whether the external issue was created, rather than linked" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "deleted_attachment" ] }, "data": { "type": "object", "maxProperties": 0, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "first_seen" ] }, "data": { "type": "object", "properties": { "priority": { "type": "string", "nullable": true, "enum": [ "high", "medium", "low", null ], "description": "Priority the issue was created with" } }, "required": [ "priority" ], "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "impact_assessment" ] }, "data": { "type": "object", "properties": { "score": { "type": "number", "nullable": true, "description": "Impact score from 0 to 100" }, "level": { "type": "string", "nullable": true, "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "description": "Impact level that the score falls in" }, "description": { "type": "string", "description": "What the impact is" }, "citations": { "type": "array", "description": "Evidence for the assessment", "items": { "type": "object", "properties": { "claim": { "type": "string", "description": "What is claimed" }, "reference": { "type": "string", "description": "What backs it" }, "source": { "type": "string", "description": "Where it comes from" } }, "required": [ "claim", "reference", "source" ] } }, "sourceEventId": { "type": "string", "description": "ID of the event the assessment is based on" } }, "required": [ "score", "level", "description", "citations", "sourceEventId" ], "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "investigation_linked" ] }, "data": { "type": "object", "properties": { "investigation": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the investigation" }, "title": { "type": "string", "description": "Investigation title" }, "status": { "type": "string", "enum": [ "active", "archived" ], "description": "Whether the investigation is archived" } }, "required": [ "id", "title", "status" ], "nullable": true, "description": "The investigation that linked the issue, or null once it's deleted" }, "hypothesisId": { "type": "string", "description": "ID of the hypothesis" }, "hypothesisStatement": { "type": "string", "description": "The confirmed hypothesis whose evidence named the issue" }, "reason": { "type": "string", "nullable": true, "description": "Why the evidence links the issue" } }, "required": [ "investigation", "hypothesisId", "hypothesisStatement", "reason" ], "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "mark_reviewed" ] }, "data": { "type": "object", "maxProperties": 0, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "merge" ] }, "data": { "type": "object", "properties": { "issues": { "type": "array", "description": "Issues merged into this one", "items": { "type": "object", "properties": { "id": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the merged issue" } }, "required": [ "id" ] } } }, "required": [ "issues" ], "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "note" ] }, "data": { "type": "object", "properties": { "text": { "type": "string", "description": "Text of the comment, in Markdown" }, "comment_id": { "type": "integer", "description": "ID of the comment" }, "mentions": { "type": "array", "items": { "type": "object", "description": "A Sentry user @mentioned by an activity, resolved from the stored id ref.", "properties": { "name": { "type": "string", "description": "Display name of the mentioned user" }, "email": { "type": "string", "format": "email", "description": "Email of the mentioned user" }, "username": { "type": "string", "description": "Username of the mentioned user" } }, "required": [ "email", "name", "username" ] }, "description": "Users the comment mentions" } }, "required": [ "text" ], "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "pull_request_closed" ] }, "data": { "type": "object", "properties": { "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "The pull request" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "pull_request_merged" ] }, "data": { "type": "object", "properties": { "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "The pull request" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "pull_request_reopened" ] }, "data": { "type": "object", "properties": { "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "The pull request" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "pull_request_unlinked" ] }, "data": { "type": "object", "properties": { "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "The pull request" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "referenced_in_commit" ] }, "data": { "type": "object", "properties": { "commit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" }, "releases": { "type": "array", "items": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" }, "shortVersion": { "type": "string", "description": "Short version of the release" }, "ref": { "type": "string", "nullable": true, "description": "Commit ref of the release" }, "url": { "type": "string", "nullable": true, "description": "URL of the release" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the release was created (ISO 8601)" } }, "required": [ "dateCreated", "dateReleased", "ref", "shortVersion", "url", "version" ] }, "description": "Releases that contain the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "releases", "suspectCommitType" ], "nullable": true, "description": "The commit" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "reprocess" ] }, "data": { "type": "object", "properties": { "eventCount": { "nullable": true, "type": "integer", "description": "Number of events reprocessed" }, "oldGroupId": { "nullable": true, "type": "integer", "description": "ID of the issue the events were reprocessed from" }, "newGroupId": { "nullable": true, "type": "integer", "description": "ID of the issue the events were reprocessed into" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_coding_completed" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" }, "changes": { "nullable": true, "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] } }, "description": "Code changes that Seer made" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_coding_started" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_iteration_completed" ] }, "data": { "type": "object", "properties": { "run_id": { "type": "integer", "description": "ID of the Seer run" }, "iteration_index": { "type": "integer", "description": "Number of the iteration" }, "pull_requests": { "type": "array", "description": "Pull requests that Seer opened or updated", "items": { "type": "object", "properties": { "provider": { "type": "string", "description": "Code host, such as github" }, "repo_name": { "type": "string", "description": "Repository, such as owner/repo" }, "pull_request": { "type": "object", "description": "The pull request", "properties": { "pr_number": { "type": "integer", "description": "Number of the pull request" }, "pr_url": { "type": "string", "description": "URL of the pull request" } } } } } } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_iteration_started" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" }, "referrer": { "nullable": true, "type": "string", "description": "What started the Autofix run, such as api.web or slack" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_pr_created" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" }, "pull_requests": { "type": "array", "description": "Pull requests that Seer opened or updated", "items": { "type": "object", "properties": { "provider": { "type": "string", "description": "Code host, such as github" }, "repo_name": { "type": "string", "description": "Repository, such as owner/repo" }, "pull_request": { "type": "object", "description": "The pull request", "properties": { "pr_number": { "type": "integer", "description": "Number of the pull request" }, "pr_url": { "type": "string", "description": "URL of the pull request" } } } } }, "nullable": true } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_pr_ready_for_review" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" }, "pull_requests": { "type": "array", "description": "Pull requests that Seer opened or updated", "items": { "type": "object", "properties": { "provider": { "type": "string", "description": "Code host, such as github" }, "repo_name": { "type": "string", "description": "Repository, such as owner/repo" }, "pull_request": { "type": "object", "description": "The pull request", "properties": { "pr_number": { "type": "integer", "description": "Number of the pull request" }, "pr_url": { "type": "string", "description": "URL of the pull request" } } } } }, "nullable": true } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_rca_completed" ] }, "data": { "type": "object", "properties": { "run_id": { "anyOf": [ { "type": "integer" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "ID of the Seer run" }, "summary": { "nullable": true, "type": "string", "description": "One-line summary of what Seer found" }, "root_cause": { "nullable": true, "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] }, "description": "Root cause that Seer found" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_rca_started" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_solution_completed" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" }, "solution": { "nullable": true, "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } } } ] }, "description": "Solution that Seer proposed" }, "summary": { "nullable": true, "type": "string", "description": "One-line summary of what Seer found" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_solution_started" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_stopped" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" }, "reason": { "nullable": true, "description": "Why Seer stopped instead of fixing the issue", "type": "string" }, "suggestion": { "nullable": true, "description": "What Seer suggests doing instead", "type": "string" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_escalating" ] }, "data": { "type": "object", "properties": { "event_id": { "nullable": true, "type": "string", "description": "ID of the event that caused the change" }, "forecast": { "nullable": true, "type": "integer", "description": "Forecast of the issue's daily events when it escalated" }, "expired_snooze": { "type": "object", "nullable": true, "description": "The archive conditions that expired when the issue escalated", "properties": { "count": { "type": "integer", "nullable": true, "description": "Event count condition" }, "until": { "type": "string", "nullable": true, "description": "Date condition" }, "user_count": { "type": "integer", "nullable": true, "description": "User count condition" }, "user_window": { "type": "integer", "nullable": true, "description": "Minutes over which user_count is counted" }, "window": { "type": "integer", "nullable": true, "description": "Minutes over which count is counted" } } } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_ignored" ] }, "data": { "type": "object", "properties": { "ignoreCount": { "nullable": true, "type": "integer", "description": "Number of events after which the issue is unarchived" }, "ignoreDuration": { "nullable": true, "type": "integer", "description": "Minutes the issue is archived for" }, "ignoreUntil": { "nullable": true, "type": "string", "description": "When the issue is unarchived (ISO 8601)" }, "ignoreUserCount": { "nullable": true, "type": "integer", "description": "Number of affected users after which the issue is unarchived" }, "ignoreUserWindow": { "nullable": true, "type": "integer", "description": "Minutes over which ignoreUserCount is counted" }, "ignoreWindow": { "nullable": true, "type": "integer", "description": "Minutes over which ignoreCount is counted" }, "ignoreUntilEscalating": { "nullable": true, "type": "boolean", "description": "Whether the issue is archived until it escalates" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_priority" ] }, "data": { "type": "object", "properties": { "priority": { "type": "string", "description": "New priority of the issue: high, medium or low" }, "reason": { "nullable": true, "type": "string", "description": "Why the priority changed, such as escalating or ongoing" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_private" ] }, "data": { "type": "object", "maxProperties": 0, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_public" ] }, "data": { "type": "object", "maxProperties": 0, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_regression" ] }, "data": { "type": "object", "properties": { "event_id": { "nullable": true, "type": "string", "description": "ID of the event that caused the change" }, "version": { "nullable": true, "type": "string", "description": "Version of the release" }, "event_type": { "type": "string", "description": "Type of the event that regressed" }, "follows_semver": { "type": "boolean", "description": "Whether the project's releases follow semantic versioning" }, "resolved_in_version": { "type": "string", "description": "Release the issue was resolved in before it regressed" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_resolved" ] }, "data": { "type": "object", "properties": { "integration_id": { "type": "integer", "description": "ID of the integration that changed the status, when an integration did" }, "provider": { "type": "string", "description": "Name of the integration provider, such as Jira" }, "provider_key": { "type": "string", "description": "Key of the integration provider, such as jira" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_resolved_by_age" ] }, "data": { "type": "object", "properties": { "age": { "nullable": true, "type": "integer", "description": "Hours without events after which the issue resolved" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_resolved_in_commit" ] }, "data": { "type": "object", "properties": { "commit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" }, "releases": { "type": "array", "items": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" }, "shortVersion": { "type": "string", "description": "Short version of the release" }, "ref": { "type": "string", "nullable": true, "description": "Commit ref of the release" }, "url": { "type": "string", "nullable": true, "description": "URL of the release" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the release was created (ISO 8601)" } }, "required": [ "dateCreated", "dateReleased", "ref", "shortVersion", "url", "version" ] }, "description": "Releases that contain the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "releases", "suspectCommitType" ], "nullable": true, "description": "The commit" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_resolved_in_pull_request" ] }, "data": { "type": "object", "properties": { "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "The pull request" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_resolved_in_release" ] }, "data": { "type": "object", "properties": { "version": { "nullable": true, "type": "string", "description": "Version of the release" }, "current_release_version": { "nullable": true, "type": "string", "description": "Latest release when the issue was resolved, for semver releases" }, "commit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" }, "releases": { "type": "array", "items": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" }, "shortVersion": { "type": "string", "description": "Short version of the release" }, "ref": { "type": "string", "nullable": true, "description": "Commit ref of the release" }, "url": { "type": "string", "nullable": true, "description": "URL of the release" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the release was created (ISO 8601)" } }, "required": [ "dateCreated", "dateReleased", "ref", "shortVersion", "url", "version" ] }, "description": "Releases that contain the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "releases", "suspectCommitType" ], "nullable": true, "description": "The commit" }, "integration_id": { "type": "integer", "description": "ID of the integration that changed the status, when an integration did" }, "provider": { "type": "string", "description": "Name of the integration provider, such as Jira" }, "provider_key": { "type": "string", "description": "Key of the integration provider, such as jira" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue resolves in the next release" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_unresolved" ] }, "data": { "type": "object", "properties": { "event_id": { "nullable": true, "type": "string", "description": "ID of the event that caused the change" }, "integration_id": { "type": "integer", "description": "ID of the integration that changed the status, when an integration did" }, "provider": { "type": "string", "description": "Name of the integration provider, such as Jira" }, "provider_key": { "type": "string", "description": "Key of the integration provider, such as jira" }, "forecast": { "type": "integer", "description": "Forecast of the issue's daily events when it escalated" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "trigger_autofix" ] }, "data": { "type": "object", "properties": { "referrer": { "nullable": true, "type": "string", "description": "What started the Autofix run, such as api.web or slack" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "unassigned" ] }, "data": { "type": "object", "maxProperties": 0, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "unlink_external_issue" ] }, "data": { "description": "Details of the activity, which depend on type", "type": "object", "required": [ "provider", "external_issue_key" ], "properties": { "provider": { "type": "string", "description": "Integration provider, such as Jira or GitHub" }, "external_issue_key": { "type": "string", "description": "Key of the external issue, such as PROJ-123" } } }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "unlink_platform_external_issue" ] }, "data": { "description": "Details of the activity, which depend on type", "type": "object", "required": [ "service_type", "display_name", "web_url" ], "properties": { "service_type": { "type": "string", "description": "Slug of the Sentry App that owns the external issue" }, "display_name": { "type": "string", "description": "Display name of the external issue" }, "web_url": { "type": "string", "description": "URL of the external issue" } } }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "unmerge_destination" ] }, "data": { "type": "object", "properties": { "fingerprints": { "type": "array", "items": { "type": "string" }, "description": "Fingerprints" }, "source": { "type": "object", "properties": { "isUnhandled": { "type": "boolean", "description": "Whether the issue includes unhandled events" }, "count": { "type": "string", "description": "Total number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "derivedData": { "type": "object", "properties": { "blocker": { "type": "string", "description": "Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr" }, "progress": { "type": "string", "description": "How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied" }, "status": { "type": "string", "description": "Status of the issue from its action log: open or closed" }, "viewCount": { "type": "integer", "description": "Number of times the issue was viewed" }, "hasOpenFixPr": { "type": "boolean", "description": "Whether an open pull request is linked to the issue" }, "isAssigned": { "type": "boolean", "description": "Whether the issue has an assignee" }, "hasRootCause": { "type": "boolean", "description": "Whether a root cause was found for the issue" }, "lastCompletedAutofixStep": { "type": "string", "description": "Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration" }, "lastProgressedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue's progress last advanced (ISO 8601)" }, "impact": { "type": "object", "properties": { "score": { "type": "number", "format": "double", "nullable": true, "description": "Estimated per-occurrence impact on the end user's capability from 0 to 100" }, "level": { "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "type": "string", "nullable": true, "description": "Impact level derived from the assessment score" }, "description": { "type": "string", "description": "Human-readable description of the capability affected by the issue" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string", "description": "Stable identifier for the evidence supporting this claim" }, "claim": { "type": "string", "description": "Concise explanation of what the cited evidence establishes" }, "source": { "type": "string", "description": "The category of evidence cited, such as an event, trace, replay, or log" } }, "required": [ "claim", "reference", "source" ] }, "description": "Evidence-backed claims supporting the impact assessment" }, "sourceEventId": { "type": "string", "description": "ID of the issue event used to generate the impact assessment" } }, "required": [ "citations", "description", "level", "score", "sourceEventId" ], "nullable": true, "description": "The issue's impact assessment, or null when no assessment is available" } }, "required": [ "blocker", "hasOpenFixPr", "hasRootCause", "isAssigned", "lastCompletedAutofixStep", "lastProgressedAt", "progress", "status", "viewCount" ], "description": "Additional data derived for the issue. Only included when requested with expand" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "shareId": { "type": "string", "nullable": true, "description": "ID used in the issue's public share URL. Null when the issue isn't shared" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "permalink": { "type": "string", "format": "uri", "description": "URL of the issue in Sentry" }, "logger": { "type": "string", "nullable": true, "description": "Logger of the issue's events" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "statusDetails": { "type": "object", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored" }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored (ISO 8601)" }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored" }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount" }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount" }, "actor": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who ignored or resolved the issue" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in" }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in" }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed" }, "info": { "type": "object", "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)" }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started" }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum" } }, "required": [ "dateCreated", "syncCount", "totalEvents" ], "nullable": true, "description": "Reprocessing progress details" } }, "description": "Details of the issue's status, such as when an ignore expires or which release resolves it" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "priority": { "enum": [ "low", "medium", "high", null ], "type": "string", "nullable": true, "description": "Priority of the issue: high, medium or low" }, "priorityLockedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the priority was last set manually, which stops automatic priority updates (ISO 8601)" }, "seerFixabilityScore": { "type": "number", "format": "double", "nullable": true, "description": "Seer's score for how likely the issue is to be fixable" }, "seerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When Seer Autofix was last triggered for the issue (ISO 8601)" }, "seerExplorerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601)" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "User or team the issue is assigned to" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "nullable": true, "description": "Why the requesting user is subscribed to the issue" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred" }, "annotations": { "type": "array", "items": { "type": "object", "properties": { "displayName": { "type": "string", "description": "Display name of the linked external issue" }, "url": { "type": "string", "description": "URL of the linked external issue" } }, "required": [ "displayName", "url" ] }, "description": "External issues linked to the issue" } }, "required": [ "annotations", "assignedTo", "culprit", "hasSeen", "id", "isBookmarked", "isPublic", "isSubscribed", "issueCategory", "issueType", "level", "logger", "metadata", "numComments", "permalink", "platform", "priority", "priorityLockedAt", "project", "seerAutofixLastTriggered", "seerExplorerAutofixLastTriggered", "seerFixabilityScore", "shareId", "shortId", "status", "statusDetails", "subscriptionDetails", "substatus", "title", "type" ], "nullable": true, "description": "Issue the events moved from" } }, "required": [ "fingerprints" ], "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "unmerge_source" ] }, "data": { "type": "object", "properties": { "fingerprints": { "type": "array", "items": { "type": "string" }, "description": "Fingerprints" }, "destination": { "type": "object", "properties": { "isUnhandled": { "type": "boolean", "description": "Whether the issue includes unhandled events" }, "count": { "type": "string", "description": "Total number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "derivedData": { "type": "object", "properties": { "blocker": { "type": "string", "description": "Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr" }, "progress": { "type": "string", "description": "How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied" }, "status": { "type": "string", "description": "Status of the issue from its action log: open or closed" }, "viewCount": { "type": "integer", "description": "Number of times the issue was viewed" }, "hasOpenFixPr": { "type": "boolean", "description": "Whether an open pull request is linked to the issue" }, "isAssigned": { "type": "boolean", "description": "Whether the issue has an assignee" }, "hasRootCause": { "type": "boolean", "description": "Whether a root cause was found for the issue" }, "lastCompletedAutofixStep": { "type": "string", "description": "Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration" }, "lastProgressedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue's progress last advanced (ISO 8601)" }, "impact": { "type": "object", "properties": { "score": { "type": "number", "format": "double", "nullable": true, "description": "Estimated per-occurrence impact on the end user's capability from 0 to 100" }, "level": { "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "type": "string", "nullable": true, "description": "Impact level derived from the assessment score" }, "description": { "type": "string", "description": "Human-readable description of the capability affected by the issue" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string", "description": "Stable identifier for the evidence supporting this claim" }, "claim": { "type": "string", "description": "Concise explanation of what the cited evidence establishes" }, "source": { "type": "string", "description": "The category of evidence cited, such as an event, trace, replay, or log" } }, "required": [ "claim", "reference", "source" ] }, "description": "Evidence-backed claims supporting the impact assessment" }, "sourceEventId": { "type": "string", "description": "ID of the issue event used to generate the impact assessment" } }, "required": [ "citations", "description", "level", "score", "sourceEventId" ], "nullable": true, "description": "The issue's impact assessment, or null when no assessment is available" } }, "required": [ "blocker", "hasOpenFixPr", "hasRootCause", "isAssigned", "lastCompletedAutofixStep", "lastProgressedAt", "progress", "status", "viewCount" ], "description": "Additional data derived for the issue. Only included when requested with expand" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "shareId": { "type": "string", "nullable": true, "description": "ID used in the issue's public share URL. Null when the issue isn't shared" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "permalink": { "type": "string", "format": "uri", "description": "URL of the issue in Sentry" }, "logger": { "type": "string", "nullable": true, "description": "Logger of the issue's events" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "statusDetails": { "type": "object", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored" }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored (ISO 8601)" }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored" }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount" }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount" }, "actor": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who ignored or resolved the issue" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in" }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in" }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed" }, "info": { "type": "object", "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)" }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started" }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum" } }, "required": [ "dateCreated", "syncCount", "totalEvents" ], "nullable": true, "description": "Reprocessing progress details" } }, "description": "Details of the issue's status, such as when an ignore expires or which release resolves it" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "priority": { "enum": [ "low", "medium", "high", null ], "type": "string", "nullable": true, "description": "Priority of the issue: high, medium or low" }, "priorityLockedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the priority was last set manually, which stops automatic priority updates (ISO 8601)" }, "seerFixabilityScore": { "type": "number", "format": "double", "nullable": true, "description": "Seer's score for how likely the issue is to be fixable" }, "seerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When Seer Autofix was last triggered for the issue (ISO 8601)" }, "seerExplorerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601)" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "User or team the issue is assigned to" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "nullable": true, "description": "Why the requesting user is subscribed to the issue" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred" }, "annotations": { "type": "array", "items": { "type": "object", "properties": { "displayName": { "type": "string", "description": "Display name of the linked external issue" }, "url": { "type": "string", "description": "URL of the linked external issue" } }, "required": [ "displayName", "url" ] }, "description": "External issues linked to the issue" } }, "required": [ "annotations", "assignedTo", "culprit", "hasSeen", "id", "isBookmarked", "isPublic", "isSubscribed", "issueCategory", "issueType", "level", "logger", "metadata", "numComments", "permalink", "platform", "priority", "priorityLockedAt", "project", "seerAutofixLastTriggered", "seerExplorerAutofixLastTriggered", "seerFixabilityScore", "shareId", "shortId", "status", "statusDetails", "subscriptionDetails", "substatus", "title", "type" ], "nullable": true, "description": "Issue the events moved to" } }, "required": [ "fingerprints" ], "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] } ] }, "description": "Recent activity on the issue, newest first" }, "seenBy": { "type": "array", "items": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" }, "lastSeen": { "type": "string", "format": "date-time", "description": "When the user last saw the issue (ISO 8601)" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "lastSeen", "name", "username" ] }, "description": "Users who have seen the issue, with when they last saw it" }, "userReportCount": { "type": "integer", "description": "Number of user reports for the issue" }, "participants": { "type": "array", "items": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" }, "type": { "enum": [ "user" ], "type": "string", "description": "Kind of participant. Always user" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "type", "username" ] }, "description": "Users participating in the issue" } }, "required": [ "activity", "annotations", "assignedTo", "culprit", "hasSeen", "id", "isBookmarked", "isPublic", "isSubscribed", "issueCategory", "issueType", "level", "logger", "metadata", "numComments", "participants", "permalink", "platform", "priority", "priorityLockedAt", "project", "seenBy", "seerAutofixLastTriggered", "seerExplorerAutofixLastTriggered", "seerFixabilityScore", "shareId", "shortId", "status", "statusDetails", "subscriptionDetails", "substatus", "title", "type", "userReportCount" ] }, "examples": { "ReturnAnIssue": { "value": { "id": "1", "shareId": "123def456abc", "shortId": "PUMP-STATION-1", "title": "This is an example Python exception", "culprit": "raven.scripts.runner in main", "permalink": "https://sentry.io/the-interstellar-jurisdiction/pump-station/issues/1/", "logger": null, "level": "error", "status": "unresolved", "statusDetails": {}, "substatus": "ongoing", "isPublic": false, "platform": "python", "priority": "medium", "priorityLockedAt": null, "seerFixabilityScore": null, "seerAutofixLastTriggered": null, "seerExplorerAutofixLastTriggered": null, "project": { "id": "2", "name": "Pump Station", "slug": "pump-station", "platform": "python" }, "type": "default", "issueType": "error", "issueCategory": "error", "metadata": { "title": "This is an example Python exception" }, "numComments": 0, "assignedTo": { "type": "user", "id": "1", "name": "John Doe", "email": "john.doe@example.com" }, "isBookmarked": false, "isSubscribed": true, "subscriptionDetails": null, "hasSeen": false, "annotations": [], "count": "150", "userCount": 12, "firstSeen": "2018-11-06T21:19:55Z", "lastSeen": "2018-12-06T21:19:55Z", "activity": [ { "data": { "priority": "high" }, "dateCreated": "2018-11-06T21:19:55Z", "id": "0", "commentId": null, "type": "first_seen", "user": null, "sentry_app": null } ], "seenBy": [], "userReportCount": 0, "participants": [], "firstRelease": { "id": 1, "version": "frontend@1.0.0", "shortVersion": "frontend@1.0.0", "status": "open", "versionInfo": { "package": "frontend", "version": { "raw": "1.0.0", "major": 1, "minor": 0, "patch": 0, "pre": null, "buildCode": null, "components": 3 }, "description": "1.0.0", "buildHash": null }, "ref": null, "url": null, "dateReleased": null, "dateCreated": "2024-01-01T00:00:00Z", "data": {}, "newGroups": 0, "owner": null, "commitCount": 0, "lastCommit": null, "deployCount": 0, "lastDeploy": null, "authors": [], "projects": [ { "id": 1, "slug": "sentry", "name": "sentry", "newGroups": 0, "platform": "javascript", "platforms": [ "javascript" ], "hasHealthData": false } ], "firstEvent": null, "lastEvent": null, "currentProjectMeta": {}, "userAgent": null }, "lastRelease": null, "tags": [ { "key": "browser", "name": "Browser", "totalValues": 150 }, { "key": "level", "name": "Level", "totalValues": 150 } ], "stats": { "24h": [ [ 1541451600, 557 ], [ 1541455200, 473 ] ], "30d": [ [ 1538870400, 565 ], [ 1538956800, 12862 ] ] } }, "summary": "Return an issue" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "updateOrganizationIssue", "description": "Update an individual issue's attributes. Only the attributes submitted\nare modified.", "summary": "Update an Issue", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true } ], "tags": [ "Events" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "inbox": { "type": "boolean", "description": "If true, marks the issue as reviewed by the requestor." }, "status": { "enum": [ "resolved", "unresolved", "ignored", "resolvedInNextRelease", "muted" ], "type": "string", "description": "The new status for the issues.\n\n* `resolved`\n* `unresolved`\n* `ignored`\n* `resolvedInNextRelease`\n* `muted`" }, "statusDetails": { "allOf": [ { "type": "object", "properties": { "inNextRelease": { "type": "boolean", "description": "If true, marks the issue as resolved in the next release." }, "inRelease": { "type": "string", "description": "The version of the release that the issue should be resolved in.If set to `latest`, the latest release will be used." }, "inCommit": { "allOf": [ { "type": "object", "properties": { "commit": { "type": "string", "description": "The SHA of the resolving commit." }, "repository": { "type": "string", "description": "The name of the repository (as it appears in Sentry)." } }, "required": [ "commit", "repository" ] } ], "description": "The commit data that the issue should use for resolution." }, "ignoreDuration": { "type": "integer", "minimum": 0, "description": "Ignore the issue until for this many minutes." }, "ignoreCount": { "type": "integer", "minimum": 0, "description": "Ignore the issue until it has occurred this many times in `ignoreWindow` minutes." }, "ignoreWindow": { "type": "integer", "maximum": 10080, "minimum": 0, "description": "Ignore the issue until it has occurred `ignoreCount` times in this many minutes. (Max: 1 week)" }, "ignoreUserCount": { "type": "integer", "minimum": 0, "description": "Ignore the issue until it has affected this many users in `ignoreUserWindow` minutes." }, "ignoreUserWindow": { "type": "integer", "maximum": 10080, "minimum": 0, "description": "Ignore the issue until it has affected `ignoreUserCount` users in this many minutes. (Max: 1 week)" } } } ], "description": "Additional details about the resolution. Status detail updates that include release data are only allowed for issues within a single project." }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "The new substatus of the issue.\n\n* `archived_until_escalating`\n* `archived_until_condition_met`\n* `archived_forever`\n* `escalating`\n* `ongoing`\n* `regressed`\n* `new`" }, "hasSeen": { "type": "boolean", "description": "If true, marks the issue as seen by the requestor." }, "isBookmarked": { "type": "boolean", "description": "If true, bookmarks the issue for the requestor." }, "isPublic": { "type": "boolean", "description": "If true, publishes the issue." }, "isSubscribed": { "type": "boolean", "description": "If true, subscribes the requestor to the issue." }, "merge": { "type": "boolean", "description": "If true, merges the issues together." }, "discard": { "type": "boolean", "description": "If true, discards the issues instead of updating them." }, "assignedTo": { "type": "string", "description": "The user or team that should be assigned to the issues. Values take the form of ``, `user:`, ``, ``, or `team:`." }, "priority": { "enum": [ "low", "medium", "high" ], "type": "string", "description": "The priority that should be set for the issues\n\n* `low`\n* `medium`\n* `high`" }, "ignoreDuration": { "type": "integer", "minimum": 0, "description": "Ignore the issue for this many minutes." }, "ignoreCount": { "type": "integer", "minimum": 0, "description": "Ignore the issue until it is seen this many more times." }, "ignoreWindow": { "type": "integer", "maximum": 10080, "minimum": 0, "description": "Window in minutes over which `ignoreCount` is measured. Maximum is 7 days." }, "ignoreUserCount": { "type": "integer", "minimum": 0, "description": "Ignore the issue until it affects this many more users." }, "ignoreUserWindow": { "type": "integer", "maximum": 10080, "minimum": 0, "description": "Window in minutes over which `ignoreUserCount` is measured. Maximum is 7 days." }, "snoozeDuration": { "type": "integer", "minimum": 0, "nullable": true, "description": "Snooze the issue for this many minutes." } } } } } }, "security": [ { "auth_token": [ "event:admin", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "isUnhandled": { "type": "boolean", "description": "Whether the issue includes unhandled events" }, "count": { "type": "string", "description": "Total number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "derivedData": { "type": "object", "properties": { "blocker": { "type": "string", "description": "Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr" }, "progress": { "type": "string", "description": "How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied" }, "status": { "type": "string", "description": "Status of the issue from its action log: open or closed" }, "viewCount": { "type": "integer", "description": "Number of times the issue was viewed" }, "hasOpenFixPr": { "type": "boolean", "description": "Whether an open pull request is linked to the issue" }, "isAssigned": { "type": "boolean", "description": "Whether the issue has an assignee" }, "hasRootCause": { "type": "boolean", "description": "Whether a root cause was found for the issue" }, "lastCompletedAutofixStep": { "type": "string", "description": "Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration" }, "lastProgressedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue's progress last advanced (ISO 8601)" }, "impact": { "type": "object", "properties": { "score": { "type": "number", "format": "double", "nullable": true, "description": "Estimated per-occurrence impact on the end user's capability from 0 to 100" }, "level": { "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "type": "string", "nullable": true, "description": "Impact level derived from the assessment score" }, "description": { "type": "string", "description": "Human-readable description of the capability affected by the issue" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string", "description": "Stable identifier for the evidence supporting this claim" }, "claim": { "type": "string", "description": "Concise explanation of what the cited evidence establishes" }, "source": { "type": "string", "description": "The category of evidence cited, such as an event, trace, replay, or log" } }, "required": [ "claim", "reference", "source" ] }, "description": "Evidence-backed claims supporting the impact assessment" }, "sourceEventId": { "type": "string", "description": "ID of the issue event used to generate the impact assessment" } }, "required": [ "citations", "description", "level", "score", "sourceEventId" ], "nullable": true, "description": "The issue's impact assessment, or null when no assessment is available" } }, "required": [ "blocker", "hasOpenFixPr", "hasRootCause", "isAssigned", "lastCompletedAutofixStep", "lastProgressedAt", "progress", "status", "viewCount" ], "description": "Additional data derived for the issue. Only included when requested with expand" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "shareId": { "type": "string", "nullable": true, "description": "ID used in the issue's public share URL. Null when the issue isn't shared" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "permalink": { "type": "string", "format": "uri", "description": "URL of the issue in Sentry" }, "logger": { "type": "string", "nullable": true, "description": "Logger of the issue's events" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "statusDetails": { "type": "object", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored" }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored (ISO 8601)" }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored" }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount" }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount" }, "actor": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who ignored or resolved the issue" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in" }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in" }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed" }, "info": { "type": "object", "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)" }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started" }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum" } }, "required": [ "dateCreated", "syncCount", "totalEvents" ], "nullable": true, "description": "Reprocessing progress details" } }, "description": "Details of the issue's status, such as when an ignore expires or which release resolves it" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "priority": { "enum": [ "low", "medium", "high", null ], "type": "string", "nullable": true, "description": "Priority of the issue: high, medium or low" }, "priorityLockedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the priority was last set manually, which stops automatic priority updates (ISO 8601)" }, "seerFixabilityScore": { "type": "number", "format": "double", "nullable": true, "description": "Seer's score for how likely the issue is to be fixable" }, "seerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When Seer Autofix was last triggered for the issue (ISO 8601)" }, "seerExplorerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601)" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "User or team the issue is assigned to" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "nullable": true, "description": "Why the requesting user is subscribed to the issue" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred" }, "annotations": { "type": "array", "items": { "type": "object", "properties": { "displayName": { "type": "string", "description": "Display name of the linked external issue" }, "url": { "type": "string", "description": "URL of the linked external issue" } }, "required": [ "displayName", "url" ] }, "description": "External issues linked to the issue" } }, "required": [ "annotations", "assignedTo", "culprit", "hasSeen", "id", "isBookmarked", "isPublic", "isSubscribed", "issueCategory", "issueType", "level", "logger", "metadata", "numComments", "permalink", "platform", "priority", "priorityLockedAt", "project", "seerAutofixLastTriggered", "seerExplorerAutofixLastTriggered", "seerFixabilityScore", "shareId", "shortId", "status", "statusDetails", "subscriptionDetails", "substatus", "title", "type" ] } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "delete": { "operationId": "deleteOrganizationIssue", "description": "Asynchronously queue an individual issue for deletion.", "summary": "Remove an Issue", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "event:admin" ] } ], "responses": { "202": { "description": "Accepted" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/issues/{issue_id}/autofix/": { "get": { "operationId": "getOrganizationIssueAutofixState", "description": "**Experimental:** This API is under active development and may change.\n\nRetrieve the current detailed state of an issue fix process for a specific issue including:\n\n- Current status\n- Steps performed and their outcomes\n- Repository information and permissions\n- Root Cause Analysis\n- Proposed Solution\n- Generated code changes", "summary": "Retrieve Seer Issue Fix State", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true }, { "in": "query", "name": "llmFormat", "schema": { "type": "string", "enum": [ "json", "markdown", "xml" ] }, "description": "If set, adds a `formatted` field to the response with the autofix rendered as the requested format for LLM consumption." } ], "tags": [ "Seer" ], "security": [ { "auth_token": [ "event:admin", "event:read", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "description": "Response type for the GET endpoint", "properties": { "formatted": { "type": "object", "description": "The ``formatted`` field the mixin adds to a response when ``?llmFormat`` is requested.\n\n``content`` is text for the text formats and a serialized JSON object for ``json``, so the\nresponse shape is the same whichever format a caller asks for.", "properties": { "format": { "enum": [ "markdown", "xml", "json" ], "type": "string", "description": "Format of the content: markdown, xml or json" }, "content": { "type": "string", "description": "Response rendered in the requested format, as text" } }, "required": [ "content", "format" ] }, "autofix": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Autofix state of the issue. Null when Autofix hasn't run" } }, "required": [ "autofix" ] }, "examples": { "AutofixInProgress": { "value": { "autofix": { "run_id": 12345, "request": { "organization_id": 1, "project_id": 2, "repos": [ { "integration_id": "12345", "provider": "github", "owner": "getsentry", "name": "seer", "external_id": "439438299", "branch_name": "main", "base_commit_sha": "4ebb4f342e308fda87d6ccb3cced25f2701bd60c" } ], "tags_overview": { "tags_overview": [ { "key": "environment", "name": "Environment", "top_values": [ { "count": 1, "percentage": "100%", "value": "production" } ] }, { "key": "run_id", "name": "Run Id", "top_values": [ { "count": 1, "percentage": "100%", "value": "1372444" } ] } ] }, "options": { "auto_run_source": "issue_summary_on_post_process_fixability" } }, "updated_at": "2025-09-23T21:02:18.160885", "status": "COMPLETED", "codebases": { "439438299": { "repo_external_id": "439438299", "file_changes": [], "is_readable": true, "is_writeable": true } }, "steps": [ { "active_comment_thread": null, "agent_comment_thread": null, "completedMessage": null, "id": "0872381c-7d71-46cd-a62b-fbc196846965", "index": 0, "initial_memory_length": 1, "insights": [], "key": "root_cause_analysis_processing", "output_confidence_score": null, "output_stream": null, "proceed_confidence_score": null, "progress": [ { "data": null, "message": "Figuring out the root cause...", "timestamp": "2025-09-12T23:20:31.304114", "type": "INFO" }, { "data": null, "message": "Looking at `src/seer/automation/autofix/tools/tools.py` in `getsentry/seer`...", "timestamp": "2025-09-12T23:20:49.671212", "type": "INFO" }, { "data": null, "message": "Simulating profound thought...", "timestamp": "2025-09-12T23:20:58.229135", "type": "INFO" }, { "data": null, "message": "Arranging data in a way that looks intentional...", "timestamp": "2025-09-12T23:21:22.696531", "type": "INFO" } ], "queued_user_messages": [], "status": "COMPLETED", "title": "Analyzing the Issue", "type": "default" }, { "active_comment_thread": null, "agent_comment_thread": null, "causes": [ { "description": "`BaseTools.run_ripgrep` called without required `query` argument, causing `TypeError`.", "id": 0, "relevant_repos": [ "getsentry/seer" ], "reproduction_urls": [], "root_cause_reproduction": [ { "code_snippet_and_analysis": "The process begins with an HTTP request to the `autofix_start_endpoint`. This is the entry point for the autofix workflow.", "is_most_important_event": false, "relevant_code_file": { "file_path": "seer/app.py", "repo_name": "getsentry/seer" }, "timeline_item_type": "internal_code", "title": "Autofix process initiated via API endpoint." } ] } ], "completedMessage": null, "id": "e6ae64b6-e4d4-44f5-bac7-6ecf6780a6dc", "index": 1, "key": "root_cause_analysis", "output_stream": null, "progress": [ { "data": null, "message": "Here is Autofix's proposed root cause.", "timestamp": "2025-09-12T23:21:30.662818", "type": "INFO" } ], "queued_user_messages": [], "selection": { "cause_id": 0, "instruction": null }, "status": "COMPLETED", "termination_reason": null, "title": "Root Cause Analysis", "type": "root_cause_analysis" } ], "coding_agents": {}, "last_triggered_at": "2025-09-23T21:00:46.696678", "completed_at": null, "repositories": [ { "integration_id": 2933, "url": "https://github.com/getsentry/seer", "external_id": "439438299", "name": "getsentry/seer", "provider": "integrations:github", "default_branch": "main", "is_readable": true, "is_writeable": true } ] } }, "summary": "Autofix in Progress" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true }, "post": { "operationId": "startOrganizationIssueAutofix", "description": "Trigger a Seer Issue Fix run for a specific issue.\n\nThe issue fix process can:\n- Identify the root cause of the issue\n- Propose a solution\n- Generate code changes\n- Create a pull request with the fix\n\nThe process runs asynchronously, and you can get the state using the GET endpoint.", "summary": "Start Seer Issue Fix", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true } ], "tags": [ "Seer" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "description": "Serializer for the agent-based autofix requests.", "properties": { "step": { "enum": [ "root_cause", "solution", "code_changes", "pr_iteration", "open_pr", "coding_agent_handoff" ], "type": "string", "default": "root_cause", "description": "Which autofix step to run.\n\n* `root_cause`\n* `solution`\n* `code_changes`\n* `pr_iteration`\n* `open_pr`\n* `coding_agent_handoff`" }, "stopping_point": { "enum": [ "root_cause", "solution", "code_changes", "open_pr" ], "type": "string", "description": "Where the issue fix process should stop. If not provided, will run to root cause.\n\n* `root_cause`\n* `solution`\n* `code_changes`\n* `open_pr`" }, "run_id": { "type": "integer", "description": "**Deprecated** in favor of sentry_run_id; retained for backward compatibility. The existing run's numeric Seer id to continue. If neither run_id nor sentry_run_id is provided, starts a new run." }, "sentry_run_id": { "type": "string", "format": "uuid", "description": "Existing run's UUID to continue. Preferred over run_id, and takes precedence when both are given." }, "integration_id": { "type": "integer", "description": "Coding agent integration ID. Required for coding_agent_handoff step (unless provider is specified)." }, "provider": { "type": "string", "description": "Coding agent provider (e.g., 'github_copilot'). Alternative to integration_id for user-authenticated providers." }, "user_context": { "type": "string", "description": "Optional user context to append to the step prompt.", "maxLength": 10000 }, "repo_name": { "type": "string", "description": "Optional repository name for which to create the pull request. Do not pass a repository name to create pull requests in all relevant repositories." }, "insert_index": { "type": "integer", "description": "Block index to insert at. When provided, truncates blocks after this point for retry-from-step." }, "referrer": { "type": "string", "description": "Referrer identifying where the issue fix was triggered from." } } } } } }, "security": [ { "auth_token": [ "event:admin", "event:write", "seer:write" ] } ], "responses": { "202": { "content": { "application/json": { "schema": { "type": "object", "description": "Response type for the POST endpoint (default kickoff and step paths).", "properties": { "run_id": { "type": "integer", "description": "ID of the Autofix run in Seer" }, "sentry_run_id": { "type": "string", "nullable": true, "description": "ID of the run in Sentry. Null for legacy runs" }, "feature_id": { "type": "string", "description": "\"autofix_single_run\" for a single-run Autofix run, otherwise \"autofix\"" } }, "required": [ "feature_id", "run_id", "sentry_run_id" ] }, "examples": { "SuccessfulAutofixCreation": { "value": { "run_id": 12345, "sentry_run_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "feature_id": "autofix" }, "summary": "Successful Autofix Creation" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "402": { "content": { "application/json": { "schema": { "type": "object", "properties": { "detail": { "type": "string", "description": "Why the organization can't run Seer" }, "code": { "enum": [ "seer_out_of_credits", "seer_out_of_quota" ], "type": "string", "description": "`seer_out_of_credits` when the organization has no Seer credits left, `seer_out_of_quota` when it has no Seer budget" } }, "required": [ "code", "detail" ] } } }, "description": "" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "content": { "application/json": { "schema": { "type": "object", "properties": { "detail": { "type": "string", "description": "Why the step can't run" }, "code": { "enum": [ "scm_integration_required", "repos_not_linked", "run_in_flight" ], "type": "string", "description": "Set when a client can act on the conflict. `scm_integration_required` and `repos_not_linked` mean the organization or project must finish Seer setup before a new run can start. `run_in_flight` means a step is already running for the run in `run_id`, so poll it instead of retrying" }, "run_id": { "type": "integer", "description": "ID of the run in Seer. Set with `run_in_flight`" }, "sentry_run_id": { "type": "string", "nullable": true, "description": "ID of the run in Sentry. Set with `run_in_flight`, null for legacy runs" } }, "required": [ "detail" ] } } }, "description": "" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/issues/{issue_id}/events/": { "get": { "operationId": "listOrganizationIssueEvents", "description": "Return a list of events bound to an issue.", "summary": "List an Issue's Events", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "statsPeriodStart", "schema": { "type": "string" }, "description": "How long ago the query period starts, in the same format as `statsPeriod`. Must be sent with `statsPeriodEnd`, and is ignored when `statsPeriod` is sent." }, { "in": "query", "name": "statsPeriodEnd", "schema": { "type": "string" }, "description": "How long ago the query period ends, in the same format as `statsPeriod`. Must be sent with `statsPeriodStart`, and is ignored when `statsPeriod` is sent." }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "full", "schema": { "type": "boolean", "default": false }, "description": "Specify true to include the full event body, including the stacktrace, in the event payload. When true, the page size is capped at 10." }, { "in": "query", "name": "sample", "schema": { "type": "boolean", "default": false }, "description": "Return events in pseudo-random order. This is deterministic so an identical query will always return the same events in the same order." }, { "in": "query", "name": "query", "schema": { "type": "string" }, "description": "An optional search query for filtering events. See [search syntax](https://docs.sentry.io/concepts/search/) and queryable event properties at [Sentry Search Documentation](https://docs.sentry.io/concepts/search/searchable-properties/events/) for more information. An example query might be `query=transaction:foo AND release:abc`" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "Limit the number of rows to return in the result. Default and maximum allowed is 100." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "event:admin", "event:read", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "event.type": { "type": "string", "description": "Event type, such as error, default or transaction" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" }, "name": { "type": "string", "nullable": true, "description": "Name of the user" }, "geo": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Location of the user, with keys such as country_code, city and region" }, "data": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Extra data the SDK sent about the user" } }, "nullable": true, "description": "User context of the event" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query that matches this tag's user, such as user.email:\"user@example.com\". Only set for user tags" }, "key": { "type": "string", "description": "Tag key" }, "value": { "type": "string", "description": "Tag value" } }, "required": [ "key", "value" ] }, "description": "Tags attached to the event" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } } }, "required": [ "crashFile", "culprit", "dateCreated", "event.type", "eventID", "groupID", "id", "location", "message", "metadata", "platform", "projectID", "tags", "title", "user" ] } }, "examples": { "ReturnAListOfErrorEventsBoundToAnIssue": { "value": [ { "eventID": "9fac2ceed9344f2bbfdd1fdacb0ed9b1", "tags": [ { "key": "browser", "value": "Chrome 60.0" }, { "key": "device", "value": "Other" }, { "key": "environment", "value": "production" }, { "value": "fatal", "key": "level" }, { "key": "os", "value": "Mac OS X 10.12.6" }, { "value": "CPython 2.7.16", "key": "runtime" }, { "key": "release", "value": "17642328ead24b51867165985996d04b29310337" }, { "key": "server_name", "value": "web1.example.com" } ], "dateCreated": "2020-09-11T17:46:36Z", "user": null, "message": "", "title": "This is an example Python exception", "id": "dfb1a2d057194e76a4186cc8a5271553", "platform": "python", "event.type": "error", "groupID": "1889724436", "crashFile": null, "location": "example.py:123", "culprit": "/books/new/", "projectID": "49271", "metadata": { "type": "ExampleException", "value": "This is an example Python exception" } } ], "summary": "Return a list of error events bound to an issue" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/issues/{issue_id}/events/{event_id}/": { "get": { "operationId": "getOrganizationIssueEvent", "description": "Retrieves the details of an issue event.", "summary": "Retrieve an Issue Event", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true }, { "in": "path", "name": "event_id", "schema": { "type": "string", "enum": [ "latest", "oldest", "recommended" ] }, "description": "The ID of the event to retrieve, or 'latest', 'oldest', or 'recommended'.", "required": true }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." }, { "in": "query", "name": "start", "schema": { "type": "string", "format": "date-time" }, "description": "The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "end", "schema": { "type": "string", "format": "date-time" }, "description": "The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`." }, { "in": "query", "name": "statsPeriod", "schema": { "type": "string" }, "description": "The period of time for the query, will override the start & end parameters, a number followed by one of:\n- `d` for days\n- `h` for hours\n- `m` for minutes\n- `s` for seconds\n- `w` for weeks\n\nFor example, `24h`, to mean query data starting from 24 hours ago to now." }, { "in": "query", "name": "statsPeriodStart", "schema": { "type": "string" }, "description": "How long ago the query period starts, in the same format as `statsPeriod`. Must be sent with `statsPeriodEnd`, and is ignored when `statsPeriod` is sent." }, { "in": "query", "name": "statsPeriodEnd", "schema": { "type": "string" }, "description": "How long ago the query period ends, in the same format as `statsPeriod`. Must be sent with `statsPeriodStart`, and is ignored when `statsPeriod` is sent." }, { "in": "query", "name": "collapse", "schema": { "type": "array", "items": { "type": "string", "enum": [ "adjacentEvents" ] } }, "description": "Parts of the response to skip computing. Specify `adjacentEvents` to skip looking up the neighboring events in the issue; `nextEventID` and `previousEventID` are then always `null`. Unknown values are ignored." }, { "in": "query", "name": "llmFormat", "schema": { "type": "string", "enum": [ "json", "markdown", "xml" ] }, "description": "If set, adds a `formatted` field to the response with the event rendered as the requested format for LLM consumption." } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "event:admin", "event:read", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "nullable": true, "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateReceived": { "type": "string", "format": "date-time", "nullable": true, "description": "When Sentry received the event (ISO 8601)" }, "size": { "type": "integer", "nullable": true, "description": "Size of the event payload in bytes" }, "entries": { "type": "array", "items": {}, "description": "Event interfaces, such as exception, breadcrumbs and request, each with a type and data" }, "dist": { "type": "string", "nullable": true, "description": "Distribution of the release the event was sent with" }, "packages": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Modules loaded when the event occurred, keyed by module name with their versions" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type, such as error, default or transaction" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "occurrence": { "anyOf": [ { "type": "object", "description": "A metric issue occurrence. `evidenceData` describes the detector and query that fired.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "enum": [ 8001 ], "type": "integer", "description": "Group type ID of metric issues, always 8001" }, "evidenceData": { "type": "object", "properties": { "detectorId": { "type": "integer", "description": "ID of the detector that created the occurrence" }, "alertId": { "type": "integer", "nullable": true, "description": "ID of the metric alert rule the detector replaces. Null when there's none" }, "value": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Metric value the anomaly detection model scored" }, "sourceId": { "type": "string", "description": "ID of the data source that produced the value" }, "subscriptionId": { "type": "string", "description": "ID of the query subscription that produced the value" }, "timestamp": { "type": "string", "description": "When the value was measured" } }, "required": [ "sourceId", "subscriptionId", "timestamp", "value" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Metric value that triggered the detector, or the anomaly detection result for dynamic detectors" }, "dataPacketSourceId": { "type": "string", "description": "ID of the query subscription that sent the data" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the detector condition" }, "type": { "type": "string", "description": "Type of the condition, such as gt, lt or anomaly_detection" }, "comparison": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "sensitivity": { "enum": [ "low", "medium", "high" ], "type": "string", "description": "How sensitive the anomaly detection is" }, "seasonality": { "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "type": "string", "description": "Seasonality the anomaly detection model uses" }, "thresholdType": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "Direction of anomalies to detect: 0 above, 1 below, 2 above and below" } }, "required": [ "seasonality", "sensitivity", "thresholdType" ] } ], "description": "Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition" }, "conditionResult": { "type": "integer", "description": "Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions of the detector" }, "config": { "type": "object", "properties": { "detectionType": { "enum": [ "static", "percent", "dynamic" ], "type": "string", "description": "How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection" }, "comparisonDelta": { "type": "integer", "nullable": true, "description": "Time window in seconds that a percent change detector compares with" } }, "required": [ "detectionType" ], "description": "Configuration of the detector" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "type": "string", "description": "Type of the data source, such as snuba_query_subscription" }, "sourceId": { "type": "string", "description": "ID of the source object, such as the query subscription" }, "queryObj": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ], "description": "Query subscription the data source reads" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "description": "Data sources of the detector" } }, "required": [ "alertId", "conditions", "config", "dataPacketSourceId", "dataSources", "detectorId", "value" ], "description": "Detector and query that created the occurrence" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "description": "An issue occurrence of any type. `evidenceData` keys are camelCase.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "type": "integer", "description": "Group type ID of the occurrence" }, "evidenceData": { "type": "object", "additionalProperties": {}, "description": "Data of the occurrence. Its keys depend on the group type" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise" }, "_meta": { "type": "object", "additionalProperties": {}, "description": "Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" }, "name": { "type": "string", "nullable": true, "description": "Name of the user" }, "geo": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Location of the user, with keys such as country_code, city and region" }, "data": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Extra data the SDK sent about the user" } }, "nullable": true, "description": "User context of the event" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query that matches this tag's user, such as user.email:\"user@example.com\". Only set for user tags" }, "key": { "type": "string", "description": "Tag key" }, "value": { "type": "string", "description": "Tag value" } }, "required": [ "key", "value" ] }, "description": "Tags attached to the event" }, "contexts": { "type": "object", "nullable": true, "additionalProperties": { "anyOf": [ { "description": "Application information.\n\n App context describes the application. As opposed to the runtime, this is the actual\n application that was running and carries metadata about the current session.", "type": "object", "additionalProperties": true, "properties": { "app_build": { "description": "Internal build ID as it appears on the platform.", "type": "string", "nullable": true }, "app_identifier": { "description": "Version-independent application identifier, often a dotted bundle ID.", "type": "string", "nullable": true }, "app_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Amount of memory used by the application in bytes." }, "app_name": { "description": "Application name as it appears on the platform.", "type": "string", "nullable": true }, "app_start_time": { "description": "Start time of the app.\n\n Formatted UTC timestamp when the user started the application.", "type": "string", "nullable": true }, "app_version": { "description": "Application version as it appears on the platform.", "type": "string", "nullable": true }, "build_type": { "description": "String identifying the kind of build. For example, `testflight`.", "type": "string", "nullable": true }, "device_app_hash": { "description": "Application-specific device identifier.", "type": "string", "nullable": true }, "in_foreground": { "description": "A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user.", "type": "boolean", "nullable": true }, "view_names": { "description": "The names of the currently visible views.", "type": "array", "items": { "type": "string", "nullable": true }, "nullable": true }, "type": { "type": "string", "enum": [ "app" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Web browser information.", "type": "object", "additionalProperties": true, "properties": { "name": { "description": "Display name of the browser application.", "type": "string", "nullable": true }, "version": { "description": "Version string of the browser.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "browser" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "default" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true }, { "description": "Device information.\n\n Device context describes the device that caused the event. This is most appropriate for mobile\n applications.", "type": "object", "additionalProperties": true, "properties": { "arch": { "description": "Native cpu architecture of the device.", "type": "string", "nullable": true }, "battery_level": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Current battery level in %.\n\n If the device has a battery, this can be a floating point value defining the battery level\n (in the range 0-100)." }, "battery_status": { "description": "Status of the device's battery.\n\n For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`.", "type": "string", "nullable": true }, "boot_time": { "description": "Indicator when the device was booted.", "type": "string", "nullable": true }, "brand": { "description": "Brand of the device.", "type": "string", "nullable": true }, "charging": { "description": "Whether the device was charging or not.", "type": "boolean", "nullable": true }, "cpu_description": { "description": "CPU description.\n\n For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz.", "type": "string", "nullable": true }, "device_type": { "description": "Kind of device the application is running on.\n\n For example, `Unknown`, `Handheld`, `Console`, `Desktop`.", "type": "string", "nullable": true }, "device_unique_identifier": { "description": "Unique device identifier.", "type": "string", "nullable": true }, "external_free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Free size of the attached external storage in bytes (eg: android SDK card)." }, "external_storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total size of the attached external storage in bytes (eg: android SDK card)." }, "family": { "description": "Family of the device model.\n\n This is usually the common part of model names across generations. For instance, `iPhone`\n would be a reasonable family, so would be `Samsung Galaxy`.", "type": "string", "nullable": true }, "free_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is still available in bytes." }, "free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much storage is free in bytes." }, "locale": { "description": "ISO 639-1 code of the locale the device is set to.", "type": "string", "nullable": true }, "low_memory": { "description": "Whether the device was low on memory.", "type": "boolean", "nullable": true }, "manufacturer": { "description": "Manufacturer of the device.", "type": "string", "nullable": true }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total memory available in bytes." }, "model": { "description": "Device model.\n\n This, for example, can be `Samsung Galaxy S3`.", "type": "string", "nullable": true }, "model_id": { "description": "Device model (internal identifier).\n\n An internal hardware revision to identify the device exactly.", "type": "string", "nullable": true }, "name": { "description": "Name of the device.", "type": "string", "nullable": true }, "online": { "description": "Whether the device was online or not.", "type": "boolean", "nullable": true }, "orientation": { "description": "Current screen orientation.\n\n This can be a string `portrait` or `landscape` to define the orientation of a device.", "type": "string", "nullable": true }, "processor_count": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Number of \"logical processors\".\n\n For example, 8." }, "processor_frequency": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Processor frequency in MHz.\n\n Note that the actual CPU frequency might vary depending on current load and\n power conditions, especially on low-powered devices like phones and laptops." }, "screen_density": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Device screen density." }, "screen_dpi": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Screen density as dots-per-inch." }, "screen_height_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Height of the screen in pixels." }, "screen_resolution": { "description": "Device screen resolution.\n\n (e.g.: 800x600, 3040x1444)", "type": "string", "nullable": true }, "screen_width_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Width of the screen in pixels." }, "simulator": { "description": "Simulator/prod indicator.", "type": "boolean", "nullable": true }, "storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total storage size of the device in bytes." }, "supports_accelerometer": { "description": "Whether the accelerometer is available on the device.", "type": "boolean", "nullable": true }, "supports_audio": { "description": "Whether audio is available on the device.", "type": "boolean", "nullable": true }, "supports_gyroscope": { "description": "Whether the gyroscope is available on the device.", "type": "boolean", "nullable": true }, "supports_location_service": { "description": "Whether location support is available on the device.", "type": "boolean", "nullable": true }, "supports_vibration": { "description": "Whether vibration is available on the device.", "type": "boolean", "nullable": true }, "timezone": { "description": "Timezone of the device.", "type": "string", "nullable": true }, "usable_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is usable for the app in bytes." }, "uuid": { "description": "UUID of the device.", "type": "string", "format": "uuid", "nullable": true }, "type": { "type": "string", "enum": [ "device" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "GPU information.\n\n Example:\n\n ```json\n \"gpu\": {\n \"name\": \"AMD Radeon Pro 560\",\n \"vendor_name\": \"Apple\",\n \"memory_size\": 4096,\n \"api_type\": \"Metal\",\n \"multi_threaded_rendering\": true,\n \"version\": \"Metal\",\n \"npot_support\": \"Full\"\n }\n ```", "type": "object", "additionalProperties": true, "properties": { "api_type": { "description": "The device low-level API type.\n\n Examples: `\"Apple Metal\"` or `\"Direct3D11\"`", "type": "string", "nullable": true }, "graphics_shader_level": { "description": "Approximate \"shader capability\" level of the graphics device.\n\n For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown)", "type": "string", "nullable": true }, "id": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "The PCI identifier of the graphics device." }, "max_texture_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Largest size of a texture that is supported by the graphics hardware.\n\n For Example: 16384" }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The total GPU memory available in Megabytes." }, "multi_threaded_rendering": { "description": "Whether the GPU has multi-threaded rendering or not.", "type": "boolean", "nullable": true }, "name": { "description": "The name of the graphics device.", "type": "string", "nullable": true }, "npot_support": { "description": "The Non-Power-Of-Two support.", "type": "string", "nullable": true }, "supports_compute_shaders": { "description": "Whether compute shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_draw_call_instancing": { "description": "Whether GPU draw call instancing is supported.", "type": "boolean", "nullable": true }, "supports_geometry_shaders": { "description": "Whether geometry shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_ray_tracing": { "description": "Whether ray tracing is available on the device.", "type": "boolean", "nullable": true }, "vendor_id": { "description": "The PCI vendor identifier of the graphics device.", "type": "string", "nullable": true }, "vendor_name": { "description": "The vendor name as reported by the graphics device.", "type": "string", "nullable": true }, "version": { "description": "The Version of the graphics device.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "gpu" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Monitor information.", "type": "object", "additionalProperties": true, "properties": { "type": { "type": "string", "enum": [ "monitor" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Operating system information.\n\n OS context describes the operating system on which the event was created. In web contexts, this\n is the operating system of the browser (generally pulled from the User-Agent string).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Internal build number of the operating system.", "type": "string", "nullable": true }, "kernel_version": { "description": "Current kernel version.\n\n This is typically the entire output of the `uname` syscall.", "type": "string", "nullable": true }, "name": { "description": "Name of the operating system.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed operating system info.\n\n An unprocessed description string obtained by the operating system. For some well-known\n runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are\n not explicitly given.", "type": "string", "nullable": true }, "rooted": { "description": "Indicator if the OS is rooted (mobile mostly).", "type": "boolean", "nullable": true }, "version": { "description": "Version of the operating system.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "os" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "OpenTelemetry Context\n\n If an event has this context, it was generated from an OpenTelemetry signal (trace, metric, log).", "type": "object", "additionalProperties": true, "properties": { "attributes": { "description": "Attributes of the OpenTelemetry span that maps to a Sentry event.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "resource": { "description": "Information about an OpenTelemetry resource.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "type": { "type": "string", "enum": [ "otel" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Runtime information.\n\n Runtime context describes a runtime in more detail. Typically, this context is present in\n `contexts` multiple times if multiple runtimes are involved (for instance, if you have a\n JavaScript application running on top of JVM).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Application build string, if it is separate from the version.", "type": "string", "nullable": true }, "name": { "description": "Runtime name.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed runtime info.\n\n An unprocessed description string obtained by the runtime. For some well-known runtimes,\n Sentry will attempt to parse `name` and `version` from this string, if they are not\n explicitly given.", "type": "string", "nullable": true }, "version": { "description": "Runtime version string.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "runtime" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Trace context", "type": "object", "additionalProperties": true, "properties": { "client_sample_rate": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The client-side sample rate as reported in the envelope's `trace.sample_rate` header.\n\n The server takes this field from envelope headers and writes it back into the event. Clients\n should not ever send this value." }, "exclusive_time": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The amount of time in milliseconds spent in this transaction span,\n excluding its immediate child spans." }, "op": { "description": "Span type (see `OperationType` docs).", "type": "string", "nullable": true }, "origin": { "description": "The origin of the trace indicates what created the trace (see [OriginType] docs).", "type": "string", "nullable": true }, "parent_span_id": { "description": "The ID of the span enclosing this span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "sampled": { "description": "Track whether the trace connected to this event has been sampled entirely.\n\n This flag only applies to events with [`Error`] type that have an associated dynamic sampling context.", "type": "boolean", "nullable": true }, "span_id": { "description": "The ID of the span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "status": { "description": "Whether the trace failed or succeeded. Currently only used to indicate status of individual\n transactions.", "nullable": true, "type": "string", "enum": [ "ok", "cancelled", "unknown", "invalid_argument", "deadline_exceeded", "not_found", "already_exists", "permission_denied", "resource_exhausted", "failed_precondition", "aborted", "out_of_range", "unimplemented", "internal_error", "unavailable", "data_loss", "unauthenticated", null ] }, "trace_id": { "description": "The trace ID.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "type": { "type": "string", "enum": [ "trace" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "unity" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true } ] }, "description": "Contexts of the event, such as device, os, browser and runtime, keyed by alias" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the SDK that sent the event, such as sentry.python" }, "version": { "type": "string", "nullable": true, "description": "Version of the SDK" } }, "required": [ "name", "version" ], "nullable": true, "description": "SDK that sent the event" }, "context": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Additional data sent with the event in its extra field" }, "errors": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Type of the processing error, such as invalid_data or js_no_source" }, "message": { "type": "string", "description": "Human-readable message of the error" }, "data": { "type": "object", "description": "Details of the error, such as the name of the invalid field. Other keys depend on the error type", "properties": { "name": { "type": "string", "nullable": true, "description": "Affected key or path in the event" }, "message": { "type": "string", "description": "Details of the error from the processor that hit it" }, "url": { "type": "string", "description": "URL that couldn't be fetched, such as a source file" }, "image_path": { "type": "string", "description": "Path of the debug image the error is about" }, "image_name": { "type": "string", "description": "Name of the debug image the error is about" }, "image_uuid": { "type": "string", "description": "Debug ID of the image the error is about" }, "image_arch": { "type": "string", "description": "CPU architecture of the image the error is about" }, "symbolicator_type": { "type": "string", "description": "Error type Symbolicator reported, such as missing_source" }, "source": { "type": "string", "description": "Source file or URL the error is about" }, "sourcemap": { "type": "string", "description": "Source map the error is about" }, "row": { "type": "integer", "description": "Line of the location that couldn't be mapped" }, "column": { "type": "integer", "description": "Column of the location that couldn't be mapped" }, "sdk_time": { "type": "string", "description": "Time the SDK reported, for clock drift errors" }, "server_time": { "type": "string", "description": "Time the server received the event, for clock drift errors" } } } }, "required": [ "data", "message", "type" ] }, "description": "Errors Sentry found while processing the event" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "fingerprints": { "type": "array", "items": { "type": "string" }, "description": "Grouping hashes calculated for the event" }, "groupingConfig": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the grouping config, such as newstyle:2026-01-20" }, "enhancements": { "type": "string", "description": "Stack trace rules of the project, as an encoded string" } }, "required": [ "enhancements", "id" ], "description": "Grouping configuration used to group the event" }, "startTimestamp": { "type": "number", "format": "double", "description": "When the transaction started, as a Unix timestamp in seconds" }, "endTimestamp": { "type": "number", "format": "double", "description": "When the transaction ended, as a Unix timestamp in seconds" }, "measurements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] }, "nullable": true, "description": "Measurements recorded for the transaction, such as web vitals, keyed by name" }, "breakdowns": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] } }, "nullable": true, "description": "Span operation breakdowns for the transaction, keyed by breakdown name" }, "release": { "type": "object", "properties": { "id": { "type": "integer", "description": "Release ID" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the release was created (ISO 8601)" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "version": { "type": "string", "nullable": true, "description": "Version of the release" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" } }, "nullable": true, "description": "Release the event was sent with. Null when the event has no release" }, "userReport": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the feedback" }, "eventID": { "type": "string", "description": "ID of the event the feedback is attached to" }, "name": { "type": "string", "nullable": true, "description": "Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user who submitted the feedback. Falls back to the event user's email address" }, "comments": { "type": "string", "description": "Comments the user submitted" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the feedback was submitted (ISO 8601)" }, "user": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the user, as sent with the event" }, "username": { "type": "string", "nullable": true, "description": "Username sent with the event" }, "email": { "type": "string", "nullable": true, "description": "Email address sent with the event" }, "name": { "type": "string", "nullable": true, "description": "Display name of the user: the name, email address or username sent with the event, whichever is set first" }, "ipAddress": { "type": "string", "nullable": true, "description": "IP address sent with the event" }, "avatarUrl": { "type": "string", "nullable": true, "description": "Gravatar URL for the user's email address" } }, "required": [ "avatarUrl", "email", "id", "ipAddress", "name", "username" ], "nullable": true, "description": "User recorded on the feedback's event. Null when the event isn't found or has no user" }, "event": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the event the feedback is attached to" }, "eventID": { "type": "string", "description": "ID of the event the feedback is attached to" } }, "required": [ "eventID", "id" ], "description": "Event the feedback is attached to" } }, "required": [ "comments", "dateCreated", "email", "event", "eventID", "id", "name", "user" ], "nullable": true, "description": "User feedback submitted for the event. Null when there's none" }, "sdkUpdates": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggested updates for the SDK that sent the event" }, "resolvedWith": { "type": "array", "items": { "type": "string" }, "description": "How the event's stack frames were resolved during processing, such as which source map lookup method was used" }, "nextEventID": { "type": "string", "nullable": true, "description": "ID of the next event in the issue. Null for the latest event or when adjacentEvents is collapsed" }, "previousEventID": { "type": "string", "nullable": true, "description": "ID of the previous event in the issue. Null for the first event or when adjacentEvents is collapsed" }, "formatted": { "type": "object", "description": "The ``formatted`` field the mixin adds to a response when ``?llmFormat`` is requested.\n\n``content`` is text for the text formats and a serialized JSON object for ``json``, so the\nresponse shape is the same whichever format a caller asks for.", "properties": { "format": { "enum": [ "markdown", "xml", "json" ], "type": "string", "description": "Format of the content: markdown, xml or json" }, "content": { "type": "string", "description": "Response rendered in the requested format, as text" } }, "required": [ "content", "format" ] } }, "required": [ "_meta", "context", "contexts", "dateReceived", "dist", "entries", "errors", "eventID", "groupID", "id", "location", "message", "metadata", "nextEventID", "occurrence", "packages", "platform", "previousEventID", "projectID", "release", "resolvedWith", "sdk", "sdkUpdates", "size", "tags", "title", "type", "user", "userReport" ] }, "examples": { "ReturnAnIssueEvent": { "value": { "groupID": "1341191803", "eventID": "9999aaaaca8b46d797c23c6077c6ff01", "dist": null, "userReport": null, "previousEventID": null, "message": "", "title": "This is an example Python exception", "id": "9999aaafcc8b46d797c23c6077c6ff01", "size": 107762, "errors": [ { "data": { "column": 8, "source": "https://s1.sentry-cdn.com/_static/bloopbloop/sentry/dist/app.js.map", "row": 15 }, "message": "Invalid location in sourcemap", "type": "js_invalid_sourcemap_location" } ], "platform": "javascript", "nextEventID": "99f9e199e9a74a14bfef6196ad741619", "type": "error", "metadata": { "type": "ForbiddenError", "value": "GET /organizations/hellboy-meowmeow/users/ 403" }, "tags": [ { "value": "Chrome 83.0.4103", "key": "browser" }, { "value": "Chrome", "key": "browser.name" }, { "value": "prod", "key": "environment" }, { "value": "yes", "key": "handled" }, { "value": "error", "key": "level" }, { "value": "generic", "key": "mechanism" } ], "dateCreated": "2020-06-17T22:26:56.098086Z", "dateReceived": "2020-06-17T22:26:56.428721Z", "user": { "username": null, "name": "Hell Boy", "ip_address": "192.168.1.1", "email": "hell@boy.cat", "data": { "isStaff": false }, "id": "550747" }, "entries": [ { "type": "exception", "data": { "values": [ { "stacktrace": { "frames": [ { "function": "ignoreOnError", "errors": null, "colNo": 23, "vars": null, "package": null, "absPath": "webpack:////usr/src/getsentry/src/sentry/node_modules/@sentry/browser/esm/helpers.js", "inApp": false, "lineNo": 71, "module": "usr/src/getsentry/src/sentry/node_modules/@sentry/browser/esm/helpers", "filename": "/usr/src/getsentry/src/sentry/node_modules/@sentry/browser/esm/helpers.js", "platform": null, "instructionAddr": null, "context": [ [ 66, " }" ], [ 67, " // Attempt to invoke user-land function" ], [ 68, " // NOTE: If you are a Sentry user, and you are seeing this stack frame, it" ], [ 69, " // means the sentry.javascript SDK caught an error invoking your application code. This" ], [ 70, " // is expected behavior and NOT indicative of a bug with sentry.javascript." ], [ 71, " return fn.apply(this, wrappedArguments);" ], [ 72, " // tslint:enable:no-unsafe-any" ], [ 73, " }" ], [ 74, " catch (ex) {" ], [ 75, " ignoreNextOnError();" ], [ 76, " withScope(function (scope) {" ] ], "symbolAddr": null, "trust": null, "symbol": null }, { "function": "apply", "errors": null, "colNo": 24, "vars": null, "package": null, "absPath": "webpack:////usr/src/getsentry/src/sentry/node_modules/reflux-core/lib/PublisherMethods.js", "inApp": false, "lineNo": 74, "module": "usr/src/getsentry/src/sentry/node_modules/reflux-core/lib/PublisherMethods", "filename": "/usr/src/getsentry/src/sentry/node_modules/reflux-core/lib/PublisherMethods.js", "platform": null, "instructionAddr": null, "context": [ [ 69, " */" ], [ 70, " triggerAsync: function triggerAsync() {" ], [ 71, " var args = arguments," ], [ 72, " me = this;" ], [ 73, " _.nextTick(function () {" ], [ 74, " me.trigger.apply(me, args);" ], [ 75, " });" ], [ 76, " }," ], [ 77, "" ], [ 78, " /**" ], [ 79, " * Wraps the trigger mechanism with a deferral function." ] ], "symbolAddr": null, "trust": null, "symbol": null } ], "framesOmitted": null, "registers": null, "hasSystemFrames": true }, "module": null, "rawStacktrace": { "frames": [ { "function": "a", "errors": null, "colNo": 88800, "vars": null, "package": null, "absPath": "https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js", "inApp": false, "lineNo": 81, "module": null, "filename": "/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js", "platform": null, "instructionAddr": null, "context": [ [ 76, "/*!" ], [ 77, " Copyright (c) 2018 Jed Watson." ], [ 78, " Licensed under the MIT License (MIT), see" ], [ 79, " http://jedwatson.github.io/react-select" ], [ 80, "*/" ], [ 81, "{snip} e,t)}));return e.handleEvent?e.handleEvent.apply(this,s):e.apply(this,s)}catch(e){throw c(),Object(o.m)((function(n){n.addEventProcessor((fu {snip}" ], [ 82, "/*!" ], [ 83, " * JavaScript Cookie v2.2.1" ], [ 84, " * https://github.com/js-cookie/js-cookie" ], [ 85, " *" ], [ 86, " * Copyright 2006, 2015 Klaus Hartl & Fagner Brack" ] ], "symbolAddr": null, "trust": null, "symbol": null }, { "function": null, "errors": null, "colNo": 149484, "vars": null, "package": null, "absPath": "https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js", "inApp": false, "lineNo": 119, "module": null, "filename": "/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js", "platform": null, "instructionAddr": null, "context": [ [ 114, "/* @license" ], [ 115, "Papa Parse" ], [ 116, "v5.2.0" ], [ 117, "https://github.com/mholt/PapaParse" ], [ 118, "License: MIT" ], [ 119, "{snip} (){var e=arguments,t=this;r.nextTick((function(){t.trigger.apply(t,e)}))},deferWith:function(e){var t=this.trigger,n=this,r=function(){t.app {snip}" ], [ 120, "/**!" ], [ 121, " * @fileOverview Kickass library to create and place poppers near their reference elements." ], [ 122, " * @version 1.16.1" ], [ 123, " * @license" ], [ 124, " * Copyright (c) 2016 Federico Zivolo and contributors" ] ], "symbolAddr": null, "trust": null, "symbol": null } ], "framesOmitted": null, "registers": null, "hasSystemFrames": true }, "mechanism": { "type": "generic", "handled": true }, "threadId": null, "value": "GET /organizations/hellboy-meowmeow/users/ 403", "type": "ForbiddenError" } ], "excOmitted": null, "hasSystemFrames": true } }, { "type": "breadcrumbs", "data": { "values": [ { "category": "tracing", "level": "debug", "event_id": null, "timestamp": "2020-06-17T22:26:55.266586Z", "data": null, "message": "[Tracing] pushActivity: idleTransactionStarted#1", "type": "debug" }, { "category": "xhr", "level": "info", "event_id": null, "timestamp": "2020-06-17T22:26:55.619446Z", "data": { "url": "/api/0/internal/health/", "status_code": 200, "method": "GET" }, "message": null, "type": "http" }, { "category": "sentry.transaction", "level": "info", "event_id": null, "timestamp": "2020-06-17T22:26:55.945016Z", "data": null, "message": "7787a027f3fb46c985aaa2287b3f4d09", "type": "default" } ] } }, { "type": "request", "data": { "fragment": null, "cookies": [], "inferredContentType": null, "env": null, "headers": [ [ "User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36" ] ], "url": "https://sentry.io/organizations/hellboy-meowmeow/issues/", "query": [ [ "project", "5236886" ] ], "data": null, "method": null } } ], "packages": {}, "sdk": { "version": "5.17.0", "name": "sentry.javascript.browser" }, "_meta": { "user": null, "context": null, "entries": {}, "contexts": null, "message": null, "packages": null, "tags": {}, "sdk": null }, "contexts": { "ForbiddenError": { "status": 403, "statusText": "Forbidden", "responseJSON": { "detail": "You do not have permission to perform this action." }, "type": "default" }, "browser": { "version": "83.0.4103", "type": "browser", "name": "Chrome" }, "os": { "version": "10", "type": "os", "name": "Windows" }, "trace": { "span_id": "83db1ad17e67dfe7", "type": "trace", "trace_id": "da6caabcd90e45fdb81f6655824a5f88", "op": "navigation" }, "organization": { "type": "default", "id": "323938", "slug": "hellboy-meowmeow" } }, "fingerprints": [ "fbe908cc63d63ea9763fd84cb6bad177" ], "context": { "resp": { "status": 403, "responseJSON": { "detail": "You do not have permission to perform this action." }, "name": "ForbiddenError", "statusText": "Forbidden", "message": "GET /organizations/hellboy-meowmeow/users/ 403", "stack": "Error\n at https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/app.js:1:480441\n at u (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:165:51006)\n at Generator._invoke (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:165:50794)\n at Generator.A.forEach.e. [as next] (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:165:51429)\n at n (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:16:68684)\n at s (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:16:68895)\n at https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:16:68954\n at new Promise ()\n at https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:16:68835\n at v (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/app.js:1:480924)\n at m (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/app.js:1:480152)\n at t.fetchMemberList (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/app.js:1:902983)\n at t.componentDidMount (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/app.js:1:900527)\n at t.componentDidMount (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:189:15597)\n at Pc (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:101023)\n at t.unstable_runWithPriority (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:189:3462)\n at Ko (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:45529)\n at Rc (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:97371)\n at Oc (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:87690)\n at https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:45820\n at t.unstable_runWithPriority (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:189:3462)\n at Ko (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:45529)\n at Zo (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:45765)\n at Jo (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:45700)\n at gc (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:84256)\n at Object.enqueueSetState (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:181:50481)\n at t.M.setState (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:173:1439)\n at t.onUpdate (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/app.js:1:543076)\n at a.n (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:119:149090)\n at a.emit (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:189:6550)\n at p.trigger (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:119:149379)\n at p.onInitializeUrlState (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/app.js:1:541711)\n at a.n (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:119:149090)\n at a.emit (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:189:6550)\n at Function.trigger (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:119:149379)\n at https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:119:149484\n at a (https://s1.sentry-cdn.com/_static/dde778f9f93a48e2b6e58ecb0c5eb8f2/sentry/dist/vendor.js:81:88800)" } }, "release": { "dateReleased": "2020-06-17T19:21:02.186004Z", "commitCount": 11, "url": "https://freight.getsentry.net/deploys/getsentry/production/8868/", "data": {}, "lastDeploy": { "name": "b65bc521378269d3eaefdc964f8ef56621414943 to prod", "url": null, "environment": "prod", "dateStarted": null, "dateFinished": "2020-06-17T19:20:55.641748Z", "id": "6883490" }, "deployCount": 1, "dateCreated": "2020-06-17T18:45:31.042157Z", "version": "b65bc521378269d3eaefdc964f8ef56621414943", "lastCommit": { "repository": { "status": "active", "integrationId": "2933", "externalSlug": "getsentry/getsentry", "name": "getsentry/getsentry", "provider": { "id": "integrations:github", "name": "GitHub" }, "url": "https://github.com/getsentry/getsentry", "id": "2", "dateCreated": "2016-10-10T21:36:45.373994Z" }, "pullRequest": null, "suspectCommitType": "", "dateCreated": "2020-06-17T18:43:37Z", "message": "feat(billing): Get a lot of money", "id": "b65bc521378269d3eaefdc964f8ef56621414943" }, "ref": "master" }, "crashFile": null, "location": "example.py:123", "culprit": "/books/new/", "groupingConfig": { "enhancements": "abc", "id": "2359823092345612392" }, "occurrence": null, "projectID": "5236886", "resolvedWith": [], "sdkUpdates": [] }, "summary": "Return an issue event" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/issues/{issue_id}/external-issues/": { "get": { "operationId": "listOrganizationIssueExternalIssues", "description": "Retrieve custom integration issue links for the given Sentry issue", "summary": "Retrieve custom integration issue links for the given Sentry issue", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Integration" ], "security": [ { "auth_token": [ "event:admin", "event:read", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the external issue link" }, "issueId": { "type": "string", "description": "ID of the Sentry issue" }, "serviceType": { "type": "string", "description": "Slug of the custom integration that created the external issue" }, "displayName": { "type": "string", "description": "Display name of the external issue, such as ABC-123" }, "webUrl": { "type": "string", "description": "URL of the external issue" } }, "required": [ "displayName", "id", "issueId", "serviceType", "webUrl" ] } }, "examples": { "RetrieveTheCustomIntegrationsAssociatedWithAnIssueId": { "value": [ { "id": "123456", "issueId": "1234567890", "serviceType": "example-app", "displayName": "example-issue#2", "webUrl": "https://example.com/my-test-project/issue/example-issue-2/this-is-an-example-python-exception" } ], "summary": "Retrieve the custom integrations associated with an issue id" } } } }, "description": "" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/issues/{issue_id}/external-issues/{external_issue_id}/": { "delete": { "operationId": "deleteOrganizationIssueExternalIssue", "description": "**Experimental:** This API is under active development and may change.\n\nRemove a custom integration's association with a Sentry issue. The external issue is not deleted.", "summary": "Unlink a Custom Integration's External Issue", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true }, { "in": "path", "name": "external_issue_id", "schema": { "type": "string" }, "description": "The ID of the custom integration issue link to remove.", "required": true } ], "tags": [ "Integration" ], "security": [ { "auth_token": [ "event:admin", "event:write" ] } ], "responses": { "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "description": "Conflict" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/issues/{issue_id}/hashes/": { "get": { "operationId": "listOrganizationIssueHashes", "description": "List the hashes that make up an issue. Each hash represents a grouping\nsignature used to aggregate individual events into this issue.", "summary": "List an Issue's Hashes", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true }, { "in": "query", "name": "full", "schema": { "type": "boolean", "default": true }, "description": "Specify true to include the full event body, including the stacktrace, in the event payload. When true, the page size is capped at 10." }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "event:admin", "event:read", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Fingerprint hash" }, "latestEvent": { "anyOf": [ { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "nullable": true, "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateReceived": { "type": "string", "format": "date-time", "nullable": true, "description": "When Sentry received the event (ISO 8601)" }, "size": { "type": "integer", "nullable": true, "description": "Size of the event payload in bytes" }, "entries": { "type": "array", "items": {}, "description": "Event interfaces, such as exception, breadcrumbs and request, each with a type and data" }, "dist": { "type": "string", "nullable": true, "description": "Distribution of the release the event was sent with" }, "packages": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Modules loaded when the event occurred, keyed by module name with their versions" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type, such as error, default or transaction" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "occurrence": { "anyOf": [ { "type": "object", "description": "A metric issue occurrence. `evidenceData` describes the detector and query that fired.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "enum": [ 8001 ], "type": "integer", "description": "Group type ID of metric issues, always 8001" }, "evidenceData": { "type": "object", "properties": { "detectorId": { "type": "integer", "description": "ID of the detector that created the occurrence" }, "alertId": { "type": "integer", "nullable": true, "description": "ID of the metric alert rule the detector replaces. Null when there's none" }, "value": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Metric value the anomaly detection model scored" }, "sourceId": { "type": "string", "description": "ID of the data source that produced the value" }, "subscriptionId": { "type": "string", "description": "ID of the query subscription that produced the value" }, "timestamp": { "type": "string", "description": "When the value was measured" } }, "required": [ "sourceId", "subscriptionId", "timestamp", "value" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Metric value that triggered the detector, or the anomaly detection result for dynamic detectors" }, "dataPacketSourceId": { "type": "string", "description": "ID of the query subscription that sent the data" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the detector condition" }, "type": { "type": "string", "description": "Type of the condition, such as gt, lt or anomaly_detection" }, "comparison": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "sensitivity": { "enum": [ "low", "medium", "high" ], "type": "string", "description": "How sensitive the anomaly detection is" }, "seasonality": { "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "type": "string", "description": "Seasonality the anomaly detection model uses" }, "thresholdType": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "Direction of anomalies to detect: 0 above, 1 below, 2 above and below" } }, "required": [ "seasonality", "sensitivity", "thresholdType" ] } ], "description": "Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition" }, "conditionResult": { "type": "integer", "description": "Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions of the detector" }, "config": { "type": "object", "properties": { "detectionType": { "enum": [ "static", "percent", "dynamic" ], "type": "string", "description": "How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection" }, "comparisonDelta": { "type": "integer", "nullable": true, "description": "Time window in seconds that a percent change detector compares with" } }, "required": [ "detectionType" ], "description": "Configuration of the detector" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "type": "string", "description": "Type of the data source, such as snuba_query_subscription" }, "sourceId": { "type": "string", "description": "ID of the source object, such as the query subscription" }, "queryObj": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ], "description": "Query subscription the data source reads" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "description": "Data sources of the detector" } }, "required": [ "alertId", "conditions", "config", "dataPacketSourceId", "dataSources", "detectorId", "value" ], "description": "Detector and query that created the occurrence" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "description": "An issue occurrence of any type. `evidenceData` keys are camelCase.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "type": "integer", "description": "Group type ID of the occurrence" }, "evidenceData": { "type": "object", "additionalProperties": {}, "description": "Data of the occurrence. Its keys depend on the group type" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise" }, "_meta": { "type": "object", "additionalProperties": {}, "description": "Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" }, "name": { "type": "string", "nullable": true, "description": "Name of the user" }, "geo": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Location of the user, with keys such as country_code, city and region" }, "data": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Extra data the SDK sent about the user" } }, "nullable": true, "description": "User context of the event" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query that matches this tag's user, such as user.email:\"user@example.com\". Only set for user tags" }, "key": { "type": "string", "description": "Tag key" }, "value": { "type": "string", "description": "Tag value" } }, "required": [ "key", "value" ] }, "description": "Tags attached to the event" }, "contexts": { "type": "object", "nullable": true, "additionalProperties": { "anyOf": [ { "description": "Application information.\n\n App context describes the application. As opposed to the runtime, this is the actual\n application that was running and carries metadata about the current session.", "type": "object", "additionalProperties": true, "properties": { "app_build": { "description": "Internal build ID as it appears on the platform.", "type": "string", "nullable": true }, "app_identifier": { "description": "Version-independent application identifier, often a dotted bundle ID.", "type": "string", "nullable": true }, "app_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Amount of memory used by the application in bytes." }, "app_name": { "description": "Application name as it appears on the platform.", "type": "string", "nullable": true }, "app_start_time": { "description": "Start time of the app.\n\n Formatted UTC timestamp when the user started the application.", "type": "string", "nullable": true }, "app_version": { "description": "Application version as it appears on the platform.", "type": "string", "nullable": true }, "build_type": { "description": "String identifying the kind of build. For example, `testflight`.", "type": "string", "nullable": true }, "device_app_hash": { "description": "Application-specific device identifier.", "type": "string", "nullable": true }, "in_foreground": { "description": "A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user.", "type": "boolean", "nullable": true }, "view_names": { "description": "The names of the currently visible views.", "type": "array", "items": { "type": "string", "nullable": true }, "nullable": true }, "type": { "type": "string", "enum": [ "app" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Web browser information.", "type": "object", "additionalProperties": true, "properties": { "name": { "description": "Display name of the browser application.", "type": "string", "nullable": true }, "version": { "description": "Version string of the browser.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "browser" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "default" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true }, { "description": "Device information.\n\n Device context describes the device that caused the event. This is most appropriate for mobile\n applications.", "type": "object", "additionalProperties": true, "properties": { "arch": { "description": "Native cpu architecture of the device.", "type": "string", "nullable": true }, "battery_level": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Current battery level in %.\n\n If the device has a battery, this can be a floating point value defining the battery level\n (in the range 0-100)." }, "battery_status": { "description": "Status of the device's battery.\n\n For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`.", "type": "string", "nullable": true }, "boot_time": { "description": "Indicator when the device was booted.", "type": "string", "nullable": true }, "brand": { "description": "Brand of the device.", "type": "string", "nullable": true }, "charging": { "description": "Whether the device was charging or not.", "type": "boolean", "nullable": true }, "cpu_description": { "description": "CPU description.\n\n For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz.", "type": "string", "nullable": true }, "device_type": { "description": "Kind of device the application is running on.\n\n For example, `Unknown`, `Handheld`, `Console`, `Desktop`.", "type": "string", "nullable": true }, "device_unique_identifier": { "description": "Unique device identifier.", "type": "string", "nullable": true }, "external_free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Free size of the attached external storage in bytes (eg: android SDK card)." }, "external_storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total size of the attached external storage in bytes (eg: android SDK card)." }, "family": { "description": "Family of the device model.\n\n This is usually the common part of model names across generations. For instance, `iPhone`\n would be a reasonable family, so would be `Samsung Galaxy`.", "type": "string", "nullable": true }, "free_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is still available in bytes." }, "free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much storage is free in bytes." }, "locale": { "description": "ISO 639-1 code of the locale the device is set to.", "type": "string", "nullable": true }, "low_memory": { "description": "Whether the device was low on memory.", "type": "boolean", "nullable": true }, "manufacturer": { "description": "Manufacturer of the device.", "type": "string", "nullable": true }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total memory available in bytes." }, "model": { "description": "Device model.\n\n This, for example, can be `Samsung Galaxy S3`.", "type": "string", "nullable": true }, "model_id": { "description": "Device model (internal identifier).\n\n An internal hardware revision to identify the device exactly.", "type": "string", "nullable": true }, "name": { "description": "Name of the device.", "type": "string", "nullable": true }, "online": { "description": "Whether the device was online or not.", "type": "boolean", "nullable": true }, "orientation": { "description": "Current screen orientation.\n\n This can be a string `portrait` or `landscape` to define the orientation of a device.", "type": "string", "nullable": true }, "processor_count": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Number of \"logical processors\".\n\n For example, 8." }, "processor_frequency": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Processor frequency in MHz.\n\n Note that the actual CPU frequency might vary depending on current load and\n power conditions, especially on low-powered devices like phones and laptops." }, "screen_density": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Device screen density." }, "screen_dpi": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Screen density as dots-per-inch." }, "screen_height_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Height of the screen in pixels." }, "screen_resolution": { "description": "Device screen resolution.\n\n (e.g.: 800x600, 3040x1444)", "type": "string", "nullable": true }, "screen_width_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Width of the screen in pixels." }, "simulator": { "description": "Simulator/prod indicator.", "type": "boolean", "nullable": true }, "storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total storage size of the device in bytes." }, "supports_accelerometer": { "description": "Whether the accelerometer is available on the device.", "type": "boolean", "nullable": true }, "supports_audio": { "description": "Whether audio is available on the device.", "type": "boolean", "nullable": true }, "supports_gyroscope": { "description": "Whether the gyroscope is available on the device.", "type": "boolean", "nullable": true }, "supports_location_service": { "description": "Whether location support is available on the device.", "type": "boolean", "nullable": true }, "supports_vibration": { "description": "Whether vibration is available on the device.", "type": "boolean", "nullable": true }, "timezone": { "description": "Timezone of the device.", "type": "string", "nullable": true }, "usable_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is usable for the app in bytes." }, "uuid": { "description": "UUID of the device.", "type": "string", "format": "uuid", "nullable": true }, "type": { "type": "string", "enum": [ "device" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "GPU information.\n\n Example:\n\n ```json\n \"gpu\": {\n \"name\": \"AMD Radeon Pro 560\",\n \"vendor_name\": \"Apple\",\n \"memory_size\": 4096,\n \"api_type\": \"Metal\",\n \"multi_threaded_rendering\": true,\n \"version\": \"Metal\",\n \"npot_support\": \"Full\"\n }\n ```", "type": "object", "additionalProperties": true, "properties": { "api_type": { "description": "The device low-level API type.\n\n Examples: `\"Apple Metal\"` or `\"Direct3D11\"`", "type": "string", "nullable": true }, "graphics_shader_level": { "description": "Approximate \"shader capability\" level of the graphics device.\n\n For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown)", "type": "string", "nullable": true }, "id": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "The PCI identifier of the graphics device." }, "max_texture_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Largest size of a texture that is supported by the graphics hardware.\n\n For Example: 16384" }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The total GPU memory available in Megabytes." }, "multi_threaded_rendering": { "description": "Whether the GPU has multi-threaded rendering or not.", "type": "boolean", "nullable": true }, "name": { "description": "The name of the graphics device.", "type": "string", "nullable": true }, "npot_support": { "description": "The Non-Power-Of-Two support.", "type": "string", "nullable": true }, "supports_compute_shaders": { "description": "Whether compute shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_draw_call_instancing": { "description": "Whether GPU draw call instancing is supported.", "type": "boolean", "nullable": true }, "supports_geometry_shaders": { "description": "Whether geometry shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_ray_tracing": { "description": "Whether ray tracing is available on the device.", "type": "boolean", "nullable": true }, "vendor_id": { "description": "The PCI vendor identifier of the graphics device.", "type": "string", "nullable": true }, "vendor_name": { "description": "The vendor name as reported by the graphics device.", "type": "string", "nullable": true }, "version": { "description": "The Version of the graphics device.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "gpu" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Monitor information.", "type": "object", "additionalProperties": true, "properties": { "type": { "type": "string", "enum": [ "monitor" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Operating system information.\n\n OS context describes the operating system on which the event was created. In web contexts, this\n is the operating system of the browser (generally pulled from the User-Agent string).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Internal build number of the operating system.", "type": "string", "nullable": true }, "kernel_version": { "description": "Current kernel version.\n\n This is typically the entire output of the `uname` syscall.", "type": "string", "nullable": true }, "name": { "description": "Name of the operating system.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed operating system info.\n\n An unprocessed description string obtained by the operating system. For some well-known\n runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are\n not explicitly given.", "type": "string", "nullable": true }, "rooted": { "description": "Indicator if the OS is rooted (mobile mostly).", "type": "boolean", "nullable": true }, "version": { "description": "Version of the operating system.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "os" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "OpenTelemetry Context\n\n If an event has this context, it was generated from an OpenTelemetry signal (trace, metric, log).", "type": "object", "additionalProperties": true, "properties": { "attributes": { "description": "Attributes of the OpenTelemetry span that maps to a Sentry event.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "resource": { "description": "Information about an OpenTelemetry resource.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "type": { "type": "string", "enum": [ "otel" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Runtime information.\n\n Runtime context describes a runtime in more detail. Typically, this context is present in\n `contexts` multiple times if multiple runtimes are involved (for instance, if you have a\n JavaScript application running on top of JVM).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Application build string, if it is separate from the version.", "type": "string", "nullable": true }, "name": { "description": "Runtime name.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed runtime info.\n\n An unprocessed description string obtained by the runtime. For some well-known runtimes,\n Sentry will attempt to parse `name` and `version` from this string, if they are not\n explicitly given.", "type": "string", "nullable": true }, "version": { "description": "Runtime version string.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "runtime" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Trace context", "type": "object", "additionalProperties": true, "properties": { "client_sample_rate": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The client-side sample rate as reported in the envelope's `trace.sample_rate` header.\n\n The server takes this field from envelope headers and writes it back into the event. Clients\n should not ever send this value." }, "exclusive_time": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The amount of time in milliseconds spent in this transaction span,\n excluding its immediate child spans." }, "op": { "description": "Span type (see `OperationType` docs).", "type": "string", "nullable": true }, "origin": { "description": "The origin of the trace indicates what created the trace (see [OriginType] docs).", "type": "string", "nullable": true }, "parent_span_id": { "description": "The ID of the span enclosing this span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "sampled": { "description": "Track whether the trace connected to this event has been sampled entirely.\n\n This flag only applies to events with [`Error`] type that have an associated dynamic sampling context.", "type": "boolean", "nullable": true }, "span_id": { "description": "The ID of the span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "status": { "description": "Whether the trace failed or succeeded. Currently only used to indicate status of individual\n transactions.", "nullable": true, "type": "string", "enum": [ "ok", "cancelled", "unknown", "invalid_argument", "deadline_exceeded", "not_found", "already_exists", "permission_denied", "resource_exhausted", "failed_precondition", "aborted", "out_of_range", "unimplemented", "internal_error", "unavailable", "data_loss", "unauthenticated", null ] }, "trace_id": { "description": "The trace ID.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "type": { "type": "string", "enum": [ "trace" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "unity" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true } ] }, "description": "Contexts of the event, such as device, os, browser and runtime, keyed by alias" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the SDK that sent the event, such as sentry.python" }, "version": { "type": "string", "nullable": true, "description": "Version of the SDK" } }, "required": [ "name", "version" ], "nullable": true, "description": "SDK that sent the event" }, "context": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Additional data sent with the event in its extra field" }, "errors": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Type of the processing error, such as invalid_data or js_no_source" }, "message": { "type": "string", "description": "Human-readable message of the error" }, "data": { "type": "object", "description": "Details of the error, such as the name of the invalid field. Other keys depend on the error type", "properties": { "name": { "type": "string", "nullable": true, "description": "Affected key or path in the event" }, "message": { "type": "string", "description": "Details of the error from the processor that hit it" }, "url": { "type": "string", "description": "URL that couldn't be fetched, such as a source file" }, "image_path": { "type": "string", "description": "Path of the debug image the error is about" }, "image_name": { "type": "string", "description": "Name of the debug image the error is about" }, "image_uuid": { "type": "string", "description": "Debug ID of the image the error is about" }, "image_arch": { "type": "string", "description": "CPU architecture of the image the error is about" }, "symbolicator_type": { "type": "string", "description": "Error type Symbolicator reported, such as missing_source" }, "source": { "type": "string", "description": "Source file or URL the error is about" }, "sourcemap": { "type": "string", "description": "Source map the error is about" }, "row": { "type": "integer", "description": "Line of the location that couldn't be mapped" }, "column": { "type": "integer", "description": "Column of the location that couldn't be mapped" }, "sdk_time": { "type": "string", "description": "Time the SDK reported, for clock drift errors" }, "server_time": { "type": "string", "description": "Time the server received the event, for clock drift errors" } } } }, "required": [ "data", "message", "type" ] }, "description": "Errors Sentry found while processing the event" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "fingerprints": { "type": "array", "items": { "type": "string" }, "description": "Grouping hashes calculated for the event" }, "groupingConfig": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the grouping config, such as newstyle:2026-01-20" }, "enhancements": { "type": "string", "description": "Stack trace rules of the project, as an encoded string" } }, "required": [ "enhancements", "id" ], "description": "Grouping configuration used to group the event" }, "startTimestamp": { "type": "number", "format": "double", "description": "When the transaction started, as a Unix timestamp in seconds" }, "endTimestamp": { "type": "number", "format": "double", "description": "When the transaction ended, as a Unix timestamp in seconds" }, "measurements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] }, "nullable": true, "description": "Measurements recorded for the transaction, such as web vitals, keyed by name" }, "breakdowns": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] } }, "nullable": true, "description": "Span operation breakdowns for the transaction, keyed by breakdown name" } }, "required": [ "_meta", "context", "contexts", "dateReceived", "dist", "entries", "errors", "eventID", "groupID", "id", "location", "message", "metadata", "occurrence", "packages", "platform", "projectID", "sdk", "size", "tags", "title", "type", "user" ] }, { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "event.type": { "type": "string", "description": "Event type, such as error, default or transaction" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" }, "name": { "type": "string", "nullable": true, "description": "Name of the user" }, "geo": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Location of the user, with keys such as country_code, city and region" }, "data": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Extra data the SDK sent about the user" } }, "nullable": true, "description": "User context of the event" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query that matches this tag's user, such as user.email:\"user@example.com\". Only set for user tags" }, "key": { "type": "string", "description": "Tag key" }, "value": { "type": "string", "description": "Tag value" } }, "required": [ "key", "value" ] }, "description": "Tags attached to the event" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } } }, "required": [ "crashFile", "culprit", "dateCreated", "event.type", "eventID", "groupID", "id", "location", "message", "metadata", "platform", "projectID", "tags", "title", "user" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Latest event with the hash. Null when the event isn't found" }, "mergedBySeer": { "type": "boolean", "description": "Whether Seer merged the hash into the issue as a similar error" }, "seerMatchDistance": { "type": "number", "format": "double", "nullable": true, "description": "Distance between the hash's stack trace and the issue's when Seer merged them. Null when Seer didn't merge the hash" } }, "required": [ "id", "latestEvent", "mergedBySeer", "seerMatchDistance" ] } }, "examples": { "ReturnAnIssue'sHashes": { "value": [ { "id": "53aa54ab27474eaab1fc1d0f7f86d2f1", "latestEvent": { "id": "9999aaafcc8b46d797c23c6077c6ff01", "groupID": "1341191803", "eventID": "9999aaaaca8b46d797c23c6077c6ff01", "projectID": "5236886", "message": "", "title": "This is an example Python exception", "location": "example.py:123", "user": { "username": null, "name": "Hell Boy", "ip_address": "192.168.1.1", "email": "hell@boy.cat", "data": { "isStaff": false }, "id": "550747" }, "tags": [ { "value": "Chrome 83.0.4103", "key": "browser" }, { "value": "Chrome", "key": "browser.name" }, { "value": "prod", "key": "environment" }, { "value": "yes", "key": "handled" }, { "value": "error", "key": "level" }, { "value": "generic", "key": "mechanism" } ], "platform": "javascript", "dateReceived": "2020-06-17T22:26:56.428721Z", "contexts": { "browser": { "version": "83.0.4103", "type": "browser", "name": "Chrome" }, "os": { "version": "10", "type": "os", "name": "Windows" }, "trace": { "span_id": "83db1ad17e67dfe7", "type": "trace", "trace_id": "da6caabcd90e45fdb81f6655824a5f88", "op": "navigation" }, "organization": { "type": "default", "id": "323938", "slug": "hellboy-meowmeow" } }, "size": 107762, "entries": [ { "type": "exception", "data": { "values": [ { "stacktrace": { "frames": [ { "function": "ignoreOnError", "errors": null, "colNo": 23, "vars": null, "package": null, "absPath": "webpack:////usr/src/getsentry/src/sentry/node_modules/@sentry/browser/esm/helpers.js", "inApp": false, "lineNo": 71, "module": "usr/src/getsentry/src/sentry/node_modules/@sentry/browser/esm/helpers", "filename": "/usr/src/getsentry/src/sentry/node_modules/@sentry/browser/esm/helpers.js", "platform": null, "instructionAddr": null, "context": [ [ 70, " // is expected behavior and NOT indicative of a bug with sentry.javascript." ], [ 71, " return fn.apply(this, wrappedArguments);" ], [ 72, " // tslint:enable:no-unsafe-any" ] ], "symbolAddr": null, "trust": null, "symbol": null } ], "framesOmitted": null, "registers": null, "hasSystemFrames": true }, "module": null, "rawStacktrace": null, "mechanism": { "type": "generic", "handled": true }, "threadId": null, "value": "GET /organizations/hellboy-meowmeow/users/ 403", "type": "ForbiddenError" } ], "excOmitted": null, "hasSystemFrames": true } }, { "type": "breadcrumbs", "data": { "values": [ { "category": "xhr", "level": "info", "event_id": null, "timestamp": "2020-06-17T22:26:55.619446Z", "data": { "url": "/api/0/internal/health/", "status_code": 200, "method": "GET" }, "message": null, "type": "http" } ] } }, { "type": "request", "data": { "fragment": null, "cookies": [], "inferredContentType": null, "env": null, "headers": [ [ "User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36" ] ], "url": "https://sentry.io/organizations/hellboy-meowmeow/issues/", "query": [ [ "project", "5236886" ] ], "data": null, "method": null } } ], "dist": null, "sdk": { "version": "5.17.0", "name": "sentry.javascript.browser" }, "context": { "resp": { "status": 403, "responseJSON": { "detail": "You do not have permission to perform this action." }, "name": "ForbiddenError", "statusText": "Forbidden", "message": "GET /organizations/hellboy-meowmeow/users/ 403" } }, "packages": {}, "type": "error", "metadata": { "type": "ForbiddenError", "value": "GET /organizations/hellboy-meowmeow/users/ 403" }, "errors": [ { "data": { "column": 8, "source": "https://s1.sentry-cdn.com/_static/bloopbloop/sentry/dist/app.js.map", "row": 15 }, "message": "Invalid location in sourcemap", "type": "js_invalid_sourcemap_location" } ], "occurrence": null, "_meta": { "user": null, "context": null, "entries": {}, "contexts": null, "message": null, "packages": null, "tags": {}, "sdk": null }, "crashFile": null, "culprit": "/books/new/", "dateCreated": "2020-06-17T22:26:56.098086Z", "fingerprints": [ "fbe908cc63d63ea9763fd84cb6bad177" ], "groupingConfig": { "enhancements": "abc", "id": "2359823092345612392" } }, "mergedBySeer": true, "seerMatchDistance": 0.01 } ], "summary": "Return an issue's hashes" } } } }, "description": "" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/issues/{issue_id}/integrations/": { "get": { "operationId": "listOrganizationIssueIntegrations", "description": "**Experimental:** This API is under active development and may change.\n\nList the organization's issue-tracker integrations and the external issues\nlinked to this Sentry issue through each integration. The external issue's\n`id` is the Sentry link identifier used by the unlink endpoint.", "summary": "List an Issue's Tracker Integrations and Links", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true }, { "in": "query", "name": "cursor", "schema": { "type": "string", "minLength": 1 }, "description": "A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.", "x-learn-more": "https://docs.sentry.io/api/pagination/" }, { "in": "query", "name": "per_page", "schema": { "type": "integer" }, "description": "The maximum number of integrations to return per page (1–100)." } ], "tags": [ "Integration" ], "security": [ { "auth_token": [ "event:admin", "event:read", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the integration" }, "name": { "type": "string", "description": "Name of the integration, usually the connected account or workspace" }, "icon": { "type": "string", "nullable": true, "description": "URL of the connected account's icon" }, "domainName": { "type": "string", "nullable": true, "description": "Domain of the connected account, such as github.com/example-org" }, "accountType": { "type": "string", "nullable": true, "description": "Type of the connected account, such as Organization or User" }, "scopes": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Permission scopes granted to the integration" }, "outOfDate": { "type": "boolean", "nullable": true, "description": "Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model" }, "missingFeatures": { "type": "array", "items": { "type": "object", "description": "A feature the installation can no longer support, named by the permission\ntier it falls short of, so the update-permissions modal can list them.", "properties": { "key": { "type": "string", "description": "Key of the missing feature" }, "description": { "type": "string", "description": "Description of the missing feature" } }, "required": [ "description", "key" ] }, "nullable": true, "description": "Features the installation can't support because of missing permissions. Null for providers without a permissions model" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "description": "Integration provider details" }, "externalIssues": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the link between the issue and the external issue" }, "key": { "type": "string", "description": "Key of the external issue in the provider, such as PROJ-123" }, "url": { "type": "string", "description": "URL of the external issue" }, "title": { "type": "string", "nullable": true, "description": "Title of the external issue" }, "description": { "type": "string", "nullable": true, "description": "Description of the external issue" }, "displayName": { "type": "string", "description": "Name to show for the external issue, such as owner/repo#1. Empty when the integration doesn't set one" } }, "required": [ "description", "displayName", "id", "key", "title", "url" ] }, "description": "External issues of this integration linked to the issue" } }, "required": [ "accountType", "domainName", "externalIssues", "icon", "id", "missingFeatures", "name", "outOfDate", "provider", "scopes", "status" ] } } } }, "description": "" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-experimental": true } }, "/organizations/{organization_id_or_slug}/issues/{issue_id}/integrations/{integration_id}/": { "get": { "operationId": "Retrieve an Integration's Issue Config for an Issue", "description": "Retrieve the form fields needed to either link an existing external issue\n(such as a Jira ticket or GitHub issue) to a Sentry issue, or create a new\none. The returned `linkIssueConfig`/`createIssueConfig` describes the fields\nto submit back to this endpoint via `PUT`/`POST` respectively.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true }, { "in": "path", "name": "integration_id", "schema": { "type": "string" }, "description": "The ID of the integration installed on the organization.", "required": true }, { "in": "query", "name": "action", "schema": { "type": "string", "enum": [ "create", "link" ] }, "description": "Whether to fetch the config for linking an existing external issue (`link`) or creating a new one (`create`).", "required": true } ], "tags": [ "Integration" ], "security": [ { "auth_token": [ "event:admin", "event:read", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the integration" }, "name": { "type": "string", "description": "Name of the integration, usually the connected account or workspace" }, "icon": { "type": "string", "nullable": true, "description": "URL of the connected account's icon" }, "domainName": { "type": "string", "nullable": true, "description": "Domain of the connected account, such as github.com/example-org" }, "accountType": { "type": "string", "nullable": true, "description": "Type of the connected account, such as Organization or User" }, "scopes": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Permission scopes granted to the integration" }, "outOfDate": { "type": "boolean", "nullable": true, "description": "Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model" }, "missingFeatures": { "type": "array", "items": { "type": "object", "description": "A feature the installation can no longer support, named by the permission\ntier it falls short of, so the update-permissions modal can list them.", "properties": { "key": { "type": "string", "description": "Key of the missing feature" }, "description": { "type": "string", "description": "Description of the missing feature" } }, "required": [ "description", "key" ] }, "nullable": true, "description": "Features the installation can't support because of missing permissions. Null for providers without a permissions model" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "description": "Integration provider details" }, "linkIssueConfig": { "type": "array", "items": { "type": "object", "description": "JSON form field returned by an issue integration.", "properties": { "name": { "type": "string", "description": "Name of the form field" }, "label": { "type": "string", "description": "Label of the form field" }, "type": { "type": "string", "description": "Type of the form field, such as string, text, select or boolean" }, "default": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Default value of the field" }, "defaultValue": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Default value of the field, for integrations that use this key" }, "required": { "type": "boolean", "description": "Whether the field is required" }, "choices": { "type": "array", "items": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "minLength": 2, "maxLength": 2 }, "description": "Options of a select field, as [value, label] pairs" }, "url": { "type": "string", "description": "URL that returns the field's options as the user types" }, "updatesForm": { "type": "boolean", "description": "Whether changing the field reloads the form" }, "multiple": { "type": "boolean", "description": "Whether the field accepts more than one value" }, "autosize": { "type": "boolean", "description": "Whether a text field grows with its content" }, "maxRows": { "type": "integer", "description": "Maximum number of rows of a text field" }, "maxLength": { "type": "integer", "description": "Maximum length of the value" }, "help": { "type": "string", "description": "Help text of the field" }, "placeholder": { "type": "string", "description": "Placeholder of the field" }, "prefetch": { "type": "boolean", "description": "Whether the field's options load before the user types" }, "dependsOn": { "type": "array", "items": { "type": "string" }, "description": "Names of the fields whose values the field's options depend on" } }, "required": [ "label", "name", "type" ] }, "description": "Form fields for linking an existing external issue. Only set when action is link" }, "createIssueConfig": { "type": "array", "items": { "type": "object", "description": "JSON form field returned by an issue integration.", "properties": { "name": { "type": "string", "description": "Name of the form field" }, "label": { "type": "string", "description": "Label of the form field" }, "type": { "type": "string", "description": "Type of the form field, such as string, text, select or boolean" }, "default": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Default value of the field" }, "defaultValue": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Default value of the field, for integrations that use this key" }, "required": { "type": "boolean", "description": "Whether the field is required" }, "choices": { "type": "array", "items": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "minLength": 2, "maxLength": 2 }, "description": "Options of a select field, as [value, label] pairs" }, "url": { "type": "string", "description": "URL that returns the field's options as the user types" }, "updatesForm": { "type": "boolean", "description": "Whether changing the field reloads the form" }, "multiple": { "type": "boolean", "description": "Whether the field accepts more than one value" }, "autosize": { "type": "boolean", "description": "Whether a text field grows with its content" }, "maxRows": { "type": "integer", "description": "Maximum number of rows of a text field" }, "maxLength": { "type": "integer", "description": "Maximum length of the value" }, "help": { "type": "string", "description": "Help text of the field" }, "placeholder": { "type": "string", "description": "Placeholder of the field" }, "prefetch": { "type": "boolean", "description": "Whether the field's options load before the user types" }, "dependsOn": { "type": "array", "items": { "type": "string" }, "description": "Names of the fields whose values the field's options depend on" } }, "required": [ "label", "name", "type" ] }, "description": "Form fields for creating an external issue. Only set when action is create" } }, "required": [ "accountType", "domainName", "icon", "id", "missingFeatures", "name", "outOfDate", "provider", "scopes", "status" ] }, "examples": { "ConfigForCreatingANewExternalIssue": { "value": { "id": "123456", "name": "Example Jira", "icon": "https://example.atlassian.net/icon.png", "domainName": "example.atlassian.net", "accountType": null, "scopes": null, "outOfDate": null, "missingFeatures": null, "status": "active", "provider": { "key": "jira", "slug": "jira", "name": "Jira", "canAdd": false, "canDisable": false, "features": [ "issue-basic", "issue-sync", "ticket-rules" ], "aspects": {} }, "createIssueConfig": [ { "name": "title", "label": "Title", "default": "TypeError: Cannot read property \"foo\" of undefined", "type": "string", "required": true }, { "name": "description", "label": "Description", "default": "Sentry Issue: PROJECT-1\nhttps://example.sentry.io/issues/1/", "type": "textarea", "autosize": true, "maxRows": 10 } ] }, "summary": "Config for creating a new external issue" }, "ConfigForLinkingAnExistingExternalIssue": { "value": { "id": "123456", "name": "Example Jira", "icon": "https://example.atlassian.net/icon.png", "domainName": "example.atlassian.net", "accountType": null, "scopes": null, "outOfDate": null, "missingFeatures": null, "status": "active", "provider": { "key": "jira", "slug": "jira", "name": "Jira", "canAdd": false, "canDisable": false, "features": [ "issue-basic", "issue-sync", "ticket-rules" ], "aspects": {} }, "linkIssueConfig": [ { "name": "externalIssue", "label": "Issue", "default": "", "type": "string" } ] }, "summary": "Config for linking an existing external issue" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "post": { "operationId": "Create an External Issue and Link It to an Issue", "description": "Create a new issue in the external provider (such as a Jira ticket or GitHub\nissue) and link it to the given Sentry issue. The accepted fields are\nintegration-specific; fetch them from the `createIssueConfig` returned by the\n`GET` endpoint with `?action=create`.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true }, { "in": "path", "name": "integration_id", "schema": { "type": "string" }, "description": "The ID of the integration installed on the organization.", "required": true } ], "tags": [ "Integration" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the external issue to create." }, "description": { "type": "string", "description": "The description (body) of the external issue to create." } }, "required": [ "title" ] } } }, "required": true }, "security": [ { "auth_token": [ "event:admin", "event:write" ] } ], "responses": { "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the link between the issue and the external issue" }, "key": { "type": "string", "description": "Key of the external issue in the provider, such as PROJ-123" }, "url": { "type": "string", "description": "URL of the external issue" }, "integrationId": { "type": "integer", "description": "ID of the integration" }, "displayName": { "type": "string", "description": "Name to show for the external issue, such as owner/repo#1. Empty when the integration doesn't set one" } }, "required": [ "displayName", "id", "integrationId", "key", "url" ] }, "examples": { "CreateOrLinkAnExternalIssue": { "value": { "id": 5, "key": "PROJECT-123", "url": "https://example.atlassian.net/browse/PROJECT-123", "integrationId": 123456, "displayName": "PROJECT-123" }, "summary": "Create or link an external issue" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } }, "put": { "operationId": "Link an Existing External Issue to an Issue", "description": "Link an issue that already exists in the external provider (such as a Jira\nticket or GitHub issue) to the given Sentry issue. Additional accepted fields\nare integration-specific; fetch them from the `linkIssueConfig` returned by\nthe `GET` endpoint with `?action=link`. Linking the same issue again returns\nthe existing link with HTTP 200, without repeating provider comments. A new\nlink returns HTTP 201.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true }, { "in": "path", "name": "integration_id", "schema": { "type": "string" }, "description": "The ID of the integration installed on the organization.", "required": true } ], "tags": [ "Integration" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "externalIssue": { "type": "string", "description": "The identifier or full URL of the existing external issue to link. URL support depends on the selected integration." }, "repo": { "type": "string", "description": "The repository containing the external issue, in owner/name format. Required by GitHub, GitHub Enterprise, and Bitbucket integrations." }, "comment": { "type": "string", "description": "An optional comment to post to the external issue when linking, if supported by the integration." } }, "required": [ "externalIssue" ] } } }, "required": true }, "security": [ { "auth_token": [ "event:admin", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the link between the issue and the external issue" }, "key": { "type": "string", "description": "Key of the external issue in the provider, such as PROJ-123" }, "url": { "type": "string", "description": "URL of the external issue" }, "integrationId": { "type": "integer", "description": "ID of the integration" }, "displayName": { "type": "string", "description": "Name to show for the external issue, such as owner/repo#1. Empty when the integration doesn't set one" } }, "required": [ "displayName", "id", "integrationId", "key", "url" ] } } }, "description": "" }, "201": { "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the link between the issue and the external issue" }, "key": { "type": "string", "description": "Key of the external issue in the provider, such as PROJ-123" }, "url": { "type": "string", "description": "URL of the external issue" }, "integrationId": { "type": "integer", "description": "ID of the integration" }, "displayName": { "type": "string", "description": "Name to show for the external issue, such as owner/repo#1. Empty when the integration doesn't set one" } }, "required": [ "displayName", "id", "integrationId", "key", "url" ] }, "examples": { "CreateOrLinkAnExternalIssue": { "value": { "id": 5, "key": "PROJECT-123", "url": "https://example.atlassian.net/browse/PROJECT-123", "integrationId": 123456, "displayName": "PROJECT-123" }, "summary": "Create or link an external issue" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" }, "409": { "content": { "application/json": { "schema": { "type": "object", "description": "DRF's standard error-body shape: `{\"detail\": str}`.\n\nUse in `Response[T] | Response[DetailResponse]` annotations on endpoints\nwhose inline error returns are exactly `Response({\"detail\": \"...\"}, status=4xx)`.\nEndpoints whose error bodies have richer or different shapes should\ndeclare their own local TypedDicts instead.", "properties": { "detail": { "type": "string" } }, "required": [ "detail" ] } } }, "description": "" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true }, "delete": { "operationId": "Unlink an External Issue from an Issue", "description": "Remove the link between a Sentry issue and an external issue. If no other\nSentry issues reference the external issue, the link record is deleted\nentirely. An absent link also returns 204. This does not delete the issue\nin the external provider.", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true }, { "in": "path", "name": "integration_id", "schema": { "type": "string" }, "description": "The ID of the integration installed on the organization.", "required": true }, { "in": "query", "name": "externalIssue", "schema": { "type": "integer" }, "description": "The ID of the `ExternalIssue` link to remove.", "required": true } ], "tags": [ "Integration" ], "security": [ { "auth_token": [ "event:admin", "event:write" ] } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "409": { "content": { "application/json": { "schema": { "type": "object", "description": "DRF's standard error-body shape: `{\"detail\": str}`.\n\nUse in `Response[T] | Response[DetailResponse]` annotations on endpoints\nwhose inline error returns are exactly `Response({\"detail\": \"...\"}, status=4xx)`.\nEndpoints whose error bodies have richer or different shapes should\ndeclare their own local TypedDicts instead.", "properties": { "detail": { "type": "string" } }, "required": [ "detail" ] } } }, "description": "" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" }, "x-sentry-idempotent": true } }, "/organizations/{organization_id_or_slug}/issues/{issue_id}/tags/{key}/": { "get": { "operationId": "getOrganizationIssueTag", "description": "Return a list of values associated with this key for an issue. When paginated can return at most 1000 values.", "summary": "Retrieve Tag Details", "parameters": [ { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true }, { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "key", "schema": { "type": "string" }, "description": "The tag key to look the values up for.", "required": true }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "event:admin", "event:read", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "uniqueValues": { "type": "integer", "nullable": true, "description": "Number of distinct values seen for the tag key" }, "totalValues": { "type": "integer", "nullable": true, "description": "Number of events counted for the tag key. For an issue tag, this is the issue's retained event count, including events without the tag" }, "topValues": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "nullable": true, "description": "Search query that matches events with the tag value. Only set for the user tag" }, "key": { "type": "string", "description": "Tag key, with the `sentry:` prefix removed from built-in keys" }, "name": { "type": "string", "nullable": true, "description": "Display label of the tag value. For the user tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed" }, "value": { "type": "string", "nullable": true, "description": "Tag value" }, "count": { "type": "integer", "nullable": true, "description": "Number of events with the tag value. Null for an empty value" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the tag value was last seen (ISO 8601). Null for an empty value" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the tag value was first seen (ISO 8601). Null for an empty value" } }, "required": [ "count", "firstSeen", "key", "lastSeen", "name", "value" ] }, "nullable": true, "description": "Most frequent values of the tag key, ordered by count" }, "key": { "type": "string", "description": "Tag key, with the `sentry:` prefix removed from built-in keys" }, "name": { "type": "string", "description": "Display label of the tag key" } }, "required": [ "key", "name" ] }, "examples": { "ReturnASpecificTag'sDetails": { "value": { "key": "flavors", "name": "Flavors", "uniqueValues": 2, "totalValues": 3, "topValues": [ { "key": "strawberry", "name": "Strawberry", "value": "strawberry", "count": 2, "lastSeen": "2024-01-01T00:00:00Z", "firstSeen": "2024-01-01T00:00:00Z" }, { "key": "vanilla", "name": "Vanilla", "value": "vanilla", "count": 1, "lastSeen": "2024-01-01T00:00:00Z", "firstSeen": "2024-01-01T00:00:00Z" } ] }, "summary": "Return a specific tag's details" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/issues/{issue_id}/tags/{key}/values/": { "get": { "operationId": "listOrganizationIssueTagValues", "description": "Returns a list of values associated with this key for an issue.\nReturns at most 1000 values when paginated.", "summary": "List a Tag's Values for an Issue", "parameters": [ { "in": "path", "name": "issue_id", "schema": { "type": "string" }, "description": "The ID of the issue you'd like to query.", "required": true }, { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "key", "schema": { "type": "string" }, "description": "The tag key to look the values up for.", "required": true }, { "in": "query", "name": "sort", "schema": { "type": "string", "enum": [ "age", "count", "date", "id" ] }, "description": "Sort order of the resulting tag values. Default is `id`." }, { "in": "query", "name": "environment", "schema": { "type": "array", "items": { "type": "string" } }, "description": "The name of environments to filter by." } ], "tags": [ "Events" ], "security": [ { "auth_token": [ "event:admin", "event:read", "event:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "nullable": true, "description": "Search query that matches events with the tag value. Only set for the user tag" }, "key": { "type": "string", "description": "Tag key, with the `sentry:` prefix removed from built-in keys" }, "name": { "type": "string", "nullable": true, "description": "Display label of the tag value. For the user tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed" }, "value": { "type": "string", "nullable": true, "description": "Tag value" }, "count": { "type": "integer", "nullable": true, "description": "Number of events with the tag value. Null for an empty value" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the tag value was last seen (ISO 8601). Null for an empty value" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the tag value was first seen (ISO 8601). Null for an empty value" } }, "required": [ "count", "firstSeen", "key", "lastSeen", "name", "value" ] } }, "examples": { "ReturnAllTagValuesForASpecificTag": { "value": [ { "key": "strawberry", "name": "Strawberry", "value": "strawberry", "count": 2, "lastSeen": "2024-01-01T00:00:00Z", "firstSeen": "2024-01-01T00:00:00Z" }, { "key": "vanilla", "name": "Vanilla", "value": "vanilla", "count": 1, "lastSeen": "2024-01-01T00:00:00Z", "firstSeen": "2024-01-01T00:00:00Z" }, { "key": "chocolate", "name": "Chocolate", "value": "chocolate", "count": 1, "lastSeen": "2024-01-01T00:00:00Z", "firstSeen": "2024-01-01T00:00:00Z" }, { "key": "Neopolitan", "name": "Neopolitan", "value": "neopolitan", "count": 1, "lastSeen": "2024-01-01T00:00:00Z", "firstSeen": "2024-01-01T00:00:00Z" } ], "summary": "Return all tag values for a specific tag" } } } }, "description": "" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } }, "/organizations/{organization_id_or_slug}/shared/issues/{share_id}/": { "get": { "operationId": "getOrganizationSharedIssue", "description": "Return an issue that was shared with a public link. This endpoint doesn't need\nauthentication: the share ID grants access.\n\nThe response holds less than the issue details endpoint, and its latest event\nleaves out the user, tags, contexts, SDK, extra data, processing errors and\nbreadcrumbs.\n\nReturns 404 when the share ID doesn't exist, when the issue belongs to another\norganization, or when the organization turned off issue sharing.", "summary": "Retrieve a Shared Issue", "parameters": [ { "in": "path", "name": "organization_id_or_slug", "schema": { "type": "string" }, "description": "The ID or slug of the organization the resource belongs to.", "required": true }, { "in": "path", "name": "share_id", "schema": { "type": "string" }, "description": "The share ID of the issue, from its public share link.", "required": true } ], "tags": [ "Events" ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "properties": { "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "id": { "type": "string", "description": "ID of the issue" }, "isUnhandled": { "type": "boolean", "nullable": true, "description": "Whether the issue includes unhandled events. Null when it isn't known" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "permalink": { "type": "string", "format": "uri", "description": "URL of the issue in Sentry" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "latestEvent": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "nullable": true, "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateReceived": { "type": "string", "format": "date-time", "nullable": true, "description": "When Sentry received the event (ISO 8601)" }, "size": { "type": "integer", "nullable": true, "description": "Size of the event payload in bytes" }, "entries": { "type": "array", "items": {}, "description": "Event interfaces, such as exception, breadcrumbs and request, each with a type and data" }, "dist": { "type": "string", "nullable": true, "description": "Distribution of the release the event was sent with" }, "packages": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Modules loaded when the event occurred, keyed by module name with their versions" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type, such as error, default or transaction" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "occurrence": { "anyOf": [ { "type": "object", "description": "A metric issue occurrence. `evidenceData` describes the detector and query that fired.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "enum": [ 8001 ], "type": "integer", "description": "Group type ID of metric issues, always 8001" }, "evidenceData": { "type": "object", "properties": { "detectorId": { "type": "integer", "description": "ID of the detector that created the occurrence" }, "alertId": { "type": "integer", "nullable": true, "description": "ID of the metric alert rule the detector replaces. Null when there's none" }, "value": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Metric value the anomaly detection model scored" }, "sourceId": { "type": "string", "description": "ID of the data source that produced the value" }, "subscriptionId": { "type": "string", "description": "ID of the query subscription that produced the value" }, "timestamp": { "type": "string", "description": "When the value was measured" } }, "required": [ "sourceId", "subscriptionId", "timestamp", "value" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Metric value that triggered the detector, or the anomaly detection result for dynamic detectors" }, "dataPacketSourceId": { "type": "string", "description": "ID of the query subscription that sent the data" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the detector condition" }, "type": { "type": "string", "description": "Type of the condition, such as gt, lt or anomaly_detection" }, "comparison": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "sensitivity": { "enum": [ "low", "medium", "high" ], "type": "string", "description": "How sensitive the anomaly detection is" }, "seasonality": { "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "type": "string", "description": "Seasonality the anomaly detection model uses" }, "thresholdType": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "Direction of anomalies to detect: 0 above, 1 below, 2 above and below" } }, "required": [ "seasonality", "sensitivity", "thresholdType" ] } ], "description": "Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition" }, "conditionResult": { "type": "integer", "description": "Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions of the detector" }, "config": { "type": "object", "properties": { "detectionType": { "enum": [ "static", "percent", "dynamic" ], "type": "string", "description": "How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection" }, "comparisonDelta": { "type": "integer", "nullable": true, "description": "Time window in seconds that a percent change detector compares with" } }, "required": [ "detectionType" ], "description": "Configuration of the detector" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "type": "string", "description": "Type of the data source, such as snuba_query_subscription" }, "sourceId": { "type": "string", "description": "ID of the source object, such as the query subscription" }, "queryObj": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ], "description": "Query subscription the data source reads" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "description": "Data sources of the detector" } }, "required": [ "alertId", "conditions", "config", "dataPacketSourceId", "dataSources", "detectorId", "value" ], "description": "Detector and query that created the occurrence" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "description": "An issue occurrence of any type. `evidenceData` keys are camelCase.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "type": "integer", "description": "Group type ID of the occurrence" }, "evidenceData": { "type": "object", "additionalProperties": {}, "description": "Data of the occurrence. Its keys depend on the group type" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise" }, "_meta": { "type": "object", "additionalProperties": {}, "description": "Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "fingerprints": { "type": "array", "items": { "type": "string" }, "description": "Grouping hashes calculated for the event" }, "groupingConfig": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the grouping config, such as newstyle:2026-01-20" }, "enhancements": { "type": "string", "description": "Stack trace rules of the project, as an encoded string" } }, "required": [ "enhancements", "id" ], "description": "Grouping configuration used to group the event" }, "startTimestamp": { "type": "number", "format": "double", "description": "When the transaction started, as a Unix timestamp in seconds" }, "endTimestamp": { "type": "number", "format": "double", "description": "When the transaction ended, as a Unix timestamp in seconds" }, "measurements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] }, "nullable": true, "description": "Measurements recorded for the transaction, such as web vitals, keyed by name" }, "breakdowns": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] } }, "nullable": true, "description": "Span operation breakdowns for the transaction, keyed by breakdown name" } }, "required": [ "_meta", "dateReceived", "dist", "entries", "eventID", "groupID", "id", "location", "message", "metadata", "occurrence", "packages", "platform", "projectID", "size", "title", "type" ], "nullable": true, "description": "Latest event of the issue, without its user, tags, contexts, SDK, extra data, processing errors or breadcrumbs. Null when the issue has no stored event" }, "project": { "type": "object", "properties": { "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "color": { "type": "string", "description": "Color of the project, as a hex code such as `#bf6e3f`" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Always empty for a shared issue's project" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Slug of the organization" }, "name": { "type": "string", "description": "Name of the organization" } }, "required": [ "name", "slug" ], "description": "Organization the project belongs to" } }, "required": [ "color", "features", "name", "organization", "slug" ], "description": "Project of the issue" } }, "required": [ "culprit", "id", "isUnhandled", "issueCategory", "latestEvent", "permalink", "project", "shortId", "title" ] }, "examples": { "ReturnASharedIssue": { "value": { "id": "1", "shortId": "PUMP-STATION-1", "title": "Payment failed", "culprit": "payments.checkout in charge", "permalink": "https://sentry.io/organizations/the-interstellar-jurisdiction/issues/1/", "isUnhandled": false, "issueCategory": "error", "latestEvent": { "id": "9fac2ceed9344f2bbfdd1fdacb0ed9b1", "eventID": "9fac2ceed9344f2bbfdd1fdacb0ed9b1", "groupID": "1", "projectID": "2", "title": "Payment failed", "message": "Payment failed", "location": null, "culprit": "payments.checkout in charge", "type": "default", "platform": "python", "dist": null, "size": 1113, "dateCreated": "2018-11-06T21:19:55Z", "dateReceived": "2018-11-06T21:19:56Z", "entries": [ { "type": "message", "data": { "formatted": "Payment failed" } } ], "packages": {}, "metadata": { "title": "Payment failed" }, "fingerprints": [ "1305a2b0c6c0eaf556d3ac2b18e25155" ], "groupingConfig": { "id": "newstyle:2026-01-20", "enhancements": "KLUv_SAd6QAAkwORuGFsbC1wbGF0" }, "crashFile": null, "occurrence": null, "_meta": { "entries": {}, "message": null, "packages": null } }, "project": { "slug": "pump-station", "name": "Pump Station", "color": "#bf6e3f", "features": [], "organization": { "slug": "the-interstellar-jurisdiction", "name": "The Interstellar Jurisdiction" } } }, "summary": "Return a shared issue" } } } }, "description": "" }, "404": { "description": "Not Found" } }, "x-sentry-routing": { "silo": "cell", "organizationParameter": "organization_id_or_slug" } } } }, "components": { "schemas": { "ActionFilterValidator": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": { "oneOf": [ { "title": "Age Comparison Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "age_comparison" ] }, "comparison": { "type": "object", "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ] }, "value": { "type": "integer", "minimum": 0 }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ] } }, "required": [ "comparisonType", "value", "time" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Assigned To Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "assigned_to" ] }, "comparison": { "type": "object", "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ] }, "targetIdentifier": { "oneOf": [ { "type": "integer" }, { "type": "string" } ] } }, "required": [ "targetType" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Attribute Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_attribute" ] }, "comparison": { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Frequency Count Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_frequency_count" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Frequency Percent Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_frequency_percent" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ] }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Unique User Frequency Count Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_unique_user_frequency_count" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Unique User Frequency Percent Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_unique_user_frequency_percent" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ] }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Category Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_category" ] }, "comparison": { "type": "object", "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ] }, "include": { "type": "boolean" } }, "required": [ "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Occurrences Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_occurrences" ] }, "comparison": { "type": "object", "properties": { "value": { "type": "integer", "minimum": 0 } }, "required": [ "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Priority Deescalating Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_priority_deescalating" ] }, "comparison": { "type": "integer", "enum": [ 25, 50, 75 ] }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Priority Greater Or Equal Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_priority_greater_or_equal" ] }, "comparison": { "type": "integer", "enum": [ 25, 50, 75 ] }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Type Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_type" ] }, "comparison": { "type": "object", "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ] }, "include": { "type": "boolean" } }, "required": [ "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Latest Adopted Release Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "latest_adopted_release" ] }, "comparison": { "type": "object", "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ] }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ] }, "environment": { "type": "string" } }, "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Latest Release Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "latest_release" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Level Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "level" ] }, "comparison": { "type": "object", "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ] }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ] } }, "required": [ "level", "match" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Percent Sessions Count Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "percent_sessions_count" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ] }, "value": { "type": "number", "minimum": 0, "maximum": 100 }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Percent Sessions Percent Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "percent_sessions_percent" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ] }, "value": { "type": "number", "minimum": 0 }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ] }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Tagged Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "tagged_event" ] }, "comparison": { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] } ], "discriminator": { "propertyName": "type" } } }, "actions": { "type": "array", "items": { "oneOf": [ { "title": "Discord Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "discord" ] }, "data": { "type": "object", "description": "Schema for Discord action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Discord Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Email Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "email" ] }, "data": { "type": "object", "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for an email Action", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "The stringified Sentry User.id or Team.id. Resolve users with the organization members endpoint and teams with the organization teams endpoint. Member IDs, email addresses, team slugs, and 'me' are not accepted. Omit this field when targetType is issue_owners." }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Github Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "github" ] }, "data": { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "properties": { "repo": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true }, "assignee": { "type": "string", "nullable": true } }, "required": [ "repo" ] } }, "required": [ "additionalFields" ], "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Github_Enterprise Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "github_enterprise" ] }, "data": { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "properties": { "repo": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true }, "assignee": { "type": "string", "nullable": true } }, "required": [ "repo" ] } }, "required": [ "additionalFields" ], "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Jira Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "jira" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Jira_Server Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "jira_server" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Msteams Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "msteams" ] }, "data": { "type": "object", "description": "Schema for MSTeams action data blob", "properties": {}, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetDisplay", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Opsgenie Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "opsgenie" ] }, "data": { "type": "object", "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a on-call Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Pagerduty Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "pagerduty" ] }, "data": { "type": "object", "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a on-call Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Seer_Workflow Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "seer_workflow" ] }, "data": { "type": "object", "properties": {}, "additionalProperties": false }, "config": { "type": "object", "properties": {}, "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Sentry_App Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "sentry_app" ] }, "data": { "description": "The data schema for a Sentry App Action", "type": "object", "properties": { "settings": { "type": "array" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Sentry App Action", "type": "object", "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "sentry_app" ] } }, "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Slack Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "slack" ] }, "data": { "type": "object", "description": "Schema for Slack action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Slack_Staging Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "slack_staging" ] }, "data": { "type": "object", "description": "Schema for Slack action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Azure_Devops Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "vsts" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Webhook Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "webhook" ] }, "data": { "type": "object" }, "config": { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "nullable": true }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true } } }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] } ], "discriminator": { "propertyName": "type" } } } }, "required": [ "actions", "logicType" ] }, "ApiIndexResponse": { "type": "object", "properties": { "version": { "type": "string", "description": "API version. Always \"0\"" }, "auth": { "type": "object", "properties": { "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes stored on the token or API key that authenticated the request" } }, "required": [ "scopes" ], "nullable": true, "description": "The credentials that authenticated the request, or null for session and anonymous requests" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" }, "options": { "type": "object", "properties": { "theme": { "type": "string", "description": "UI theme: \"light\", \"dark\" or \"system\". Defaults to \"system\"" }, "language": { "type": "string", "description": "UI language code, such as `en`" }, "stacktraceOrder": { "enum": [ -1, 1, 2 ], "type": "integer", "description": "Stack trace frame order: -1 for the default (most recent first), 1 for most recent last, 2 for most recent first" }, "defaultIssueEvent": { "type": "string", "description": "Event shown by default on issue details: \"recommended\", \"latest\" or \"oldest\"" }, "timezone": { "type": "string", "description": "Time zone for displayed dates, such as `UTC`" }, "clock24Hours": { "type": "boolean", "description": "Whether times are shown in 24-hour format" }, "prefersIssueDetailsStreamlinedUI": { "type": "boolean", "nullable": true, "description": "Whether the user prefers the streamlined issue details UI, or null if they haven't chosen" } }, "required": [ "clock24Hours", "defaultIssueEvent", "language", "prefersIssueDetailsStreamlinedUI", "stacktraceOrder", "theme", "timezone" ], "description": "Preferences of the user" }, "flags": { "type": "object", "properties": { "newsletter_consent_prompt": { "type": "boolean", "description": "Whether to ask the user for newsletter consent" } }, "required": [ "newsletter_consent_prompt" ], "description": "Account flags of the user" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "flags", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "options", "username" ], "nullable": true, "description": "The authenticated user, or null for anonymous requests and requests made with an API key or organization auth token" } }, "required": [ "auth", "user", "version" ] }, "ArtifactBundleAssembleResponse": { "type": "object", "properties": { "state": { "type": "string", "description": "State of the bundle: ok, not_found, created, assembling or error" }, "missingChunks": { "type": "array", "items": { "type": "string" }, "description": "Checksums of the chunks the server doesn't have yet" }, "detail": { "type": "string", "nullable": true, "description": "Error message when the state is error" } }, "required": [ "missingChunks", "state" ] }, "AssembleProjectDebugFilesResponse": { "type": "object", "additionalProperties": { "type": "object", "properties": { "state": { "type": "string", "description": "State of the file: ok, not_found, created, assembling or error" }, "missingChunks": { "type": "array", "items": { "type": "string" }, "description": "Checksums of the chunks the server doesn't have yet" }, "detail": { "type": "string", "nullable": true, "description": "Error message when the state is error" }, "dif": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the debug file" }, "uuid": { "type": "string", "description": "Debug ID without the age suffix, as a UUID" }, "debugId": { "type": "string", "description": "Debug ID of the file" }, "codeId": { "type": "string", "nullable": true, "description": "Code ID of the file, such as the GNU build ID. Null when the file has none" }, "cpuName": { "type": "string", "description": "CPU architecture of the file, such as x86_64 or arm64" }, "objectName": { "type": "string", "description": "Name of the object file" }, "symbolType": { "type": "string", "description": "Format of the file, such as macho, elf, pe, pdb, breakpad or proguard" }, "headers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "HTTP headers to download the file with, such as Content-Type" }, "size": { "type": "integer", "description": "Size of the file in bytes" }, "sha1": { "type": "string", "description": "SHA-1 checksum of the file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the file was uploaded (ISO 8601)" }, "data": { "type": "object", "description": "Extra data about the file, such as its features. Empty when not known", "properties": { "type": { "type": "string", "description": "Kind of the object, such as executable, debug companion or library. Left out for mapping files" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Debug features the file provides, such as symtab, debug, unwind, sources or mapping" } } } }, "required": [ "codeId", "cpuName", "data", "dateCreated", "debugId", "headers", "id", "objectName", "sha1", "size", "symbolType", "uuid" ], "description": "Debug file created from the chunks. Only set when the state is ok" } }, "required": [ "missingChunks", "state" ] } }, "AutofixConflictResponse": { "type": "object", "properties": { "detail": { "type": "string", "description": "Why the step can't run" }, "code": { "enum": [ "scm_integration_required", "repos_not_linked", "run_in_flight" ], "type": "string", "description": "Set when a client can act on the conflict. `scm_integration_required` and `repos_not_linked` mean the organization or project must finish Seer setup before a new run can start. `run_in_flight` means a step is already running for the run in `run_id`, so poll it instead of retrying" }, "run_id": { "type": "integer", "description": "ID of the run in Seer. Set with `run_in_flight`" }, "sentry_run_id": { "type": "string", "nullable": true, "description": "ID of the run in Sentry. Set with `run_in_flight`, null for legacy runs" } }, "required": [ "detail" ] }, "AutofixPaymentRequiredResponse": { "type": "object", "properties": { "detail": { "type": "string", "description": "Why the organization can't run Seer" }, "code": { "enum": [ "seer_out_of_credits", "seer_out_of_quota" ], "type": "string", "description": "`seer_out_of_credits` when the organization has no Seer credits left, `seer_out_of_quota` when it has no Seer budget" } }, "required": [ "code", "detail" ] }, "AutofixPostResponse": { "type": "object", "description": "Response type for the POST endpoint (default kickoff and step paths).", "properties": { "run_id": { "type": "integer", "description": "ID of the Autofix run in Seer" }, "sentry_run_id": { "type": "string", "nullable": true, "description": "ID of the run in Sentry. Null for legacy runs" }, "feature_id": { "type": "string", "description": "\"autofix_single_run\" for a single-run Autofix run, otherwise \"autofix\"" } }, "required": [ "feature_id", "run_id", "sentry_run_id" ] }, "AutofixStateResponse": { "type": "object", "description": "Response type for the GET endpoint", "properties": { "formatted": { "type": "object", "description": "The ``formatted`` field the mixin adds to a response when ``?llmFormat`` is requested.\n\n``content`` is text for the text formats and a serialized JSON object for ``json``, so the\nresponse shape is the same whichever format a caller asks for.", "properties": { "format": { "enum": [ "markdown", "xml", "json" ], "type": "string", "description": "Format of the content: markdown, xml or json" }, "content": { "type": "string", "description": "Response rendered in the requested format, as text" } }, "required": [ "content", "format" ] }, "autofix": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Autofix state of the issue. Null when Autofix hasn't run" } }, "required": [ "autofix" ] }, "BaseDataConditionGroupValidator": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] }, "BaseTeam": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Team ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Team slug, unique within the organization" }, "name": { "type": "string", "description": "Display name of the team" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the team was created (ISO 8601)" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of the team" }, "teamRole": { "type": "string", "nullable": true, "description": "The requesting user's role in the team" }, "flags": { "type": "object", "additionalProperties": { "type": "boolean" }, "description": "Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the team through their team role. Empty if the user has no access" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams" }, "isPending": { "type": "boolean", "description": "Whether the requesting user has a pending request to join the team" }, "memberCount": { "type": "integer", "description": "Number of members in the team" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Team avatar" } }, "required": [ "access", "avatar", "dateCreated", "flags", "hasAccess", "id", "isMember", "isPending", "memberCount", "name", "slug", "teamRole" ] }, "BlockCreateValidator": { "type": "object", "description": "Append a user's block, or write a producer's block by key and revision.\n\nNeeds notebook, user_id and producer_writer in its context.", "properties": { "kind": { "enum": [ "text", "query" ], "type": "string", "description": "Block kind: text for Markdown or query for an agent-generated data query. A producer's block must be text.\n\n* `text` - Text\n* `query` - Query" }, "notebookVersion": { "type": "integer", "minimum": 1, "description": "Current notebook version from the latest detail response. Stale versions return 409. Send this, or key and revision." }, "key": { "type": "string", "description": "The producer's stable key for the block. Writing the same key again updates the block, even if a user edited or deleted it. Send with revision instead of notebookVersion. Only service accounts and Seer agents can send it.", "maxLength": 128 }, "revision": { "type": "integer", "maximum": 2147483647, "minimum": 1, "description": "The producer's revision for the block. A block with a newer revision returns 409, and a write can raise it by at most 100." }, "position": { "type": "integer", "maximum": 2147483647, "minimum": 0, "description": "Index among the notebook's blocks where a producer's block goes. Later blocks shift down, and a larger index puts it last. A new block goes last when omitted, and an existing block stays put." }, "title": { "type": "string", "description": "Block title. May be empty.", "maxLength": 255 }, "content": { "type": "string", "description": "Markdown content. May be empty, except in a producer's block." }, "generationPrompt": { "type": "string", "description": "Instructions used when executing the block. May be empty." }, "config": { "type": "object", "additionalProperties": {}, "description": "Block configuration object. Nested keys are preserved." }, "display": { "type": "object", "additionalProperties": {}, "description": "Display settings. Text uses type markdown; query uses table, line, bar, or area. Versioned settings use version 1. Charts require xAxis and non-empty yAxes. Defaults to Markdown for text and table for query." } }, "required": [ "kind" ], "additionalProperties": false }, "BlockDeleteValidator": { "type": "object", "description": "Camel-case API fields while preserving keys inside JSON objects.\n\nUnknown fields are rejected rather than silently dropped, so a typo'd field\nname fails loudly instead of being ignored.", "properties": { "notebookVersion": { "type": "integer", "minimum": 1, "description": "Current notebook version from the latest detail response. Stale versions return 409." }, "version": { "type": "integer", "minimum": 1, "description": "Current block version from the latest block response. Stale versions return 409." } }, "required": [ "notebookVersion", "version" ], "additionalProperties": false }, "BlockOrderValidator": { "type": "object", "description": "Camel-case API fields while preserving keys inside JSON objects.\n\nUnknown fields are rejected rather than silently dropped, so a typo'd field\nname fails loudly instead of being ignored.", "properties": { "notebookVersion": { "type": "integer", "minimum": 1, "description": "Current notebook version from the latest detail response. Stale versions return 409." }, "blockIds": { "type": "array", "items": { "type": "integer", "minimum": 1 }, "description": "Every active block ID exactly once, in the desired order." } }, "required": [ "notebookVersion", "blockIds" ], "additionalProperties": false }, "BlockUpdateValidator": { "type": "object", "description": "Camel-case API fields while preserving keys inside JSON objects.\n\nUnknown fields are rejected rather than silently dropped, so a typo'd field\nname fails loudly instead of being ignored.", "properties": { "notebookVersion": { "type": "integer", "minimum": 1, "description": "Current notebook version from the latest detail response. Stale versions return 409." }, "version": { "type": "integer", "minimum": 1, "description": "Current block version from the latest block response. Stale versions return 409." }, "title": { "type": "string", "description": "Block title. May be empty.", "maxLength": 255 }, "content": { "type": "string", "description": "User-authored content. May be empty." }, "generationPrompt": { "type": "string", "description": "Instructions used when executing the block. May be empty." }, "config": { "type": "object", "additionalProperties": {}, "description": "Block configuration object. Nested keys are preserved." }, "display": { "type": "object", "additionalProperties": {}, "description": "Display settings. Text uses type markdown; query uses table, line, bar, or area. Versioned settings use version 1. Charts require xAxis and non-empty yAxes. Defaults to Markdown for text and table for query." } }, "required": [ "notebookVersion", "version" ], "additionalProperties": false }, "BranchOverride": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "tag_name": { "type": "string", "description": "Event tag key to match." }, "tag_value": { "type": "string", "description": "Event tag value to match." }, "branch_name": { "type": "string", "description": "The repository branch Seer uses for issues whose events have this tag value." } }, "required": [ "branch_name", "tag_name", "tag_value" ] }, "BulkCodeMappingsPartialResponse": { "type": "object", "properties": { "created": { "type": "integer", "description": "Number of mappings created" }, "updated": { "type": "integer", "description": "Number of existing mappings updated" }, "errors": { "type": "integer", "description": "Number of mappings that failed" }, "mappings": { "type": "array", "items": { "type": "object", "properties": { "stackRoot": { "type": "string", "description": "Stack trace path prefix of the mapping" }, "sourceRoot": { "type": "string", "description": "Repository path prefix of the mapping" }, "status": { "enum": [ "created", "updated", "error" ], "type": "string", "description": "Whether the mapping was created, updated or failed" }, "detail": { "type": "string", "description": "Why the mapping failed. Only set when status is error" } }, "required": [ "sourceRoot", "stackRoot", "status" ] }, "description": "Result for each requested mapping, in request order" } }, "required": [ "created", "errors", "mappings", "updated" ] }, "BulkCodeMappingsRequest": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "project": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "The ID or slug of the project to configure." }, "repository": { "type": "string", "description": "The repository name as it appears in Sentry." }, "mappings": { "type": "array", "items": { "type": "object", "properties": { "stack_root": { "type": "string", "description": "The path prefix to strip from matching stack frame filenames before adding sourceRoot.", "pattern": "^[^\\s'\\\"]+$" }, "source_root": { "type": "string", "description": "The repository path prefix that replaces stackRoot. For example, /app/pkg/file.py with stackRoot=/app/ and sourceRoot=src/ resolves to src/pkg/file.py.", "pattern": "^[^\\s'\\\"]+$" } }, "required": [ "source_root", "stack_root" ] }, "description": "One or more stack-root and source-root mappings (maximum 300)." }, "provider": { "type": "string", "nullable": true, "description": "Optional repository provider used to disambiguate or find the repository. If no matching Sentry repository exists, the repository is created after the provider confirms it exists." }, "default_branch": { "type": "string", "description": "The repository branch to use; inferred from the integration when omitted.", "pattern": "^(^(?![\\/]))([\\w\\.\\/-]+)(?= 0), w (1-6), h (>= 1), and x + w <= 6.", "properties": { "x": { "type": "integer", "maximum": 5, "minimum": 0, "description": "Column position (0-indexed)." }, "y": { "type": "integer", "minimum": 0, "description": "Row position (0-indexed)." }, "w": { "type": "integer", "maximum": 6, "minimum": 1, "description": "Width in grid columns (1-6)." }, "h": { "type": "integer", "minimum": 1, "description": "Height in grid rows." } }, "required": [ "h", "w", "x", "y" ] } ], "nullable": true }, "axis_range": { "enum": [ "auto", "dataMin", null ], "type": "string", "nullable": true, "description": "Y-axis range: auto or dataMin.\n\n* `auto`\n* `dataMin`" }, "legend_type": { "enum": [ "default", "breakdown", null ], "type": "string", "nullable": true, "description": "Legend style: default or breakdown.\n\n* `default`\n* `breakdown`" } } }, "description": "A json list of widgets saved in this dashboard." }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "The saved projects filter for this dashboard." }, "environment": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "The saved environment filter for this dashboard." }, "period": { "type": "string", "nullable": true, "description": "The saved time range period for this dashboard." }, "start": { "type": "string", "format": "date-time", "nullable": true, "description": "The saved start time for this dashboard." }, "end": { "type": "string", "format": "date-time", "nullable": true, "description": "The saved end time for this dashboard." }, "filters": { "type": "object", "additionalProperties": {}, "description": "The saved filters for this dashboard." }, "utc": { "type": "boolean", "description": "Setting that lets you display saved time range for this dashboard in UTC." }, "permissions": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "is_editable_by_everyone": { "type": "boolean", "description": "Whether the dashboard is editable by everyone." }, "teams_with_edit_access": { "type": "array", "items": { "type": "integer" }, "description": "List of team IDs that have edit access to a dashboard." } }, "required": [ "is_editable_by_everyone" ] } ], "nullable": true, "description": "Permissions that restrict users from editing dashboards" }, "query_priority": { "enum": [ "normal", "faster", null ], "type": "string", "nullable": true, "description": "The query priority\n\n* `normal`\n* `faster`" }, "is_favorited": { "type": "boolean", "default": false, "description": "Favorite the dashboard automatically for the request user" } }, "required": [ "title" ] }, "DashboardCreateWidget": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "string", "description": "ID of an existing widget. Omit it to create a new widget." }, "title": { "type": "string", "description": "Title of the widget.", "maxLength": 255 }, "description": { "type": "string", "nullable": true, "description": "Description of the widget." }, "thresholds": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Thresholds that color the widget's values." }, "display_type": { "enum": [ "line", "area", "bar", "table", "big_number", "details", "categorical_bar", "wheel", "rage_and_dead_clicks", "server_tree", "text", "agents_traces_table", "heatmap" ], "type": "string", "description": "How the widget is displayed, such as line, area, bar, table or big_number.\n\n* `line`\n* `area`\n* `bar`\n* `table`\n* `big_number`\n* `details`\n* `categorical_bar`\n* `wheel`\n* `rage_and_dead_clicks`\n* `server_tree`\n* `text`\n* `agents_traces_table`\n* `heatmap`" }, "interval": { "type": "string", "description": "Time interval for the widget's series, such as 5m.", "maxLength": 10 }, "queries": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "string" }, "fields": { "type": "array", "items": { "type": "string" } }, "aggregates": { "type": "array", "items": { "type": "string" }, "nullable": true }, "transformations": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, "columns": { "type": "array", "items": { "type": "string" }, "nullable": true }, "field_aliases": { "type": "array", "items": { "type": "string" }, "nullable": true }, "name": { "type": "string" }, "conditions": { "type": "string" }, "orderby": { "type": "string" }, "is_hidden": { "type": "boolean" }, "on_demand_extraction": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "extraction_state": { "type": "string" }, "enabled": { "type": "boolean" } } }, "on_demand_extraction_disabled": { "type": "boolean" }, "selected_aggregate": { "type": "integer", "nullable": true }, "linked_dashboards": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "field": { "type": "string" }, "dashboard_id": { "type": "string" } }, "required": [ "dashboard_id", "field" ] }, "nullable": true } } }, "description": "Queries that provide the widget's data." }, "widget_type": { "enum": [ "discover", "issue", "metrics", "error-events", "transaction-like", "spans", "logs", "tracemetrics", "preprod-app-size", null ], "type": "string", "nullable": true, "description": "Dataset the widget queries, such as error-events, spans, logs or issue.\n\n* `discover`\n* `issue`\n* `metrics`\n* `error-events`\n* `transaction-like`\n* `spans`\n* `logs`\n* `tracemetrics`\n* `preprod-app-size`" }, "limit": { "type": "integer", "minimum": 1, "nullable": true, "description": "Maximum number of series or rows the widget shows." }, "layout": { "allOf": [ { "type": "object", "description": "Widget grid layout position and dimensions for dashboard creation.\n\nThe dashboard uses a 6-column grid. Required keys: x, y, w, h.\nConstraints: x (0-5), y (>= 0), w (1-6), h (>= 1), and x + w <= 6.", "properties": { "x": { "type": "integer", "maximum": 5, "minimum": 0, "description": "Column position (0-indexed)." }, "y": { "type": "integer", "minimum": 0, "description": "Row position (0-indexed)." }, "w": { "type": "integer", "maximum": 6, "minimum": 1, "description": "Width in grid columns (1-6)." }, "h": { "type": "integer", "minimum": 1, "description": "Height in grid rows." } }, "required": [ "h", "w", "x", "y" ] } ], "nullable": true }, "axis_range": { "enum": [ "auto", "dataMin", null ], "type": "string", "nullable": true, "description": "Y-axis range: auto or dataMin.\n\n* `auto`\n* `dataMin`" }, "legend_type": { "enum": [ "default", "breakdown", null ], "type": "string", "nullable": true, "description": "Legend style: default or breakdown.\n\n* `default`\n* `breakdown`" } } }, "DashboardCreateWidgetLayout": { "type": "object", "description": "Widget grid layout position and dimensions for dashboard creation.\n\nThe dashboard uses a 6-column grid. Required keys: x, y, w, h.\nConstraints: x (0-5), y (>= 0), w (1-6), h (>= 1), and x + w <= 6.", "properties": { "x": { "type": "integer", "maximum": 5, "minimum": 0, "description": "Column position (0-indexed)." }, "y": { "type": "integer", "minimum": 0, "description": "Row position (0-indexed)." }, "w": { "type": "integer", "maximum": 6, "minimum": 1, "description": "Width in grid columns (1-6)." }, "h": { "type": "integer", "minimum": 1, "description": "Height in grid rows." } }, "required": [ "h", "w", "x", "y" ] }, "DashboardDetails": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "string", "description": "A dashboard's unique id." }, "title": { "type": "string", "description": "The user-defined dashboard title.", "maxLength": 255 }, "widgets": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "string", "description": "ID of an existing widget. Omit it to create a new widget." }, "title": { "type": "string", "description": "Title of the widget.", "maxLength": 255 }, "description": { "type": "string", "nullable": true, "description": "Description of the widget." }, "thresholds": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Thresholds that color the widget's values." }, "display_type": { "enum": [ "line", "area", "bar", "table", "big_number", "details", "categorical_bar", "wheel", "rage_and_dead_clicks", "server_tree", "text", "agents_traces_table", "heatmap" ], "type": "string", "description": "How the widget is displayed, such as line, area, bar, table or big_number.\n\n* `line`\n* `area`\n* `bar`\n* `table`\n* `big_number`\n* `details`\n* `categorical_bar`\n* `wheel`\n* `rage_and_dead_clicks`\n* `server_tree`\n* `text`\n* `agents_traces_table`\n* `heatmap`" }, "interval": { "type": "string", "description": "Time interval for the widget's series, such as 5m.", "maxLength": 10 }, "queries": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "string" }, "fields": { "type": "array", "items": { "type": "string" } }, "aggregates": { "type": "array", "items": { "type": "string" }, "nullable": true }, "transformations": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, "columns": { "type": "array", "items": { "type": "string" }, "nullable": true }, "field_aliases": { "type": "array", "items": { "type": "string" }, "nullable": true }, "name": { "type": "string" }, "conditions": { "type": "string" }, "orderby": { "type": "string" }, "is_hidden": { "type": "boolean" }, "on_demand_extraction": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "extraction_state": { "type": "string" }, "enabled": { "type": "boolean" } } }, "on_demand_extraction_disabled": { "type": "boolean" }, "selected_aggregate": { "type": "integer", "nullable": true }, "linked_dashboards": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "field": { "type": "string" }, "dashboard_id": { "type": "string" } }, "required": [ "dashboard_id", "field" ] }, "nullable": true } } }, "description": "Queries that provide the widget's data." }, "widget_type": { "enum": [ "discover", "issue", "metrics", "error-events", "transaction-like", "spans", "logs", "tracemetrics", "preprod-app-size", null ], "type": "string", "nullable": true, "description": "Dataset the widget queries, such as error-events, spans, logs or issue.\n\n* `discover`\n* `issue`\n* `metrics`\n* `error-events`\n* `transaction-like`\n* `spans`\n* `logs`\n* `tracemetrics`\n* `preprod-app-size`" }, "limit": { "type": "integer", "minimum": 1, "nullable": true, "description": "Maximum number of series or rows the widget shows." }, "layout": { "allOf": [ { "type": "object", "description": "Widget grid layout position and dimensions.\n\nThe dashboard uses a 6-column grid. Required keys: x, y, w, h, minH.\nConstraints: x (0-5), y (>= 0), w (1-6), h (>= 1), minH (>= 1), and x + w <= 6.", "properties": { "x": { "type": "integer", "maximum": 5, "minimum": 0, "description": "Column position (0-indexed)." }, "y": { "type": "integer", "minimum": 0, "description": "Row position (0-indexed)." }, "w": { "type": "integer", "maximum": 6, "minimum": 1, "description": "Width in grid columns (1-6)." }, "h": { "type": "integer", "minimum": 1, "description": "Height in grid rows." }, "min_h": { "type": "integer", "minimum": 1, "description": "Minimum height in grid rows." } }, "required": [ "h", "min_h", "w", "x", "y" ] } ], "nullable": true, "description": "Position and size of the widget on the dashboard grid." }, "axis_range": { "enum": [ "auto", "dataMin", null ], "type": "string", "nullable": true, "description": "Y-axis range: auto or dataMin.\n\n* `auto`\n* `dataMin`" }, "legend_type": { "enum": [ "default", "breakdown", null ], "type": "string", "nullable": true, "description": "Legend style: default or breakdown.\n\n* `default`\n* `breakdown`" } } }, "description": "A json list of widgets saved in this dashboard." }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "The saved projects filter for this dashboard." }, "environment": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "The saved environment filter for this dashboard." }, "period": { "type": "string", "nullable": true, "description": "The saved time range period for this dashboard." }, "start": { "type": "string", "format": "date-time", "nullable": true, "description": "The saved start time for this dashboard." }, "end": { "type": "string", "format": "date-time", "nullable": true, "description": "The saved end time for this dashboard." }, "filters": { "type": "object", "additionalProperties": {}, "description": "The saved filters for this dashboard." }, "utc": { "type": "boolean", "description": "Setting that lets you display saved time range for this dashboard in UTC." }, "permissions": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "is_editable_by_everyone": { "type": "boolean", "description": "Whether the dashboard is editable by everyone." }, "teams_with_edit_access": { "type": "array", "items": { "type": "integer" }, "description": "List of team IDs that have edit access to a dashboard." } }, "required": [ "is_editable_by_everyone" ] } ], "nullable": true, "description": "Permissions that restrict users from editing dashboards" }, "query_priority": { "enum": [ "normal", "faster", null ], "type": "string", "nullable": true, "description": "The query priority\n\n* `normal`\n* `faster`" } } }, "DashboardDetailsModel": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Saved environment filter for the dashboard" }, "period": { "type": "string", "description": "Saved relative time range, such as 24h" }, "utc": { "type": "string", "description": "Whether the saved time range is shown in UTC" }, "expired": { "type": "boolean", "description": "Whether the saved start time was outside data retention and was moved forward" }, "start": { "type": "string", "format": "date-time", "description": "Saved start of the time range (ISO 8601)" }, "end": { "type": "string", "format": "date-time", "description": "Saved end of the time range (ISO 8601)" }, "id": { "type": "string", "description": "ID of the dashboard" }, "title": { "type": "string", "description": "Title of the dashboard" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the dashboard was created (ISO 8601)" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the dashboard" }, "widgets": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the widget" }, "title": { "type": "string", "description": "Title of the widget" }, "description": { "type": "string", "nullable": true, "description": "Description of the widget" }, "displayType": { "type": "string", "nullable": true, "description": "How the widget is displayed, such as line, area, bar, table or big_number" }, "thresholds": { "type": "object", "properties": { "preferredPolarity": { "type": "string", "description": "Whether higher (+) or lower (-) values are better. Empty when unset" }, "timeWindow": { "type": "string", "description": "Time window the thresholds apply to, as a stats period such as 5m, 1h or 1d" }, "max_values": { "type": "object", "additionalProperties": { "type": "integer" }, "description": "Threshold maximums, keyed max1 and max2" }, "unit": { "type": "string", "description": "Unit of the threshold values" } }, "required": [ "max_values", "unit" ], "nullable": true, "description": "Thresholds that color the widget's values" }, "interval": { "type": "string", "description": "Time interval for the widget's series, such as 5m" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the widget was created (ISO 8601)" }, "dashboardId": { "type": "string", "description": "ID of the dashboard the widget belongs to" }, "queries": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the widget query" }, "name": { "type": "string", "description": "Name of the query, used as the series name" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "Fields the query selects" }, "aggregates": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions the query computes" }, "transformations": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "description": "Transformations applied to aggregates, keyed by the aggregate's index" }, "columns": { "type": "array", "items": { "type": "string" }, "description": "Columns the query groups by" }, "fieldAliases": { "type": "array", "items": { "type": "string" }, "description": "Aliases shown in place of field names in table headers" }, "conditions": { "type": "string", "description": "Search query that filters the data" }, "orderby": { "type": "string", "description": "Field the results are sorted by" }, "widgetId": { "type": "string", "description": "ID of the widget the query belongs to" }, "onDemand": { "type": "array", "items": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "Whether on-demand metric extraction is enabled for the query" }, "extractionState": { "type": "string", "description": "On-demand extraction state, such as enabled:enrolled or disabled:high-cardinality" }, "dashboardWidgetQueryId": { "type": "integer", "description": "ID of the widget query" } }, "required": [ "dashboardWidgetQueryId", "enabled", "extractionState" ] }, "description": "On-demand metric extraction settings for the query" }, "isHidden": { "type": "boolean", "description": "Whether the query is hidden from the UI" }, "selectedAggregate": { "type": "integer", "nullable": true, "description": "Index of the aggregate shown by Big Number widgets" }, "linkedDashboards": { "type": "array", "items": { "type": "object", "properties": { "field": { "type": "string", "description": "Field that links to the dashboard" }, "dashboardId": { "type": "integer", "description": "ID of the linked dashboard" } }, "required": [ "dashboardId", "field" ] }, "description": "Dashboards linked from fields in the query's results" } }, "required": [ "aggregates", "columns", "conditions", "fieldAliases", "fields", "id", "isHidden", "linkedDashboards", "name", "onDemand", "orderby", "selectedAggregate", "transformations", "widgetId" ] }, "description": "Queries that provide the widget's data" }, "limit": { "type": "integer", "nullable": true, "description": "Maximum number of series or rows the widget shows" }, "widgetType": { "type": "string", "nullable": true, "description": "Dataset the widget queries, such as error-events, spans, logs or issue" }, "layout": { "type": "object", "additionalProperties": { "type": "integer" }, "nullable": true, "description": "Position and size of the widget on the dashboard grid" }, "axisRange": { "type": "string", "nullable": true, "description": "Y-axis range: auto or dataMin" }, "legendType": { "enum": [ "default", "breakdown", null ], "type": "string", "nullable": true, "description": "Legend style: default or breakdown" }, "datasetSource": { "type": "string", "nullable": true, "description": "Whether the widget's dataset was chosen by the user or inferred" }, "exploreUrls": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Explore URLs for each query, for widgets that query transactions" }, "changedReason": { "type": "array", "items": { "type": "object", "properties": { "orderby": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Sort orders that were dropped when the widget was migrated from transactions to spans" }, "equations": { "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, "nullable": true, "description": "Equations that were dropped when the widget was migrated from transactions to spans" }, "selected_columns": { "type": "array", "items": { "type": "string" }, "description": "Columns that were dropped when the widget was migrated from transactions to spans" } }, "required": [ "equations", "orderby", "selected_columns" ] }, "nullable": true, "description": "Parts of each query that were dropped when the widget was migrated from transactions to spans" } }, "required": [ "axisRange", "changedReason", "dashboardId", "datasetSource", "dateCreated", "description", "displayType", "id", "interval", "layout", "legendType", "limit", "queries", "thresholds", "title", "widgetType" ] }, "description": "Widgets on the dashboard" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "Saved project filter for the dashboard. [-1] means all projects" }, "filters": { "type": "object", "properties": { "release": { "type": "array", "items": { "type": "string" }, "description": "Saved release filter" }, "releaseId": { "type": "array", "items": { "type": "string" }, "description": "Saved release ID filter" }, "globalFilter": { "type": "array", "items": { "type": "object", "properties": { "dataset": { "type": "string", "description": "Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs" }, "tag": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the tag or attribute the filter applies to" }, "name": { "type": "string", "description": "Display name of the tag or attribute" }, "kind": { "type": "string", "description": "Kind of the field, such as tag, measurement or field" } }, "required": [ "key", "name" ], "description": "Tag or attribute being filtered" }, "value": { "type": "string", "description": "Filter condition in search syntax, such as browser.name:[Chrome]" }, "isTemporary": { "type": "boolean", "description": "Whether the filter comes from a link and isn't saved by the user" } }, "required": [ "dataset", "tag", "value" ] }, "description": "Saved global filters applied to every widget" } }, "description": "Saved release and global filters for the dashboard" }, "permissions": { "type": "object", "properties": { "isEditableByEveryone": { "type": "boolean", "description": "Whether everyone in the organization can edit the dashboard" }, "teamsWithEditAccess": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the teams that can edit the dashboard" } }, "required": [ "isEditableByEveryone", "teamsWithEditAccess" ], "nullable": true, "description": "Edit permissions for the dashboard" }, "isFavorited": { "type": "boolean", "description": "Whether the requesting user favorited the dashboard" }, "prebuiltId": { "type": "integer", "nullable": true, "description": "ID of the prebuilt dashboard this dashboard comes from" }, "queryPriority": { "type": "string", "description": "Query priority for the dashboard: normal or faster" } }, "required": [ "createdBy", "dateCreated", "filters", "id", "isFavorited", "permissions", "prebuiltId", "projects", "queryPriority", "title", "widgets" ] }, "DashboardListResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the dashboard" }, "title": { "type": "string", "description": "Title of the dashboard" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the dashboard was created (ISO 8601)" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the dashboard" }, "environment": { "type": "array", "items": { "type": "string" }, "description": "Saved environment filter for the dashboard" }, "filters": { "type": "object", "properties": { "release": { "type": "array", "items": { "type": "string" }, "description": "Saved release filter" }, "releaseId": { "type": "array", "items": { "type": "string" }, "description": "Saved release ID filter" }, "globalFilter": { "type": "array", "items": { "type": "object", "properties": { "dataset": { "type": "string", "description": "Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs" }, "tag": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the tag or attribute the filter applies to" }, "name": { "type": "string", "description": "Display name of the tag or attribute" }, "kind": { "type": "string", "description": "Kind of the field, such as tag, measurement or field" } }, "required": [ "key", "name" ], "description": "Tag or attribute being filtered" }, "value": { "type": "string", "description": "Filter condition in search syntax, such as browser.name:[Chrome]" }, "isTemporary": { "type": "boolean", "description": "Whether the filter comes from a link and isn't saved by the user" } }, "required": [ "dataset", "tag", "value" ] }, "description": "Saved global filters applied to every widget" } }, "description": "Saved release and global filters for the dashboard" }, "lastVisited": { "type": "string", "format": "date-time", "nullable": true, "description": "When the dashboard was last visited (ISO 8601)" }, "widgetDisplay": { "type": "array", "items": { "type": "string", "nullable": true }, "description": "Display type of each widget, in order" }, "widgetPreview": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string", "nullable": true } }, "description": "Display type and layout of each widget, for rendering a preview" }, "permissions": { "type": "object", "properties": { "isEditableByEveryone": { "type": "boolean", "description": "Whether everyone in the organization can edit the dashboard" }, "teamsWithEditAccess": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the teams that can edit the dashboard" } }, "required": [ "isEditableByEveryone", "teamsWithEditAccess" ], "nullable": true, "description": "Edit permissions for the dashboard" }, "isFavorited": { "type": "boolean", "description": "Whether the requesting user favorited the dashboard" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "Saved project filter for the dashboard. [-1] means all projects" }, "prebuiltId": { "type": "integer", "nullable": true, "description": "ID of the prebuilt dashboard this dashboard comes from" } }, "required": [ "createdBy", "dateCreated", "environment", "filters", "id", "isFavorited", "lastVisited", "permissions", "prebuiltId", "projects", "title", "widgetDisplay", "widgetPreview" ] } }, "DashboardPermissions": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "is_editable_by_everyone": { "type": "boolean", "description": "Whether the dashboard is editable by everyone." }, "teams_with_edit_access": { "type": "array", "items": { "type": "integer" }, "description": "List of team IDs that have edit access to a dashboard." } }, "required": [ "is_editable_by_everyone" ] }, "DashboardRevisionListResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the revision" }, "title": { "type": "string", "description": "Title of the dashboard in this revision" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the revision was recorded (ISO 8601)" }, "createdBy": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the user" }, "name": { "type": "string", "description": "Display name of the user" }, "email": { "type": "string", "description": "Primary email address of the user" }, "avatarType": { "type": "string", "nullable": true, "description": "Avatar type, such as letter_avatar, upload or gravatar" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "required": [ "avatarType", "avatarUrl", "email", "id", "name" ], "nullable": true, "description": "User whose change recorded the revision, or null if there is no such user or it was deleted" }, "source": { "type": "string", "description": "Change that recorded the revision, which holds the dashboard as it was just before that change: edit (a dashboard edit), edit-with-agent (an edit the client marked as made by an AI agent) or pre-restore (a restore of another revision)" } }, "required": [ "createdBy", "dateCreated", "id", "source", "title" ] } }, "DashboardWidget": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "string", "description": "ID of an existing widget. Omit it to create a new widget." }, "title": { "type": "string", "description": "Title of the widget.", "maxLength": 255 }, "description": { "type": "string", "nullable": true, "description": "Description of the widget." }, "thresholds": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Thresholds that color the widget's values." }, "display_type": { "enum": [ "line", "area", "bar", "table", "big_number", "details", "categorical_bar", "wheel", "rage_and_dead_clicks", "server_tree", "text", "agents_traces_table", "heatmap" ], "type": "string", "description": "How the widget is displayed, such as line, area, bar, table or big_number.\n\n* `line`\n* `area`\n* `bar`\n* `table`\n* `big_number`\n* `details`\n* `categorical_bar`\n* `wheel`\n* `rage_and_dead_clicks`\n* `server_tree`\n* `text`\n* `agents_traces_table`\n* `heatmap`" }, "interval": { "type": "string", "description": "Time interval for the widget's series, such as 5m.", "maxLength": 10 }, "queries": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "string" }, "fields": { "type": "array", "items": { "type": "string" } }, "aggregates": { "type": "array", "items": { "type": "string" }, "nullable": true }, "transformations": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, "columns": { "type": "array", "items": { "type": "string" }, "nullable": true }, "field_aliases": { "type": "array", "items": { "type": "string" }, "nullable": true }, "name": { "type": "string" }, "conditions": { "type": "string" }, "orderby": { "type": "string" }, "is_hidden": { "type": "boolean" }, "on_demand_extraction": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "extraction_state": { "type": "string" }, "enabled": { "type": "boolean" } } }, "on_demand_extraction_disabled": { "type": "boolean" }, "selected_aggregate": { "type": "integer", "nullable": true }, "linked_dashboards": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "field": { "type": "string" }, "dashboard_id": { "type": "string" } }, "required": [ "dashboard_id", "field" ] }, "nullable": true } } }, "description": "Queries that provide the widget's data." }, "widget_type": { "enum": [ "discover", "issue", "metrics", "error-events", "transaction-like", "spans", "logs", "tracemetrics", "preprod-app-size", null ], "type": "string", "nullable": true, "description": "Dataset the widget queries, such as error-events, spans, logs or issue.\n\n* `discover`\n* `issue`\n* `metrics`\n* `error-events`\n* `transaction-like`\n* `spans`\n* `logs`\n* `tracemetrics`\n* `preprod-app-size`" }, "limit": { "type": "integer", "minimum": 1, "nullable": true, "description": "Maximum number of series or rows the widget shows." }, "layout": { "allOf": [ { "type": "object", "description": "Widget grid layout position and dimensions.\n\nThe dashboard uses a 6-column grid. Required keys: x, y, w, h, minH.\nConstraints: x (0-5), y (>= 0), w (1-6), h (>= 1), minH (>= 1), and x + w <= 6.", "properties": { "x": { "type": "integer", "maximum": 5, "minimum": 0, "description": "Column position (0-indexed)." }, "y": { "type": "integer", "minimum": 0, "description": "Row position (0-indexed)." }, "w": { "type": "integer", "maximum": 6, "minimum": 1, "description": "Width in grid columns (1-6)." }, "h": { "type": "integer", "minimum": 1, "description": "Height in grid rows." }, "min_h": { "type": "integer", "minimum": 1, "description": "Minimum height in grid rows." } }, "required": [ "h", "min_h", "w", "x", "y" ] } ], "nullable": true, "description": "Position and size of the widget on the dashboard grid." }, "axis_range": { "enum": [ "auto", "dataMin", null ], "type": "string", "nullable": true, "description": "Y-axis range: auto or dataMin.\n\n* `auto`\n* `dataMin`" }, "legend_type": { "enum": [ "default", "breakdown", null ], "type": "string", "nullable": true, "description": "Legend style: default or breakdown.\n\n* `default`\n* `breakdown`" } } }, "DashboardWidgetQuery": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "string" }, "fields": { "type": "array", "items": { "type": "string" } }, "aggregates": { "type": "array", "items": { "type": "string" }, "nullable": true }, "transformations": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, "columns": { "type": "array", "items": { "type": "string" }, "nullable": true }, "field_aliases": { "type": "array", "items": { "type": "string" }, "nullable": true }, "name": { "type": "string" }, "conditions": { "type": "string" }, "orderby": { "type": "string" }, "is_hidden": { "type": "boolean" }, "on_demand_extraction": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "extraction_state": { "type": "string" }, "enabled": { "type": "boolean" } } }, "on_demand_extraction_disabled": { "type": "boolean" }, "selected_aggregate": { "type": "integer", "nullable": true }, "linked_dashboards": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "field": { "type": "string" }, "dashboard_id": { "type": "string" } }, "required": [ "dashboard_id", "field" ] }, "nullable": true } } }, "DashboardWidgetQueryOnDemand": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "extraction_state": { "type": "string" }, "enabled": { "type": "boolean" } } }, "DataForwarder": { "type": "object", "properties": { "organization_id": { "type": "integer", "description": "The ID of the organization related to the data forwarder." }, "provider": { "enum": [ "segment", "sqs", "splunk" ], "type": "string", "description": "The provider of the data forwarder. One of \"segment\", \"sqs\", or \"splunk\".\n\n* `segment` - Segment\n* `sqs` - Amazon SQS\n* `splunk` - Splunk" }, "is_enabled": { "type": "boolean", "default": true, "description": "Whether the data forwarder is enabled." }, "enroll_new_projects": { "type": "boolean", "default": false, "description": "Whether to enroll new projects automatically, after they're created." }, "config": { "type": "object", "additionalProperties": { "type": "string" }, "description": "The configuration for the data forwarder, specific to the provider type. \nFor a 'sqs' provider, the required keys are queue_url, region, access_key, secret_key. If using a FIFO queue, you must also provide a message_group_id, though s3_bucket is optional. \nFor a 'segment' provider, the required keys are write_key. \nFor a 'splunk' provider, the required keys are instance_url, index, source, token." }, "project_ids": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the projects connected to the data forwarder. Missing project IDs will be unenrolled if previously enrolled." } }, "required": [ "organization_id", "provider" ] }, "DataForwarderResponse": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data forwarder" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "isEnabled": { "type": "boolean", "description": "Whether the data forwarder is on" }, "enrollNewProjects": { "type": "boolean", "description": "Whether new projects are enrolled in the forwarder automatically" }, "enrolledProjects": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "platform", "slug" ] }, "description": "Projects enrolled in the forwarder" }, "provider": { "type": "string", "description": "Service the data is forwarded to: segment, sqs or splunk" }, "config": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Provider settings of the forwarder. Null without org:write access" }, "projectConfigs": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project's data forwarding configuration" }, "isEnabled": { "type": "boolean", "description": "Whether data forwarding is on for the project" }, "dataForwarderId": { "type": "string", "description": "ID of the data forwarder" }, "project": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "platform", "slug" ], "description": "Project the configuration applies to" }, "overrides": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Settings that override the forwarder's config for the project. Empty without project:write or org:write access" }, "effectiveConfig": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Forwarder config merged with the project's overrides. Empty without org:write access" }, "dateAdded": { "type": "string", "format": "date-time", "description": "When the project configuration was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the project configuration was last updated (ISO 8601)" } }, "required": [ "dataForwarderId", "dateAdded", "dateUpdated", "effectiveConfig", "id", "isEnabled", "overrides", "project" ] }, "description": "Configuration of each enrolled project" }, "dateAdded": { "type": "string", "format": "date-time", "description": "When the data forwarder was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the data forwarder was last updated (ISO 8601)" } }, "required": [ "config", "dateAdded", "dateUpdated", "enrollNewProjects", "enrolledProjects", "id", "isEnabled", "organizationId", "projectConfigs", "provider" ] }, "Deploy": { "type": "object", "properties": { "environment": { "type": "string", "description": "The environment you're deploying to", "maxLength": 64 }, "name": { "type": "string", "nullable": true, "description": "The optional name of the deploy", "maxLength": 64 }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "The optional URL that points to the deploy" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "An optional date that indicates when the deploy started" }, "dateFinished": { "type": "string", "format": "date-time", "nullable": true, "description": "An optional date that indicates when the deploy ended. If not provided, the current time is used." }, "projects": { "type": "array", "items": { "type": "string" }, "description": "The optional list of project slugs to create a deploy within. If not provided, deploys are created for all of the release's projects." } }, "required": [ "environment" ] }, "DeployResponse": { "type": "object", "description": "Serializer for Deploy response objects", "properties": { "id": { "type": "string", "description": "The ID of the deploy" }, "environment": { "type": "string", "description": "The environment name" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "An optional date that indicates when the deploy started" }, "dateFinished": { "type": "string", "format": "date-time", "description": "An optional date that indicates when the deploy ended" }, "name": { "type": "string", "nullable": true, "description": "The optional name of the deploy" }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "The optional URL that points to the deploy" } }, "required": [ "dateFinished", "dateStarted", "environment", "id", "name", "url" ] }, "DetailedProject": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" }, "latestRelease": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ], "nullable": true, "description": "Latest release of the project" }, "options": { "type": "object", "additionalProperties": {}, "description": "Additional project settings keyed by option name, such as inbound filters and preprod settings" }, "digestsMinDelay": { "type": "integer", "description": "Minimum time in seconds to wait before sending an issue digest email" }, "digestsMaxDelay": { "type": "integer", "description": "Maximum time in seconds to wait before sending an issue digest email" }, "subjectPrefix": { "type": "string", "description": "Custom prefix for emails from this project" }, "allowedDomains": { "type": "array", "items": { "type": "string" }, "description": "Origins permitted to send events to this project. `*` allows any" }, "resolveAge": { "type": "integer", "description": "Hours after which an issue that hasn't been seen is automatically resolved. 0 disables auto-resolve" }, "dataScrubber": { "type": "boolean", "description": "Whether known sensitive values are removed from events before they are stored" }, "dataScrubberDefaults": { "type": "boolean", "description": "Whether Sentry's built-in list of sensitive field names is also scrubbed" }, "safeFields": { "type": "array", "items": { "type": "string" }, "description": "Field names exempt from scrubbing" }, "storeCrashReports": { "type": "integer", "nullable": true, "description": "Number of native crash report files stored per issue. -1 means unlimited, 0 stores none, and null inherits the organization setting" }, "sensitiveFields": { "type": "array", "items": { "type": "string" }, "description": "Additional field names scrubbed from events, beyond the defaults" }, "subjectTemplate": { "type": "string", "description": "Email subject used for individual alerts, excluding the prefix" }, "securityToken": { "type": "string", "description": "Token sent with security reports (CSP, Expect-CT, HPKP) so Sentry can verify their origin" }, "securityTokenHeader": { "type": "string", "nullable": true, "description": "Name of the header carrying the security token on inbound security reports" }, "verifySSL": { "type": "boolean", "description": "Whether SSL certificates are verified when delivering outbound webhooks and service hooks" }, "scrubIPAddresses": { "type": "boolean", "description": "Whether client IP addresses are discarded rather than stored on events" }, "scrapeJavaScript": { "type": "boolean", "description": "Whether Sentry may fetch source files and source maps from your servers" }, "enableAutoReleaseCreation": { "type": "boolean", "description": "Whether releases are created automatically from ingested events" }, "highlightTags": { "type": "array", "items": { "type": "string" }, "description": "Tag keys highlighted on the project's issues" }, "highlightContext": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "description": "Context keys highlighted on the project's issues, as a mapping of context types to lists of keys" }, "highlightPreset": { "type": "object", "properties": { "tags": { "type": "array", "items": { "type": "string" }, "description": "Tag keys to highlight by default" }, "context": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "description": "Context keys to highlight by default, by context name" } }, "required": [ "context", "tags" ], "description": "Default highlighted tags and context for the project's platform" }, "groupingConfig": { "type": "string", "description": "Identifier of the grouping algorithm used to assign events to issues" }, "derivedGroupingEnhancements": { "type": "string", "description": "Stack trace rules that Sentry derives from the project's code mappings, as a newline-delimited config string" }, "groupingEnhancements": { "type": "string", "description": "Grouping enhancement rules, as a newline-delimited config string, adjusting which stack frames contribute to an issue" }, "secondaryGroupingExpiry": { "type": "integer", "description": "Unix timestamp after which the secondary grouping algorithm stops running" }, "secondaryGroupingConfig": { "type": "string", "nullable": true, "description": "Grouping algorithm run alongside the primary one during a grouping migration" }, "fingerprintingRules": { "type": "string", "description": "Fingerprinting rules, as a newline-delimited config string, controlling how events are grouped into issues" }, "organization": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ], "description": "Organization that owns the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms seen in the project's events" }, "processingIssues": { "type": "integer", "description": "Always 0" }, "defaultEnvironment": { "type": "string", "nullable": true, "description": "Environment selected by default when viewing this project" }, "relayPiiConfig": { "type": "string", "nullable": true, "description": "Advanced data scrubbing rules, as a JSON string, applied before events are stored" }, "builtinSymbolSources": { "type": "array", "items": { "type": "string" }, "description": "Identifiers of Sentry-hosted symbol sources used when symbolicating events" }, "enableNativeSourceServerMapping": { "type": "boolean", "description": "Whether source server (srcsrv) information from native debug files is applied to symbolicated frames" }, "dynamicSamplingBiases": { "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" } ] } }, "nullable": true, "description": "Per-bias toggles adjusting which transactions dynamic sampling favors retaining" }, "symbolSources": { "type": "string", "description": "Custom symbol sources as a JSON string, with secrets redacted" }, "isDynamicallySampled": { "type": "boolean", "description": "Whether dynamic sampling retains less than 100% of the project's transactions" }, "tempestFetchScreenshots": { "type": "boolean", "description": "Whether screenshots attached to console crash reports are fetched. Only included when the organization has Tempest access" }, "autofixAutomationTuning": { "type": "string", "description": "How aggressively Seer runs Autofix on new issues" }, "seerScannerAutomation": { "type": "boolean", "description": "Whether Seer scans new issues automatically" }, "seerNightshiftTweaks": { "description": "Experimental Seer settings with no stable shape" }, "scmSourceContextEnabled": { "type": "boolean", "description": "Whether source context is fetched on demand from SCM integrations for stack traces" }, "debugFilesRole": { "type": "string", "nullable": true, "description": "Role required to download debug information files, ProGuard mappings and source maps. Null inherits the organization setting" } }, "required": [ "access", "allowedDomains", "avatar", "builtinSymbolSources", "color", "dataScrubber", "dataScrubberDefaults", "dateCreated", "defaultEnvironment", "derivedGroupingEnhancements", "digestsMaxDelay", "digestsMinDelay", "dynamicSamplingBiases", "enableAutoReleaseCreation", "enableNativeSourceServerMapping", "features", "fingerprintingRules", "firstEvent", "firstTransactionEvent", "groupingConfig", "groupingEnhancements", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "highlightContext", "highlightPreset", "highlightTags", "id", "isBookmarked", "isDynamicallySampled", "isInternal", "isMember", "isPublic", "latestRelease", "name", "options", "organization", "platform", "platforms", "processingIssues", "relayPiiConfig", "resolveAge", "safeFields", "scrapeJavaScript", "scrubIPAddresses", "secondaryGroupingConfig", "secondaryGroupingExpiry", "securityToken", "securityTokenHeader", "sensitiveFields", "slug", "status", "storeCrashReports", "subjectPrefix", "subjectTemplate", "symbolSources", "teams", "verifySSL" ] }, "DetailedSelfUser": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" }, "permissions": { "type": "array", "items": { "type": "string" }, "description": "Sentry staff permissions granted to the user, such as users.admin. Empty for most users" }, "options": { "type": "object", "properties": { "theme": { "type": "string", "description": "UI theme: \"light\", \"dark\" or \"system\". Defaults to \"system\"" }, "language": { "type": "string", "description": "UI language code, such as `en`" }, "stacktraceOrder": { "enum": [ -1, 1, 2 ], "type": "integer", "description": "Stack trace frame order: -1 for the default (most recent first), 1 for most recent last, 2 for most recent first" }, "defaultIssueEvent": { "type": "string", "description": "Event shown by default on issue details: \"recommended\", \"latest\" or \"oldest\"" }, "timezone": { "type": "string", "description": "Time zone for displayed dates, such as `UTC`" }, "clock24Hours": { "type": "boolean", "description": "Whether times are shown in 24-hour format" }, "prefersIssueDetailsStreamlinedUI": { "type": "boolean", "nullable": true, "description": "Whether the user prefers the streamlined issue details UI, or null if they haven't chosen" } }, "required": [ "clock24Hours", "defaultIssueEvent", "language", "prefersIssueDetailsStreamlinedUI", "stacktraceOrder", "theme", "timezone" ], "description": "The user's preferences. Only included for the requesting user" }, "flags": { "type": "object", "properties": { "newsletter_consent_prompt": { "type": "boolean", "description": "Whether to ask the user for newsletter consent" } }, "required": [ "newsletter_consent_prompt" ], "description": "Account flags. Only included for the requesting user" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "permissions", "username" ] }, "Detector": { "type": "object", "properties": { "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor" }, "createdBy": { "type": "string", "nullable": true, "description": "ID of the user who created the monitor" }, "latestGroup": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" } }, "required": [ "culprit", "firstSeen", "id", "issueCategory", "issueType", "lastSeen", "level", "metadata", "numComments", "platform", "project", "shortId", "status", "substatus", "title", "type" ], "nullable": true, "description": "Latest issue the monitor created" }, "description": { "type": "string", "nullable": true, "description": "Description of the monitor" }, "id": { "type": "string", "description": "Monitor ID" }, "projectId": { "type": "string", "nullable": true, "description": "ID of the project the monitor belongs to" }, "name": { "type": "string", "description": "Monitor name" }, "type": { "type": "string", "description": "Type of the monitor, such as metric_issue or error" }, "workflowIds": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "IDs of the alerts connected to the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the monitor was last updated (ISO 8601)" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "enum": [ "snuba_query_subscription", "cron_monitor", "uptime_subscription" ], "type": "string", "description": "Type of the data source" }, "sourceId": { "type": "string", "description": "ID of the query subscription, cron monitor or uptime subscription" }, "queryObj": { "anyOf": [ { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ] }, { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] }, { "type": "object", "properties": { "url": { "type": "string", "description": "URL the check requests" }, "method": { "type": "string", "description": "HTTP method of the check request, such as GET" }, "body": { "type": "string", "nullable": true, "description": "Body of the check request. Null when it has none" }, "headers": { "type": "array", "items": { "type": "array", "items": { "type": "string" }, "minLength": 2, "maxLength": 2 }, "description": "Headers of the check request, each a name and value pair" }, "intervalSeconds": { "type": "integer", "description": "How often the check runs, in seconds" }, "timeoutMs": { "type": "integer", "description": "How long the check waits for a response, in milliseconds" }, "traceSampling": { "type": "boolean", "description": "Whether the check request samples a trace" }, "responseCaptureEnabled": { "type": "boolean", "description": "Whether failed checks capture the response body and headers" }, "assertion": { "description": "Assertion the response must pass. Null when the check has none", "type": "object", "properties": { "root": { "description": "All possible assertion operations", "anyOf": [ { "description": "The boolean AND operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "and" ], "description": "Operation, always and" }, "children": { "type": "array", "items": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." }, "description": "Operations that must all pass" } } }, { "description": "The boolean OR operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "or" ], "description": "Operation, always or" }, "children": { "type": "array", "items": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." }, "description": "Operations of which at least one must pass" } } }, { "description": "The negation operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "not" ], "description": "Operation, always not" }, "operand": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." } } }, { "description": "The HTTP status code comparison operation", "type": "object", "properties": { "value": { "type": "integer", "description": "HTTP status code to compare the response status code against" }, "operator": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] } } }, { "description": "The JSONPath query operation", "type": "object", "properties": { "op": { "enum": [ "json_path" ], "description": "Operation, always json_path" }, "value": { "type": "string", "description": "JSONPath query to run on the response body" }, "operator": { "nullable": true, "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ], "type": "string" }, "operand": { "description": "An operand for comparison against json path values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "jsonpath_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the query result against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } }, { "type": "object", "nullable": true, "enum": [ null ] } ] } } }, { "description": "The HTTP header (key and value) comparison operation", "type": "object", "properties": { "key_op": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] }, "key_operand": { "description": "A operand for comparison against HTTP header keys and values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the header key or value against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } } ] }, "value_op": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] }, "value_operand": { "description": "A operand for comparison against HTTP header keys and values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the header key or value against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } } ] } } } ] } }, "nullable": true } }, "required": [ "assertion", "body", "headers", "intervalSeconds", "method", "responseCaptureEnabled", "timeoutMs", "traceSampling", "url" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The query subscription, cron monitor or uptime subscription, which depends on type. Null when it no longer exists" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "nullable": true, "description": "Data sources the monitor evaluates, such as a query subscription" }, "conditionGroup": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } }, "nullable": true, "description": "Conditions that decide the monitor's status" }, "config": { "anyOf": [ { "type": "object", "maxProperties": 0, "description": "Empty for monitor types without configuration" }, { "type": "object", "additionalProperties": false, "properties": { "sentry:fingerprintingRules": { "type": "string", "description": "Fingerprinting rules of the project" }, "sentry:resolveAge": { "type": "integer", "description": "Hours of inactivity after which the project's issues resolve. 0 to never" } } }, { "type": "object", "additionalProperties": false, "properties": { "organizationId": { "type": "integer", "description": "ID of the organization" } } }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "additionalProperties": false, "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ], "description": "For percent detection, how far back the compared window is, in seconds" }, "detectionType": { "type": "string", "enum": [ "static", "percent", "dynamic" ], "description": "How the monitor detects issues: static thresholds, percent change or dynamic anomalies" } } }, { "description": "Configuration for preprod static analysis detector", "type": "object", "required": [ "thresholdType", "measurement" ], "additionalProperties": false, "properties": { "thresholdType": { "type": "string", "enum": [ "absolute_diff", "absolute", "relative_diff" ], "description": "The type of threshold to apply" }, "measurement": { "type": "string", "enum": [ "install_size", "download_size" ], "description": "The measurement to track" }, "query": { "type": "string", "description": "Search query to filter which artifacts are monitored" } } }, { "description": "A representation of an uptime alert", "type": "object", "required": [ "mode", "environment", "recoveryThreshold", "downtimeThreshold" ], "additionalProperties": false, "properties": { "mode": { "type": "integer", "enum": [ 1, 2, 3 ], "description": "How the monitor was created: 1 manually, 2 auto-detected and onboarding, 3 auto-detected and active" }, "environment": { "type": "string", "nullable": true, "description": "Environment of the monitor. Null for none" }, "recoveryThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive successful checks required to mark monitor as recovered" }, "downtimeThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive failed checks required to mark monitor as down" } } } ], "description": "Configuration of the monitor, which depends on its type" }, "enabled": { "type": "boolean", "description": "Whether the monitor is enabled" } }, "required": [ "conditionGroup", "config", "dataSources", "dateCreated", "dateUpdated", "enabled", "id", "name", "projectId", "type", "workflowIds" ] }, "DetectorCreateRequest": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "description": "The type of monitor - `metric_issue`." }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "oneOf": [ { "type": "object", "title": "Errors", "description": "Counts error events or the users they affect.", "properties": { "query_type": { "type": "integer", "enum": [ 0 ] }, "dataset": { "type": "string", "enum": [ "events" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "enum": [ "count()", "count_unique(user)", "count_unique(dist)", "count_unique(release)", "count_unique(tags[sentry:user])", "count_unique(tags[sentry:dist])", "count_unique(tags[sentry:release])" ] }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "error", "default" ] }, "minItems": 1, "maxItems": 2 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Spans", "description": "Aggregates span attributes, such as `p95(span.duration)`. To query transaction spans, add `is_transaction:true` to `query`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|p100|max|min|sum|epm|failure_count|failure_rate|eps|apdex|user_misery|performance_score|opportunity_score)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_span" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Logs", "description": "Aggregates log attributes, such as `count(message)`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_log" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Application Metrics", "description": "Aggregates an application metric. The function arguments name the metric, its type, and its unit, such as `per_second(value,metric_name,counter,-)`. An `equation|` prefix combines several aggregates.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:(?:avg|avg_if|count|count_if|count_unique|count_unique_if|max|max_if|min|min_if|opportunity_score|p50|p50_if|p75|p75_if|p90|p90_if|p95|p95_if|p99|p99_if|per_minute|per_minute_if|per_second|per_second_if|performance_score|sum|sum_if)\\(.*\\)|equation\\|.+)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_metric" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Crash Rate", "description": "Measures the percentage of crashed sessions or users, such as `percentage(sessions_crashed, sessions) AS _crash_rate_alert_aggregate`.", "properties": { "query_type": { "type": "integer", "enum": [ 2 ] }, "dataset": { "type": "string", "enum": [ "metrics" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^percentage\\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\\)" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string" }, "description": "Ignored for this dataset. Send an empty list." }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] } ] }, "description": "\n The data sources for the metric monitor to use based on what you want to measure.\n\n The schema of each data source lists the `aggregate` values that its `dataset` and\n `eventTypes` accept.\n\n `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.\n Legacy metric alert rules expressed this value in minutes, so multiply a legacy value\n by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes\n `\"timeWindow\": 300`.\n\n **Number of Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count()\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n **Users Experiencing Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count_unique(tags[sentry:user])\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n\n **Throughput Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"count(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Duration Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"p95(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Failure Rate Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"failure_rate()\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Largest Contentful Paint Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`.\n\n ```json\n [\n {\n \"aggregate\":\"p95(measurements.lcp)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"is_transaction:true\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Custom Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are:\n `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `failure_rate()`\n `apdex(x)`, where `x` is the value of the Apdex score.\n `count()`\n\n ```json\n [\n {\n \"aggregate\": \"p75(measurements.ttfb)\",\n \"dataset\": \"events_analytics_platform\",\n \"environment\": \"prod\",\n \"queryType\": 1,\n \"eventTypes\": [\"trace_item_span\"],\n \"query\": \"is_transaction:true\",\n \"timeWindow\": 3600,\n \"extrapolationMode\": \"unknown\"\n }\n ]\n ```\n" }, "config": { "type": "object", "additionalProperties": {}, "description": "\n The issue detection type configuration.\n\n\n - `detectionType`\n - `static`: Threshold based monitor\n - `percent`: Change based monitor\n - `dynamic`: Dynamic monitor\n - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period, in seconds, at which to compare against historical data.\n For example, a value of 3600 compares the metric tracked against data 1 hour ago.\n - `300`: 5 minutes\n - `900`: 15 minutes\n - `3600`: 1 hour\n - `86400`: 1 day\n - `604800`: 1 week\n - `2592000`: 1 month\n\n **Threshold**\n ```json\n {\n \"detectionType\": \"static\"\n }\n ```\n **Change**\n ```json\n {\n \"detectionType\": \"percent\",\n \"comparisonDelta\": 3600\n }\n ```\n **Dynamic**\n ```json\n {\n \"detectionType\": \"dynamic\"\n }\n ```\n " }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "required": [ "name", "type" ], "oneOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "metric_issue" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "query_type": { "type": "integer" }, "dataset": { "type": "string" }, "query": { "type": "string" }, "aggregate": { "type": "string" }, "time_window": { "type": "integer" }, "environment": { "type": "string", "nullable": true, "maxLength": 64 }, "event_types": { "type": "array", "items": { "type": "string" } }, "group_by": { "type": "array", "items": { "type": "string", "maxLength": 200 } }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "aggregate", "dataset", "environment", "event_types", "query", "time_window" ] } }, "config": { "oneOf": [ { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ] }, "detectionType": { "type": "string", "enum": [ "static" ] } }, "additionalProperties": false, "title": "Static Detection Config" }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ] }, "detectionType": { "type": "string", "enum": [ "percent" ] } }, "additionalProperties": false, "title": "Percent Detection Config" }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ] }, "detectionType": { "type": "string", "enum": [ "dynamic" ] } }, "additionalProperties": false, "title": "Dynamic Detection Config" } ], "discriminator": { "propertyName": "detectionType" } }, "conditionGroup": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": { "oneOf": [ { "title": "Threshold Condition", "type": "object", "properties": { "id": { "type": "integer" }, "conditionResult": { "type": "integer", "enum": [ 0, 50, 75 ] }, "type": { "type": "string", "enum": [ "gt", "lt", "gte", "lte" ] }, "comparison": { "type": "number" } }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Anomaly Detection Condition", "type": "object", "properties": { "id": { "type": "integer" }, "conditionResult": { "type": "integer", "enum": [ 0, 50, 75 ] }, "type": { "type": "string", "enum": [ "anomaly_detection" ] }, "comparison": { "type": "object", "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ] }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ] }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ] } }, "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false } }, "required": [ "type", "comparison", "conditionResult" ] } ], "discriminator": { "propertyName": "type" } } } }, "required": [ "conditions", "logicType" ] }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "required": [ "conditionGroup", "dataSources", "name", "type" ], "title": "Metric Issue Monitor" }, { "type": "object", "description": "Validator for monitor incident detection configuration.\n\nThis is a lightweight validator that delegates Monitor creation/update to the\ndata_source field (MonitorDataSourceValidator).", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "monitor_check_in_failure" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "type": "object", "description": "Data source validator for cron monitors.\n\nThis handles creating/updating the Monitor when a detector is created/updated.", "properties": { "name": { "type": "string", "description": "Name of the monitor. Used for notifications.", "maxLength": 128 }, "slug": { "type": "string", "description": "Uniquely identifies your monitor within your organization.", "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "status": { "type": "string" }, "owner": { "type": "string", "nullable": true }, "is_muted": { "type": "boolean" }, "config": { "type": "object", "additionalProperties": {} } }, "required": [ "config" ] } }, "config": { "type": "object" }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "required": [ "name", "type" ], "title": "Monitor Check In Failure Monitor" }, { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "preprod_size_analysis" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "oneOf": [ { "type": "object", "title": "Errors", "description": "Counts error events or the users they affect.", "properties": { "query_type": { "type": "integer", "enum": [ 0 ] }, "dataset": { "type": "string", "enum": [ "events" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "enum": [ "count()", "count_unique(user)", "count_unique(dist)", "count_unique(release)", "count_unique(tags[sentry:user])", "count_unique(tags[sentry:dist])", "count_unique(tags[sentry:release])" ] }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "error", "default" ] }, "minItems": 1, "maxItems": 2 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Spans", "description": "Aggregates span attributes, such as `p95(span.duration)`. To query transaction spans, add `is_transaction:true` to `query`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|p100|max|min|sum|epm|failure_count|failure_rate|eps|apdex|user_misery|performance_score|opportunity_score)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_span" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Logs", "description": "Aggregates log attributes, such as `count(message)`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_log" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Application Metrics", "description": "Aggregates an application metric. The function arguments name the metric, its type, and its unit, such as `per_second(value,metric_name,counter,-)`. An `equation|` prefix combines several aggregates.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:(?:avg|avg_if|count|count_if|count_unique|count_unique_if|max|max_if|min|min_if|opportunity_score|p50|p50_if|p75|p75_if|p90|p90_if|p95|p95_if|p99|p99_if|per_minute|per_minute_if|per_second|per_second_if|performance_score|sum|sum_if)\\(.*\\)|equation\\|.+)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_metric" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Crash Rate", "description": "Measures the percentage of crashed sessions or users, such as `percentage(sessions_crashed, sessions) AS _crash_rate_alert_aggregate`.", "properties": { "query_type": { "type": "integer", "enum": [ 2 ] }, "dataset": { "type": "string", "enum": [ "metrics" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^percentage\\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\\)" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string" }, "description": "Ignored for this dataset. Send an empty list." }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] } ] }, "description": "\n The data sources for the metric monitor to use based on what you want to measure.\n\n The schema of each data source lists the `aggregate` values that its `dataset` and\n `eventTypes` accept.\n\n `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.\n Legacy metric alert rules expressed this value in minutes, so multiply a legacy value\n by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes\n `\"timeWindow\": 300`.\n\n **Number of Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count()\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n **Users Experiencing Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count_unique(tags[sentry:user])\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n\n **Throughput Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"count(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Duration Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"p95(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Failure Rate Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"failure_rate()\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Largest Contentful Paint Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`.\n\n ```json\n [\n {\n \"aggregate\":\"p95(measurements.lcp)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"is_transaction:true\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Custom Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are:\n `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `failure_rate()`\n `apdex(x)`, where `x` is the value of the Apdex score.\n `count()`\n\n ```json\n [\n {\n \"aggregate\": \"p75(measurements.ttfb)\",\n \"dataset\": \"events_analytics_platform\",\n \"environment\": \"prod\",\n \"queryType\": 1,\n \"eventTypes\": [\"trace_item_span\"],\n \"query\": \"is_transaction:true\",\n \"timeWindow\": 3600,\n \"extrapolationMode\": \"unknown\"\n }\n ]\n ```\n" }, "config": { "description": "Configuration for preprod static analysis detector", "type": "object", "properties": { "thresholdType": { "type": "string", "enum": [ "absolute_diff", "absolute", "relative_diff" ], "description": "The type of threshold to apply" }, "measurement": { "type": "string", "enum": [ "install_size", "download_size" ], "description": "The measurement to track" }, "query": { "type": "string", "description": "Search query to filter which artifacts are monitored" } }, "required": [ "thresholdType", "measurement" ], "additionalProperties": false }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "required": [ "name", "type" ], "title": "Preprod Size Analysis Monitor" }, { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "uptime_domain_failure" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "url": { "type": "string", "format": "uri", "maxLength": 255 }, "headers": { "type": "object", "additionalProperties": {}, "description": "Additional headers to send with the check request." }, "timeout_ms": { "type": "integer", "maximum": 60000, "minimum": 1000, "description": "The number of milliseconds the request will wait for a response before timing-out." }, "method": { "enum": [ "GET", "POST", "HEAD", "PUT", "DELETE", "PATCH", "OPTIONS" ], "type": "string", "description": "The HTTP method used to make the check request.\n\n* `GET`\n* `POST`\n* `HEAD`\n* `PUT`\n* `DELETE`\n* `PATCH`\n* `OPTIONS`" }, "trace_sampling": { "type": "boolean", "default": false, "description": "When enabled allows check requets to be considered for dowstream performance tracing." }, "response_capture_enabled": { "type": "boolean", "default": true, "description": "When enabled, response body and headers will be captured on check failures." }, "body": { "type": "string", "nullable": true, "description": "The body to send with the check request." }, "interval_seconds": { "enum": [ 60, 300, 600, 1200, 1800, 3600 ], "type": "integer", "description": "Time in seconds between uptime checks.\n\n* `60` - 1 minute\n* `300` - 5 minutes\n* `600` - 10 minutes\n* `1200` - 20 minutes\n* `1800` - 30 minutes\n* `3600` - 1 hour" }, "assertion": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "The assertion to send with the check request." } }, "required": [ "interval_seconds", "timeout_ms", "url" ] } }, "config": { "description": "A representation of an uptime alert", "type": "object", "required": [ "mode", "environment", "recoveryThreshold", "downtimeThreshold" ], "properties": { "mode": { "type": "integer", "enum": [ 1, 2, 3 ] }, "environment": { "type": "string", "nullable": true }, "recoveryThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive successful checks required to mark monitor as recovered" }, "downtimeThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive failed checks required to mark monitor as down" } }, "additionalProperties": false }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "required": [ "name", "type" ], "title": "Uptime Domain Failure Monitor" } ], "discriminator": { "propertyName": "type" } }, "DetectorUpdateRequest": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "description": "The type of monitor - `metric_issue`." }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "oneOf": [ { "type": "object", "title": "Errors", "description": "Counts error events or the users they affect.", "properties": { "query_type": { "type": "integer", "enum": [ 0 ] }, "dataset": { "type": "string", "enum": [ "events" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "enum": [ "count()", "count_unique(user)", "count_unique(dist)", "count_unique(release)", "count_unique(tags[sentry:user])", "count_unique(tags[sentry:dist])", "count_unique(tags[sentry:release])" ] }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "error", "default" ] }, "minItems": 1, "maxItems": 2 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Spans", "description": "Aggregates span attributes, such as `p95(span.duration)`. To query transaction spans, add `is_transaction:true` to `query`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|p100|max|min|sum|epm|failure_count|failure_rate|eps|apdex|user_misery|performance_score|opportunity_score)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_span" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Logs", "description": "Aggregates log attributes, such as `count(message)`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_log" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Application Metrics", "description": "Aggregates an application metric. The function arguments name the metric, its type, and its unit, such as `per_second(value,metric_name,counter,-)`. An `equation|` prefix combines several aggregates.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:(?:avg|avg_if|count|count_if|count_unique|count_unique_if|max|max_if|min|min_if|opportunity_score|p50|p50_if|p75|p75_if|p90|p90_if|p95|p95_if|p99|p99_if|per_minute|per_minute_if|per_second|per_second_if|performance_score|sum|sum_if)\\(.*\\)|equation\\|.+)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_metric" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Crash Rate", "description": "Measures the percentage of crashed sessions or users, such as `percentage(sessions_crashed, sessions) AS _crash_rate_alert_aggregate`.", "properties": { "query_type": { "type": "integer", "enum": [ 2 ] }, "dataset": { "type": "string", "enum": [ "metrics" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^percentage\\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\\)" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string" }, "description": "Ignored for this dataset. Send an empty list." }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] } ] }, "description": "\n The data sources for the metric monitor to use based on what you want to measure.\n\n The schema of each data source lists the `aggregate` values that its `dataset` and\n `eventTypes` accept.\n\n `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.\n Legacy metric alert rules expressed this value in minutes, so multiply a legacy value\n by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes\n `\"timeWindow\": 300`.\n\n **Number of Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count()\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n **Users Experiencing Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count_unique(tags[sentry:user])\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n\n **Throughput Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"count(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Duration Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"p95(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Failure Rate Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"failure_rate()\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Largest Contentful Paint Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`.\n\n ```json\n [\n {\n \"aggregate\":\"p95(measurements.lcp)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"is_transaction:true\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Custom Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are:\n `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `failure_rate()`\n `apdex(x)`, where `x` is the value of the Apdex score.\n `count()`\n\n ```json\n [\n {\n \"aggregate\": \"p75(measurements.ttfb)\",\n \"dataset\": \"events_analytics_platform\",\n \"environment\": \"prod\",\n \"queryType\": 1,\n \"eventTypes\": [\"trace_item_span\"],\n \"query\": \"is_transaction:true\",\n \"timeWindow\": 3600,\n \"extrapolationMode\": \"unknown\"\n }\n ]\n ```\n" }, "config": { "type": "object", "additionalProperties": {}, "description": "\n The issue detection type configuration.\n\n\n - `detectionType`\n - `static`: Threshold based monitor\n - `percent`: Change based monitor\n - `dynamic`: Dynamic monitor\n - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period, in seconds, at which to compare against historical data.\n For example, a value of 3600 compares the metric tracked against data 1 hour ago.\n - `300`: 5 minutes\n - `900`: 15 minutes\n - `3600`: 1 hour\n - `86400`: 1 day\n - `604800`: 1 week\n - `2592000`: 1 month\n\n **Threshold**\n ```json\n {\n \"detectionType\": \"static\"\n }\n ```\n **Change**\n ```json\n {\n \"detectionType\": \"percent\",\n \"comparisonDelta\": 3600\n }\n ```\n **Dynamic**\n ```json\n {\n \"detectionType\": \"dynamic\"\n }\n ```\n " }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "anyOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "error" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "oneOf": [ { "type": "object", "title": "Errors", "description": "Counts error events or the users they affect.", "properties": { "query_type": { "type": "integer", "enum": [ 0 ] }, "dataset": { "type": "string", "enum": [ "events" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "enum": [ "count()", "count_unique(user)", "count_unique(dist)", "count_unique(release)", "count_unique(tags[sentry:user])", "count_unique(tags[sentry:dist])", "count_unique(tags[sentry:release])" ] }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "error", "default" ] }, "minItems": 1, "maxItems": 2 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Spans", "description": "Aggregates span attributes, such as `p95(span.duration)`. To query transaction spans, add `is_transaction:true` to `query`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|p100|max|min|sum|epm|failure_count|failure_rate|eps|apdex|user_misery|performance_score|opportunity_score)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_span" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Logs", "description": "Aggregates log attributes, such as `count(message)`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_log" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Application Metrics", "description": "Aggregates an application metric. The function arguments name the metric, its type, and its unit, such as `per_second(value,metric_name,counter,-)`. An `equation|` prefix combines several aggregates.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:(?:avg|avg_if|count|count_if|count_unique|count_unique_if|max|max_if|min|min_if|opportunity_score|p50|p50_if|p75|p75_if|p90|p90_if|p95|p95_if|p99|p99_if|per_minute|per_minute_if|per_second|per_second_if|performance_score|sum|sum_if)\\(.*\\)|equation\\|.+)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_metric" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Crash Rate", "description": "Measures the percentage of crashed sessions or users, such as `percentage(sessions_crashed, sessions) AS _crash_rate_alert_aggregate`.", "properties": { "query_type": { "type": "integer", "enum": [ 2 ] }, "dataset": { "type": "string", "enum": [ "metrics" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^percentage\\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\\)" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string" }, "description": "Ignored for this dataset. Send an empty list." }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] } ] }, "description": "\n The data sources for the metric monitor to use based on what you want to measure.\n\n The schema of each data source lists the `aggregate` values that its `dataset` and\n `eventTypes` accept.\n\n `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.\n Legacy metric alert rules expressed this value in minutes, so multiply a legacy value\n by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes\n `\"timeWindow\": 300`.\n\n **Number of Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count()\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n **Users Experiencing Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count_unique(tags[sentry:user])\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n\n **Throughput Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"count(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Duration Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"p95(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Failure Rate Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"failure_rate()\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Largest Contentful Paint Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`.\n\n ```json\n [\n {\n \"aggregate\":\"p95(measurements.lcp)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"is_transaction:true\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Custom Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are:\n `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `failure_rate()`\n `apdex(x)`, where `x` is the value of the Apdex score.\n `count()`\n\n ```json\n [\n {\n \"aggregate\": \"p75(measurements.ttfb)\",\n \"dataset\": \"events_analytics_platform\",\n \"environment\": \"prod\",\n \"queryType\": 1,\n \"eventTypes\": [\"trace_item_span\"],\n \"query\": \"is_transaction:true\",\n \"timeWindow\": 3600,\n \"extrapolationMode\": \"unknown\"\n }\n ]\n ```\n" }, "config": { "type": "object", "additionalProperties": false }, "conditionGroup": { "type": "object", "additionalProperties": {}, "nullable": true }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." }, "fingerprintingRules": { "type": "string", "nullable": true }, "resolveAge": { "type": "integer", "nullable": true, "description": "Automatically resolve an issue if it hasn't been seen for this many hours. Set to `0` to disable auto-resolve." } }, "title": "Error Monitor" }, { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "metric_issue" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "query_type": { "type": "integer" }, "dataset": { "type": "string" }, "query": { "type": "string" }, "aggregate": { "type": "string" }, "time_window": { "type": "integer" }, "environment": { "type": "string", "nullable": true, "maxLength": 64 }, "event_types": { "type": "array", "items": { "type": "string" } }, "group_by": { "type": "array", "items": { "type": "string", "maxLength": 200 } }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "aggregate", "dataset", "environment", "event_types", "query", "time_window" ] } }, "config": { "oneOf": [ { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ] }, "detectionType": { "type": "string", "enum": [ "static" ] } }, "additionalProperties": false, "title": "Static Detection Config" }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ] }, "detectionType": { "type": "string", "enum": [ "percent" ] } }, "additionalProperties": false, "title": "Percent Detection Config" }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ] }, "detectionType": { "type": "string", "enum": [ "dynamic" ] } }, "additionalProperties": false, "title": "Dynamic Detection Config" } ], "discriminator": { "propertyName": "detectionType" } }, "conditionGroup": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": { "oneOf": [ { "title": "Threshold Condition", "type": "object", "properties": { "id": { "type": "integer" }, "conditionResult": { "type": "integer", "enum": [ 0, 50, 75 ] }, "type": { "type": "string", "enum": [ "gt", "lt", "gte", "lte" ] }, "comparison": { "type": "number" } }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Anomaly Detection Condition", "type": "object", "properties": { "id": { "type": "integer" }, "conditionResult": { "type": "integer", "enum": [ 0, 50, 75 ] }, "type": { "type": "string", "enum": [ "anomaly_detection" ] }, "comparison": { "type": "object", "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ] }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ] }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ] } }, "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false } }, "required": [ "type", "comparison", "conditionResult" ] } ], "discriminator": { "propertyName": "type" } } } }, "required": [ "conditions", "logicType" ] }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "title": "Metric Issue Monitor" }, { "type": "object", "description": "Validator for monitor incident detection configuration.\n\nThis is a lightweight validator that delegates Monitor creation/update to the\ndata_source field (MonitorDataSourceValidator).", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "monitor_check_in_failure" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "type": "object", "description": "Data source validator for cron monitors.\n\nThis handles creating/updating the Monitor when a detector is created/updated.", "properties": { "name": { "type": "string", "description": "Name of the monitor. Used for notifications.", "maxLength": 128 }, "slug": { "type": "string", "description": "Uniquely identifies your monitor within your organization.", "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "status": { "type": "string" }, "owner": { "type": "string", "nullable": true }, "is_muted": { "type": "boolean" }, "config": { "type": "object", "additionalProperties": {} } }, "required": [ "config" ] } }, "config": { "type": "object" }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "title": "Monitor Check In Failure Monitor" }, { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "preprod_size_analysis" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "oneOf": [ { "type": "object", "title": "Errors", "description": "Counts error events or the users they affect.", "properties": { "query_type": { "type": "integer", "enum": [ 0 ] }, "dataset": { "type": "string", "enum": [ "events" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "enum": [ "count()", "count_unique(user)", "count_unique(dist)", "count_unique(release)", "count_unique(tags[sentry:user])", "count_unique(tags[sentry:dist])", "count_unique(tags[sentry:release])" ] }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "error", "default" ] }, "minItems": 1, "maxItems": 2 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Spans", "description": "Aggregates span attributes, such as `p95(span.duration)`. To query transaction spans, add `is_transaction:true` to `query`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|p100|max|min|sum|epm|failure_count|failure_rate|eps|apdex|user_misery|performance_score|opportunity_score)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_span" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Logs", "description": "Aggregates log attributes, such as `count(message)`.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:count|count_unique|avg|p50|p75|p90|p95|p99|max|min|sum)\\(.*\\)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_log" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Application Metrics", "description": "Aggregates an application metric. The function arguments name the metric, its type, and its unit, such as `per_second(value,metric_name,counter,-)`. An `equation|` prefix combines several aggregates.", "properties": { "query_type": { "type": "integer", "enum": [ 1 ] }, "dataset": { "type": "string", "enum": [ "events_analytics_platform" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^(?:(?:avg|avg_if|count|count_if|count_unique|count_unique_if|max|max_if|min|min_if|opportunity_score|p50|p50_if|p75|p75_if|p90|p90_if|p95|p95_if|p99|p99_if|per_minute|per_minute_if|per_second|per_second_if|performance_score|sum|sum_if)\\(.*\\)|equation\\|.+)$" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string", "enum": [ "trace_item_metric" ] }, "minItems": 1, "maxItems": 1 }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] }, { "type": "object", "title": "Crash Rate", "description": "Measures the percentage of crashed sessions or users, such as `percentage(sessions_crashed, sessions) AS _crash_rate_alert_aggregate`.", "properties": { "query_type": { "type": "integer", "enum": [ 2 ] }, "dataset": { "type": "string", "enum": [ "metrics" ] }, "query": { "type": "string", "description": "A search query to filter the events, such as `is:unresolved`." }, "aggregate": { "type": "string", "pattern": "^percentage\\([ ]*(sessions_crashed|users_crashed)[ ]*,[ ]*(sessions|users)[ ]*\\)" }, "time_window": { "type": "integer", "description": "The time window to aggregate over, in seconds." }, "environment": { "type": "string", "nullable": true }, "event_types": { "type": "array", "items": { "type": "string" }, "description": "Ignored for this dataset. Send an empty list." }, "extrapolation_mode": { "type": "string", "nullable": true } }, "required": [ "dataset", "query", "aggregate", "time_window", "environment", "event_types" ] } ] }, "description": "\n The data sources for the metric monitor to use based on what you want to measure.\n\n The schema of each data source lists the `aggregate` values that its `dataset` and\n `eventTypes` accept.\n\n `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.\n Legacy metric alert rules expressed this value in minutes, so multiply a legacy value\n by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes\n `\"timeWindow\": 300`.\n\n **Number of Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count()\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n **Users Experiencing Errors Metric Monitor**\n - `eventTypes`: Any of `error` or `default`.\n ```json\n [\n {\n \"aggregate\": \"count_unique(tags[sentry:user])\",\n \"dataset\" : \"events\",\n \"environment\": \"prod\",\n \"eventTypes\": [\"default\", \"error\"],\n \"query\": \"is:unresolved\",\n \"queryType\": 0,\n \"timeWindow\": 3600\n }\n ]\n ```\n\n\n **Throughput Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"count(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Duration Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"p95(span.duration)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Failure Rate Metric Monitor**\n ```json\n [\n {\n \"aggregate\":\"failure_rate()\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Largest Contentful Paint Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`.\n\n ```json\n [\n {\n \"aggregate\":\"p95(measurements.lcp)\",\n \"dataset\":\"events_analytics_platform\",\n \"environment\":\"prod\",\n \"eventTypes\":[\"trace_item_span\"],\n \"query\":\"is_transaction:true\",\n \"queryType\":1,\n \"timeWindow\":3600,\n \"extrapolationMode\":\"unknown\"\n }\n ]\n ```\n\n **Custom Metric Monitor**\n - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.\n - `aggregate`: Valid values are:\n `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.\n `failure_rate()`\n `apdex(x)`, where `x` is the value of the Apdex score.\n `count()`\n\n ```json\n [\n {\n \"aggregate\": \"p75(measurements.ttfb)\",\n \"dataset\": \"events_analytics_platform\",\n \"environment\": \"prod\",\n \"queryType\": 1,\n \"eventTypes\": [\"trace_item_span\"],\n \"query\": \"is_transaction:true\",\n \"timeWindow\": 3600,\n \"extrapolationMode\": \"unknown\"\n }\n ]\n ```\n" }, "config": { "description": "Configuration for preprod static analysis detector", "type": "object", "properties": { "thresholdType": { "type": "string", "enum": [ "absolute_diff", "absolute", "relative_diff" ], "description": "The type of threshold to apply" }, "measurement": { "type": "string", "enum": [ "install_size", "download_size" ], "description": "The measurement to track" }, "query": { "type": "string", "description": "Search query to filter which artifacts are monitored" } }, "required": [ "thresholdType", "measurement" ], "additionalProperties": false }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "title": "Preprod Size Analysis Monitor" }, { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "Name of the monitor.", "maxLength": 200 }, "type": { "type": "string", "enum": [ "uptime_domain_failure" ] }, "workflowIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs." }, "dataSources": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "url": { "type": "string", "format": "uri", "maxLength": 255 }, "headers": { "type": "object", "additionalProperties": {}, "description": "Additional headers to send with the check request." }, "timeout_ms": { "type": "integer", "maximum": 60000, "minimum": 1000, "description": "The number of milliseconds the request will wait for a response before timing-out." }, "method": { "enum": [ "GET", "POST", "HEAD", "PUT", "DELETE", "PATCH", "OPTIONS" ], "type": "string", "description": "The HTTP method used to make the check request.\n\n* `GET`\n* `POST`\n* `HEAD`\n* `PUT`\n* `DELETE`\n* `PATCH`\n* `OPTIONS`" }, "trace_sampling": { "type": "boolean", "default": false, "description": "When enabled allows check requets to be considered for dowstream performance tracing." }, "response_capture_enabled": { "type": "boolean", "default": true, "description": "When enabled, response body and headers will be captured on check failures." }, "body": { "type": "string", "nullable": true, "description": "The body to send with the check request." }, "interval_seconds": { "enum": [ 60, 300, 600, 1200, 1800, 3600 ], "type": "integer", "description": "Time in seconds between uptime checks.\n\n* `60` - 1 minute\n* `300` - 5 minutes\n* `600` - 10 minutes\n* `1200` - 20 minutes\n* `1800` - 30 minutes\n* `3600` - 1 hour" }, "assertion": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "The assertion to send with the check request." } }, "required": [ "interval_seconds", "timeout_ms", "url" ] } }, "config": { "description": "A representation of an uptime alert", "type": "object", "required": [ "mode", "environment", "recoveryThreshold", "downtimeThreshold" ], "properties": { "mode": { "type": "integer", "enum": [ 1, 2, 3 ] }, "environment": { "type": "string", "nullable": true }, "recoveryThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive successful checks required to mark monitor as recovered" }, "downtimeThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive failed checks required to mark monitor as down" } }, "additionalProperties": false }, "conditionGroup": { "allOf": [ { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "logicType" ] } ], "description": "\n Issue detection configuration for when to create an issue and at what priority level.\n\n\n - `logicType`: `any`\n - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic)\n - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. \"Create a metric issue when there are more than 5 unresolved error events\".\n - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower.\n - If creating a **dynamic** monitor, see the options below.\n - `seasonality`: `auto`\n - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high`\n - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold.\n - `0`: Above\n - `1`: Below\n - `2`: Above and below\n\n - `conditionResult`: The issue state change when the threshold is crossed.\n - `75`: High priority\n - `50`: Low priority\n - `0`: Resolved\n\n\n **Threshold Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 10,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 10,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Change Monitor** (20% higher than `comparisonDelta` seconds earlier)\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"gt\",\n \"comparison\": 120,\n \"conditionResult\": 75\n },\n {\n \"type\": \"lte\",\n \"comparison\": 120,\n \"conditionResult\": 0\n }\n ],\n \"actions\": []\n ```\n\n **Threshold Monitor with Medium Priority**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n type: \"gt\",\n comparison: 5,\n conditionResult: 75\n },\n {\n type: \"gt\",\n comparison: 2,\n conditionResult: 50\n },\n {\n type: \"lte\",\n comparison: 2,\n conditionResult: 0\n }\n ],\n \"actions\": []\n ```\n\n **Dynamic Monitor**\n ```json\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"anomaly_detection\",\n \"comparison\": {\n \"seasonality\": \"auto\",\n \"sensitivity\": \"medium\",\n \"thresholdType\": 2\n },\n \"conditionResult\": 75\n }\n ],\n \"actions\": []\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " }, "description": { "type": "string", "nullable": true, "description": "A description of the monitor. Will be used in the resulting issue." }, "enabled": { "type": "boolean", "description": "Set to False if you want to disable the monitor." } }, "title": "Uptime Domain Failure Monitor" } ] }, "DiscoverSavedQuery": { "type": "object", "properties": { "name": { "type": "string", "description": "The user-defined saved query name.", "maxLength": 255 }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "The saved projects filter for this query." }, "queryDataset": { "enum": [ "discover", "error-events", "transaction-like" ], "type": "string", "default": "error-events", "description": "The dataset you would like to query. Note: `discover` is a **deprecated** value. The allowed values are: `error-events`, `transaction-like`\n\n* `discover`\n* `error-events`\n* `transaction-like`" }, "start": { "type": "string", "format": "date-time", "nullable": true, "description": "The saved start time for this saved query." }, "end": { "type": "string", "format": "date-time", "nullable": true, "description": "The saved end time for this saved query." }, "range": { "type": "string", "nullable": true, "description": "The saved time range period for this saved query." }, "fields": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "The fields, functions, or equations that can be requested for the query. At most 20 fields can be selected per request. Each field can be one of the following types:\n- A built-in key field. See possible fields in the [properties table](/product/sentry-basics/search/searchable-properties/#properties-table), under any field that is an event property.\n - example: `field=transaction`\n- A tag. Tags should use the `tag[]` formatting to avoid ambiguity with any fields\n - example: `field=tag[isEnterprise]`\n- A function which will be in the format of `function_name(parameters,...)`. See possible functions in the [query builder documentation](/product/discover-queries/query-builder/#stacking-functions).\n - when a function is included, Discover will group by any tags or fields\n - example: `field=count_if(transaction.duration,greater,300)`\n- An equation when prefixed with `equation|`. Read more about [equations here](/product/discover-queries/query-builder/query-equations/).\n - example: `field=equation|count_if(transaction.duration,greater,300) / count() * 100`\n" }, "orderby": { "type": "string", "nullable": true, "description": "How to order the query results. Must be something in the `field` list, excluding equations." }, "rollup": { "type": "integer", "nullable": true, "description": "Time-bucket granularity in seconds for the saved query." }, "aggregations": { "type": "array", "items": { "type": "array", "items": {} }, "nullable": true, "description": "Aggregate functions to apply, each as a `[function, column, alias]` triple." }, "groupby": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Columns to group results by." }, "conditions": { "type": "array", "items": { "type": "array", "items": {} }, "nullable": true, "description": "Filter conditions, each as a `[column, operator, value]` triple." }, "limit": { "type": "integer", "maximum": 1000, "minimum": 0, "nullable": true, "description": "Maximum number of rows to return, from `0` to `1000`." }, "version": { "type": "integer", "maximum": 2, "minimum": 1, "nullable": true, "description": "Saved query schema version. `1` for the legacy shape, `2` for the current one." }, "environment": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "The name of environments to filter by." }, "query": { "type": "string", "nullable": true, "description": "Filters results by using [query syntax](/product/sentry-basics/search/)." }, "widths": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Rendered column widths, in the same order as the query's fields." }, "yAxis": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Aggregate functions to be plotted on the chart." }, "display": { "type": "string", "nullable": true, "description": "Visualization type for saved query chart. Allowed values are:\n- default\n- previous\n- top5\n- daily\n- dailytop5\n- bar\n" }, "topEvents": { "type": "integer", "maximum": 10, "minimum": 1, "nullable": true, "description": "Number of top events' timeseries to be visualized." }, "interval": { "type": "string", "nullable": true, "description": "Resolution of the time series." } }, "required": [ "name" ] }, "DiscoverSavedQueryListResponse": { "type": "array", "items": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments the query filters by" }, "query": { "type": "string", "description": "Search query that filters the results" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "Fields, functions or equations the query requests" }, "widths": { "type": "array", "items": { "type": "string" }, "description": "Rendered column widths, in the same order as the query's fields" }, "conditions": { "type": "array", "items": { "type": "string" }, "description": "Filter conditions, each as a [column, operator, value] triple" }, "aggregations": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions to apply, each as a [function, column, alias] triple" }, "range": { "type": "string", "description": "Saved relative time range, such as 14d" }, "start": { "type": "string", "description": "Saved start time (ISO 8601)" }, "end": { "type": "string", "description": "Saved end time (ISO 8601)" }, "orderby": { "type": "string", "description": "How the query results are ordered" }, "limit": { "type": "string", "description": "Maximum number of rows to return" }, "yAxis": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions plotted on the chart" }, "display": { "type": "string", "description": "Chart type for the saved query, such as default, top5, daily or bar" }, "topEvents": { "type": "integer", "description": "Number of top events' time series to show" }, "interval": { "type": "string", "description": "Resolution of the time series" }, "exploreQuery": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments the query filters by" }, "query": { "type": "array", "items": { "type": "object", "properties": { "fields": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Fields shown in the samples table" }, "orderby": { "type": "string", "nullable": true, "description": "Field the samples are sorted by" }, "groupby": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Fields the aggregates are grouped by" }, "query": { "type": "string", "nullable": true, "description": "Search query that filters the results" }, "visualize": { "type": "array", "items": { "type": "object", "properties": { "chartType": { "type": "integer", "description": "Chart type used to plot the aggregates" }, "transformations": { "type": "array", "items": { "type": "string" }, "description": "Transformations applied to the plotted series" }, "yAxes": { "type": "array", "items": { "type": "string" }, "description": "Aggregates to plot" } }, "required": [ "yAxes" ] }, "nullable": true, "description": "Charts shown for the query" }, "aggregateField": { "type": "array", "items": { "type": "object", "properties": { "chartType": { "type": "integer", "description": "Chart type used to plot the aggregates" }, "yAxes": { "type": "array", "items": { "type": "string" }, "description": "Aggregates to plot" }, "groupBy": { "type": "string", "description": "Field to group the aggregates by" }, "transformations": { "type": "array", "items": { "type": "string" }, "description": "Transformations applied to the plotted series" } } }, "nullable": true, "description": "Aggregates and group-by fields shown in aggregate mode" }, "aggregateOrderby": { "type": "string", "nullable": true, "description": "Field the aggregate results are sorted by" }, "metric": { "type": "object", "properties": { "unit": { "type": "string", "nullable": true, "description": "Unit of the metric. Null when it has none" }, "name": { "type": "string", "description": "Name of the metric" }, "type": { "enum": [ "counter", "gauge", "distribution" ], "type": "string", "description": "Type of the metric" } }, "required": [ "name", "type" ], "nullable": true, "description": "Metric the query reads, for metric queries" }, "caseInsensitive": { "type": "boolean", "description": "Whether the search query ignores letter case" }, "mode": { "enum": [ "samples", "aggregate" ], "type": "string", "description": "Whether the query shows samples or aggregates" } }, "required": [ "mode" ] }, "description": "Queries shown in Explore" }, "statsPeriod": { "type": "string", "description": "Relative time range of the query, such as 14d" }, "start": { "type": "string", "description": "Start of the absolute time range (ISO 8601)" }, "end": { "type": "string", "description": "End of the absolute time range (ISO 8601)" }, "interval": { "type": "string", "description": "Resolution of the time series" }, "id": { "type": "string", "description": "ID of the Explore query" }, "name": { "type": "string", "description": "Name of the Explore query" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the query covers" }, "dataset": { "enum": [ "spans", "logs", "segment_spans", "metrics", "replays", "ai_conversations" ], "type": "string", "description": "Dataset the query reads" }, "expired": { "type": "boolean", "description": "Whether the query's time range is outside the retention period" }, "isPrebuilt": { "type": "boolean", "description": "Whether Sentry provides the query" }, "changedReason": { "type": "object", "properties": { "orderby": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Sort orders dropped when the query was migrated. Null when none were" }, "equations": { "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, "nullable": true, "description": "Equations dropped when the query was migrated. Null when none were" }, "columns": { "type": "array", "items": { "type": "string" }, "description": "Columns dropped when the query was migrated" } }, "required": [ "columns", "equations", "orderby" ], "nullable": true, "description": "Parts of the Discover query dropped by the migration. Null when none were" } }, "required": [ "changedReason", "dataset", "expired", "id", "isPrebuilt", "name", "projects" ], "nullable": true, "description": "Explore query this saved query was migrated to. Null when there's none" }, "lastVisited": { "type": "string", "format": "date-time", "nullable": true, "description": "When the requesting user last viewed the query (ISO 8601)" }, "starred": { "type": "boolean", "description": "Whether the requesting user starred the query" }, "position": { "type": "integer", "nullable": true, "description": "Position of the query in the requesting user's starred list. Null when it isn't starred" }, "id": { "type": "string", "description": "ID of the saved query" }, "name": { "type": "string", "description": "Name of the saved query" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the query filters by. [-1] means all projects" }, "version": { "type": "integer", "description": "Schema version of the saved query: 1 for the legacy shape, 2 for the current one" }, "queryDataset": { "type": "string", "description": "Dataset the query runs on, such as error-events or transaction-like" }, "datasetSource": { "type": "string", "description": "How the dataset was chosen: unknown, inferred, user or forced" }, "expired": { "type": "boolean", "description": "Whether the saved time range is outside data retention" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the saved query was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the saved query was last updated (ISO 8601)" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the saved query" } }, "required": [ "createdBy", "datasetSource", "dateCreated", "dateUpdated", "expired", "id", "name", "projects", "queryDataset", "version" ] } }, "DiscoverSavedQueryModel": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments the query filters by" }, "query": { "type": "string", "description": "Search query that filters the results" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "Fields, functions or equations the query requests" }, "widths": { "type": "array", "items": { "type": "string" }, "description": "Rendered column widths, in the same order as the query's fields" }, "conditions": { "type": "array", "items": { "type": "string" }, "description": "Filter conditions, each as a [column, operator, value] triple" }, "aggregations": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions to apply, each as a [function, column, alias] triple" }, "range": { "type": "string", "description": "Saved relative time range, such as 14d" }, "start": { "type": "string", "description": "Saved start time (ISO 8601)" }, "end": { "type": "string", "description": "Saved end time (ISO 8601)" }, "orderby": { "type": "string", "description": "How the query results are ordered" }, "limit": { "type": "string", "description": "Maximum number of rows to return" }, "yAxis": { "type": "array", "items": { "type": "string" }, "description": "Aggregate functions plotted on the chart" }, "display": { "type": "string", "description": "Chart type for the saved query, such as default, top5, daily or bar" }, "topEvents": { "type": "integer", "description": "Number of top events' time series to show" }, "interval": { "type": "string", "description": "Resolution of the time series" }, "exploreQuery": { "type": "object", "properties": { "environment": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments the query filters by" }, "query": { "type": "array", "items": { "type": "object", "properties": { "fields": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Fields shown in the samples table" }, "orderby": { "type": "string", "nullable": true, "description": "Field the samples are sorted by" }, "groupby": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Fields the aggregates are grouped by" }, "query": { "type": "string", "nullable": true, "description": "Search query that filters the results" }, "visualize": { "type": "array", "items": { "type": "object", "properties": { "chartType": { "type": "integer", "description": "Chart type used to plot the aggregates" }, "transformations": { "type": "array", "items": { "type": "string" }, "description": "Transformations applied to the plotted series" }, "yAxes": { "type": "array", "items": { "type": "string" }, "description": "Aggregates to plot" } }, "required": [ "yAxes" ] }, "nullable": true, "description": "Charts shown for the query" }, "aggregateField": { "type": "array", "items": { "type": "object", "properties": { "chartType": { "type": "integer", "description": "Chart type used to plot the aggregates" }, "yAxes": { "type": "array", "items": { "type": "string" }, "description": "Aggregates to plot" }, "groupBy": { "type": "string", "description": "Field to group the aggregates by" }, "transformations": { "type": "array", "items": { "type": "string" }, "description": "Transformations applied to the plotted series" } } }, "nullable": true, "description": "Aggregates and group-by fields shown in aggregate mode" }, "aggregateOrderby": { "type": "string", "nullable": true, "description": "Field the aggregate results are sorted by" }, "metric": { "type": "object", "properties": { "unit": { "type": "string", "nullable": true, "description": "Unit of the metric. Null when it has none" }, "name": { "type": "string", "description": "Name of the metric" }, "type": { "enum": [ "counter", "gauge", "distribution" ], "type": "string", "description": "Type of the metric" } }, "required": [ "name", "type" ], "nullable": true, "description": "Metric the query reads, for metric queries" }, "caseInsensitive": { "type": "boolean", "description": "Whether the search query ignores letter case" }, "mode": { "enum": [ "samples", "aggregate" ], "type": "string", "description": "Whether the query shows samples or aggregates" } }, "required": [ "mode" ] }, "description": "Queries shown in Explore" }, "statsPeriod": { "type": "string", "description": "Relative time range of the query, such as 14d" }, "start": { "type": "string", "description": "Start of the absolute time range (ISO 8601)" }, "end": { "type": "string", "description": "End of the absolute time range (ISO 8601)" }, "interval": { "type": "string", "description": "Resolution of the time series" }, "id": { "type": "string", "description": "ID of the Explore query" }, "name": { "type": "string", "description": "Name of the Explore query" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the query covers" }, "dataset": { "enum": [ "spans", "logs", "segment_spans", "metrics", "replays", "ai_conversations" ], "type": "string", "description": "Dataset the query reads" }, "expired": { "type": "boolean", "description": "Whether the query's time range is outside the retention period" }, "isPrebuilt": { "type": "boolean", "description": "Whether Sentry provides the query" }, "changedReason": { "type": "object", "properties": { "orderby": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Sort orders dropped when the query was migrated. Null when none were" }, "equations": { "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, "nullable": true, "description": "Equations dropped when the query was migrated. Null when none were" }, "columns": { "type": "array", "items": { "type": "string" }, "description": "Columns dropped when the query was migrated" } }, "required": [ "columns", "equations", "orderby" ], "nullable": true, "description": "Parts of the Discover query dropped by the migration. Null when none were" } }, "required": [ "changedReason", "dataset", "expired", "id", "isPrebuilt", "name", "projects" ], "nullable": true, "description": "Explore query this saved query was migrated to. Null when there's none" }, "lastVisited": { "type": "string", "format": "date-time", "nullable": true, "description": "When the requesting user last viewed the query (ISO 8601)" }, "starred": { "type": "boolean", "description": "Whether the requesting user starred the query" }, "position": { "type": "integer", "nullable": true, "description": "Position of the query in the requesting user's starred list. Null when it isn't starred" }, "id": { "type": "string", "description": "ID of the saved query" }, "name": { "type": "string", "description": "Name of the saved query" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the query filters by. [-1] means all projects" }, "version": { "type": "integer", "description": "Schema version of the saved query: 1 for the legacy shape, 2 for the current one" }, "queryDataset": { "type": "string", "description": "Dataset the query runs on, such as error-events or transaction-like" }, "datasetSource": { "type": "string", "description": "How the dataset was chosen: unknown, inferred, user or forced" }, "expired": { "type": "boolean", "description": "Whether the saved time range is outside data retention" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the saved query was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the saved query was last updated (ISO 8601)" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the saved query" } }, "required": [ "createdBy", "datasetSource", "dateCreated", "dateUpdated", "expired", "id", "name", "projects", "queryDataset", "version" ] }, "DsnLookupResponse": { "type": "object", "properties": { "organizationSlug": { "type": "string", "description": "Slug of the organization" }, "projectSlug": { "type": "string", "description": "Slug of the project the DSN belongs to" }, "projectId": { "type": "string", "description": "ID of the project the DSN belongs to" }, "projectName": { "type": "string", "description": "Name of the project the DSN belongs to" }, "projectPlatform": { "type": "string", "nullable": true, "description": "Platform of the project, if set" }, "keyLabel": { "type": "string", "nullable": true, "description": "Label of the client key" }, "keyId": { "type": "string", "description": "ID of the client key" } }, "required": [ "keyId", "keyLabel", "organizationSlug", "projectId", "projectName", "projectPlatform", "projectSlug" ] }, "DynamicSamplingBias": { "type": "object", "properties": { "id": { "enum": [ "boostEnvironments", "boostKeyTransactions", "boostLatestRelease", "boostLowVolumeTransactions", "boostReplayId", "ignoreHealthChecks", "minimumSampleRate", "recalibrationRule" ], "type": "string", "description": "* `boostEnvironments`\n* `boostKeyTransactions`\n* `boostLatestRelease`\n* `boostLowVolumeTransactions`\n* `boostReplayId`\n* `ignoreHealthChecks`\n* `minimumSampleRate`\n* `recalibrationRule`" }, "active": { "type": "boolean", "default": false } }, "required": [ "id" ] }, "DynamicSdkLoaderOption": { "type": "object", "description": "Configures multiple options for the Javascript Loader Script.\n- `Performance Monitoring`\n- `Debug Bundles & Logging`\n- `Session Replay` - Note that the loader will load the ES6 bundle instead of the ES5 bundle.\n- `User Feedback` - Note that the loader will load the ES6 bundle instead of the ES5 bundle.\n- `Logs and Metrics` - Note that the loader will load the ES6 bundle instead of the ES5 bundle. Requires SDK >= 10.0.0.\n```json\n{\n \"dynamicSdkLoaderOptions\": {\n \"hasReplay\": true,\n \"hasPerformance\": true,\n \"hasDebug\": true,\n \"hasFeedback\": true,\n \"hasLogsAndMetrics\": true\n }\n}\n```", "properties": { "hasReplay": { "type": "boolean" }, "hasPerformance": { "type": "boolean" }, "hasDebug": { "type": "boolean" }, "hasFeedback": { "type": "boolean" }, "hasLogsAndMetrics": { "type": "boolean" } } }, "Environment": { "type": "object", "properties": { "isHidden": { "type": "boolean", "description": "Specify `true` to make the environment visible or `false` to make the environment hidden." } }, "required": [ "isHidden" ] }, "EnvironmentProject": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the environment" }, "name": { "type": "string", "description": "Name of the environment" }, "isHidden": { "type": "boolean", "description": "Whether the environment is hidden in the project" } }, "required": [ "id", "isHidden", "name" ] }, "EventAttachmentDetailsResponse": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the attachment" }, "event_id": { "type": "string", "description": "ID of the event the attachment belongs to" }, "type": { "type": "string", "description": "Type of the attachment, such as event.attachment or event.minidump" }, "name": { "type": "string", "description": "File name of the attachment" }, "mimetype": { "type": "string", "nullable": true, "description": "MIME type of the attachment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the attachment was stored (ISO 8601)" }, "size": { "type": "integer", "description": "Size of the attachment in bytes" }, "headers": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Legacy field. Only contains Content-Type, which matches mimetype" }, "sha1": { "type": "string", "nullable": true, "description": "Legacy field, always null" } }, "required": [ "dateCreated", "event_id", "headers", "id", "mimetype", "name", "sha1", "size", "type" ] }, "EventIdLookupResponse": { "type": "object", "properties": { "organizationSlug": { "type": "string", "description": "Slug of the organization" }, "projectSlug": { "type": "string", "description": "Slug of the event's project" }, "groupId": { "type": "string", "description": "ID of the event's issue" }, "eventId": { "type": "string", "description": "ID of the event" }, "event": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "nullable": true, "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateReceived": { "type": "string", "format": "date-time", "nullable": true, "description": "When Sentry received the event (ISO 8601)" }, "size": { "type": "integer", "nullable": true, "description": "Size of the event payload in bytes" }, "entries": { "type": "array", "items": {}, "description": "Event interfaces, such as exception, breadcrumbs and request, each with a type and data" }, "dist": { "type": "string", "nullable": true, "description": "Distribution of the release the event was sent with" }, "packages": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Modules loaded when the event occurred, keyed by module name with their versions" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type, such as error, default or transaction" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "occurrence": { "anyOf": [ { "type": "object", "description": "A metric issue occurrence. `evidenceData` describes the detector and query that fired.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "enum": [ 8001 ], "type": "integer", "description": "Group type ID of metric issues, always 8001" }, "evidenceData": { "type": "object", "properties": { "detectorId": { "type": "integer", "description": "ID of the detector that created the occurrence" }, "alertId": { "type": "integer", "nullable": true, "description": "ID of the metric alert rule the detector replaces. Null when there's none" }, "value": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Metric value the anomaly detection model scored" }, "sourceId": { "type": "string", "description": "ID of the data source that produced the value" }, "subscriptionId": { "type": "string", "description": "ID of the query subscription that produced the value" }, "timestamp": { "type": "string", "description": "When the value was measured" } }, "required": [ "sourceId", "subscriptionId", "timestamp", "value" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Metric value that triggered the detector, or the anomaly detection result for dynamic detectors" }, "dataPacketSourceId": { "type": "string", "description": "ID of the query subscription that sent the data" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the detector condition" }, "type": { "type": "string", "description": "Type of the condition, such as gt, lt or anomaly_detection" }, "comparison": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "sensitivity": { "enum": [ "low", "medium", "high" ], "type": "string", "description": "How sensitive the anomaly detection is" }, "seasonality": { "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "type": "string", "description": "Seasonality the anomaly detection model uses" }, "thresholdType": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "Direction of anomalies to detect: 0 above, 1 below, 2 above and below" } }, "required": [ "seasonality", "sensitivity", "thresholdType" ] } ], "description": "Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition" }, "conditionResult": { "type": "integer", "description": "Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions of the detector" }, "config": { "type": "object", "properties": { "detectionType": { "enum": [ "static", "percent", "dynamic" ], "type": "string", "description": "How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection" }, "comparisonDelta": { "type": "integer", "nullable": true, "description": "Time window in seconds that a percent change detector compares with" } }, "required": [ "detectionType" ], "description": "Configuration of the detector" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "type": "string", "description": "Type of the data source, such as snuba_query_subscription" }, "sourceId": { "type": "string", "description": "ID of the source object, such as the query subscription" }, "queryObj": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ], "description": "Query subscription the data source reads" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "description": "Data sources of the detector" } }, "required": [ "alertId", "conditions", "config", "dataPacketSourceId", "dataSources", "detectorId", "value" ], "description": "Detector and query that created the occurrence" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "description": "An issue occurrence of any type. `evidenceData` keys are camelCase.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "type": "integer", "description": "Group type ID of the occurrence" }, "evidenceData": { "type": "object", "additionalProperties": {}, "description": "Data of the occurrence. Its keys depend on the group type" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise" }, "_meta": { "type": "object", "additionalProperties": {}, "description": "Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" }, "name": { "type": "string", "nullable": true, "description": "Name of the user" }, "geo": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Location of the user, with keys such as country_code, city and region" }, "data": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Extra data the SDK sent about the user" } }, "nullable": true, "description": "User context of the event" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query that matches this tag's user, such as user.email:\"user@example.com\". Only set for user tags" }, "key": { "type": "string", "description": "Tag key" }, "value": { "type": "string", "description": "Tag value" } }, "required": [ "key", "value" ] }, "description": "Tags attached to the event" }, "contexts": { "type": "object", "nullable": true, "additionalProperties": { "anyOf": [ { "description": "Application information.\n\n App context describes the application. As opposed to the runtime, this is the actual\n application that was running and carries metadata about the current session.", "type": "object", "additionalProperties": true, "properties": { "app_build": { "description": "Internal build ID as it appears on the platform.", "type": "string", "nullable": true }, "app_identifier": { "description": "Version-independent application identifier, often a dotted bundle ID.", "type": "string", "nullable": true }, "app_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Amount of memory used by the application in bytes." }, "app_name": { "description": "Application name as it appears on the platform.", "type": "string", "nullable": true }, "app_start_time": { "description": "Start time of the app.\n\n Formatted UTC timestamp when the user started the application.", "type": "string", "nullable": true }, "app_version": { "description": "Application version as it appears on the platform.", "type": "string", "nullable": true }, "build_type": { "description": "String identifying the kind of build. For example, `testflight`.", "type": "string", "nullable": true }, "device_app_hash": { "description": "Application-specific device identifier.", "type": "string", "nullable": true }, "in_foreground": { "description": "A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user.", "type": "boolean", "nullable": true }, "view_names": { "description": "The names of the currently visible views.", "type": "array", "items": { "type": "string", "nullable": true }, "nullable": true }, "type": { "type": "string", "enum": [ "app" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Web browser information.", "type": "object", "additionalProperties": true, "properties": { "name": { "description": "Display name of the browser application.", "type": "string", "nullable": true }, "version": { "description": "Version string of the browser.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "browser" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "default" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true }, { "description": "Device information.\n\n Device context describes the device that caused the event. This is most appropriate for mobile\n applications.", "type": "object", "additionalProperties": true, "properties": { "arch": { "description": "Native cpu architecture of the device.", "type": "string", "nullable": true }, "battery_level": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Current battery level in %.\n\n If the device has a battery, this can be a floating point value defining the battery level\n (in the range 0-100)." }, "battery_status": { "description": "Status of the device's battery.\n\n For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`.", "type": "string", "nullable": true }, "boot_time": { "description": "Indicator when the device was booted.", "type": "string", "nullable": true }, "brand": { "description": "Brand of the device.", "type": "string", "nullable": true }, "charging": { "description": "Whether the device was charging or not.", "type": "boolean", "nullable": true }, "cpu_description": { "description": "CPU description.\n\n For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz.", "type": "string", "nullable": true }, "device_type": { "description": "Kind of device the application is running on.\n\n For example, `Unknown`, `Handheld`, `Console`, `Desktop`.", "type": "string", "nullable": true }, "device_unique_identifier": { "description": "Unique device identifier.", "type": "string", "nullable": true }, "external_free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Free size of the attached external storage in bytes (eg: android SDK card)." }, "external_storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total size of the attached external storage in bytes (eg: android SDK card)." }, "family": { "description": "Family of the device model.\n\n This is usually the common part of model names across generations. For instance, `iPhone`\n would be a reasonable family, so would be `Samsung Galaxy`.", "type": "string", "nullable": true }, "free_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is still available in bytes." }, "free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much storage is free in bytes." }, "locale": { "description": "ISO 639-1 code of the locale the device is set to.", "type": "string", "nullable": true }, "low_memory": { "description": "Whether the device was low on memory.", "type": "boolean", "nullable": true }, "manufacturer": { "description": "Manufacturer of the device.", "type": "string", "nullable": true }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total memory available in bytes." }, "model": { "description": "Device model.\n\n This, for example, can be `Samsung Galaxy S3`.", "type": "string", "nullable": true }, "model_id": { "description": "Device model (internal identifier).\n\n An internal hardware revision to identify the device exactly.", "type": "string", "nullable": true }, "name": { "description": "Name of the device.", "type": "string", "nullable": true }, "online": { "description": "Whether the device was online or not.", "type": "boolean", "nullable": true }, "orientation": { "description": "Current screen orientation.\n\n This can be a string `portrait` or `landscape` to define the orientation of a device.", "type": "string", "nullable": true }, "processor_count": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Number of \"logical processors\".\n\n For example, 8." }, "processor_frequency": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Processor frequency in MHz.\n\n Note that the actual CPU frequency might vary depending on current load and\n power conditions, especially on low-powered devices like phones and laptops." }, "screen_density": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Device screen density." }, "screen_dpi": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Screen density as dots-per-inch." }, "screen_height_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Height of the screen in pixels." }, "screen_resolution": { "description": "Device screen resolution.\n\n (e.g.: 800x600, 3040x1444)", "type": "string", "nullable": true }, "screen_width_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Width of the screen in pixels." }, "simulator": { "description": "Simulator/prod indicator.", "type": "boolean", "nullable": true }, "storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total storage size of the device in bytes." }, "supports_accelerometer": { "description": "Whether the accelerometer is available on the device.", "type": "boolean", "nullable": true }, "supports_audio": { "description": "Whether audio is available on the device.", "type": "boolean", "nullable": true }, "supports_gyroscope": { "description": "Whether the gyroscope is available on the device.", "type": "boolean", "nullable": true }, "supports_location_service": { "description": "Whether location support is available on the device.", "type": "boolean", "nullable": true }, "supports_vibration": { "description": "Whether vibration is available on the device.", "type": "boolean", "nullable": true }, "timezone": { "description": "Timezone of the device.", "type": "string", "nullable": true }, "usable_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is usable for the app in bytes." }, "uuid": { "description": "UUID of the device.", "type": "string", "format": "uuid", "nullable": true }, "type": { "type": "string", "enum": [ "device" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "GPU information.\n\n Example:\n\n ```json\n \"gpu\": {\n \"name\": \"AMD Radeon Pro 560\",\n \"vendor_name\": \"Apple\",\n \"memory_size\": 4096,\n \"api_type\": \"Metal\",\n \"multi_threaded_rendering\": true,\n \"version\": \"Metal\",\n \"npot_support\": \"Full\"\n }\n ```", "type": "object", "additionalProperties": true, "properties": { "api_type": { "description": "The device low-level API type.\n\n Examples: `\"Apple Metal\"` or `\"Direct3D11\"`", "type": "string", "nullable": true }, "graphics_shader_level": { "description": "Approximate \"shader capability\" level of the graphics device.\n\n For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown)", "type": "string", "nullable": true }, "id": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "The PCI identifier of the graphics device." }, "max_texture_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Largest size of a texture that is supported by the graphics hardware.\n\n For Example: 16384" }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The total GPU memory available in Megabytes." }, "multi_threaded_rendering": { "description": "Whether the GPU has multi-threaded rendering or not.", "type": "boolean", "nullable": true }, "name": { "description": "The name of the graphics device.", "type": "string", "nullable": true }, "npot_support": { "description": "The Non-Power-Of-Two support.", "type": "string", "nullable": true }, "supports_compute_shaders": { "description": "Whether compute shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_draw_call_instancing": { "description": "Whether GPU draw call instancing is supported.", "type": "boolean", "nullable": true }, "supports_geometry_shaders": { "description": "Whether geometry shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_ray_tracing": { "description": "Whether ray tracing is available on the device.", "type": "boolean", "nullable": true }, "vendor_id": { "description": "The PCI vendor identifier of the graphics device.", "type": "string", "nullable": true }, "vendor_name": { "description": "The vendor name as reported by the graphics device.", "type": "string", "nullable": true }, "version": { "description": "The Version of the graphics device.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "gpu" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Monitor information.", "type": "object", "additionalProperties": true, "properties": { "type": { "type": "string", "enum": [ "monitor" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Operating system information.\n\n OS context describes the operating system on which the event was created. In web contexts, this\n is the operating system of the browser (generally pulled from the User-Agent string).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Internal build number of the operating system.", "type": "string", "nullable": true }, "kernel_version": { "description": "Current kernel version.\n\n This is typically the entire output of the `uname` syscall.", "type": "string", "nullable": true }, "name": { "description": "Name of the operating system.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed operating system info.\n\n An unprocessed description string obtained by the operating system. For some well-known\n runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are\n not explicitly given.", "type": "string", "nullable": true }, "rooted": { "description": "Indicator if the OS is rooted (mobile mostly).", "type": "boolean", "nullable": true }, "version": { "description": "Version of the operating system.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "os" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "OpenTelemetry Context\n\n If an event has this context, it was generated from an OpenTelemetry signal (trace, metric, log).", "type": "object", "additionalProperties": true, "properties": { "attributes": { "description": "Attributes of the OpenTelemetry span that maps to a Sentry event.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "resource": { "description": "Information about an OpenTelemetry resource.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "type": { "type": "string", "enum": [ "otel" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Runtime information.\n\n Runtime context describes a runtime in more detail. Typically, this context is present in\n `contexts` multiple times if multiple runtimes are involved (for instance, if you have a\n JavaScript application running on top of JVM).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Application build string, if it is separate from the version.", "type": "string", "nullable": true }, "name": { "description": "Runtime name.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed runtime info.\n\n An unprocessed description string obtained by the runtime. For some well-known runtimes,\n Sentry will attempt to parse `name` and `version` from this string, if they are not\n explicitly given.", "type": "string", "nullable": true }, "version": { "description": "Runtime version string.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "runtime" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Trace context", "type": "object", "additionalProperties": true, "properties": { "client_sample_rate": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The client-side sample rate as reported in the envelope's `trace.sample_rate` header.\n\n The server takes this field from envelope headers and writes it back into the event. Clients\n should not ever send this value." }, "exclusive_time": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The amount of time in milliseconds spent in this transaction span,\n excluding its immediate child spans." }, "op": { "description": "Span type (see `OperationType` docs).", "type": "string", "nullable": true }, "origin": { "description": "The origin of the trace indicates what created the trace (see [OriginType] docs).", "type": "string", "nullable": true }, "parent_span_id": { "description": "The ID of the span enclosing this span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "sampled": { "description": "Track whether the trace connected to this event has been sampled entirely.\n\n This flag only applies to events with [`Error`] type that have an associated dynamic sampling context.", "type": "boolean", "nullable": true }, "span_id": { "description": "The ID of the span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "status": { "description": "Whether the trace failed or succeeded. Currently only used to indicate status of individual\n transactions.", "nullable": true, "type": "string", "enum": [ "ok", "cancelled", "unknown", "invalid_argument", "deadline_exceeded", "not_found", "already_exists", "permission_denied", "resource_exhausted", "failed_precondition", "aborted", "out_of_range", "unimplemented", "internal_error", "unavailable", "data_loss", "unauthenticated", null ] }, "trace_id": { "description": "The trace ID.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "type": { "type": "string", "enum": [ "trace" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "unity" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true } ] }, "description": "Contexts of the event, such as device, os, browser and runtime, keyed by alias" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the SDK that sent the event, such as sentry.python" }, "version": { "type": "string", "nullable": true, "description": "Version of the SDK" } }, "required": [ "name", "version" ], "nullable": true, "description": "SDK that sent the event" }, "context": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Additional data sent with the event in its extra field" }, "errors": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Type of the processing error, such as invalid_data or js_no_source" }, "message": { "type": "string", "description": "Human-readable message of the error" }, "data": { "type": "object", "description": "Details of the error, such as the name of the invalid field. Other keys depend on the error type", "properties": { "name": { "type": "string", "nullable": true, "description": "Affected key or path in the event" }, "message": { "type": "string", "description": "Details of the error from the processor that hit it" }, "url": { "type": "string", "description": "URL that couldn't be fetched, such as a source file" }, "image_path": { "type": "string", "description": "Path of the debug image the error is about" }, "image_name": { "type": "string", "description": "Name of the debug image the error is about" }, "image_uuid": { "type": "string", "description": "Debug ID of the image the error is about" }, "image_arch": { "type": "string", "description": "CPU architecture of the image the error is about" }, "symbolicator_type": { "type": "string", "description": "Error type Symbolicator reported, such as missing_source" }, "source": { "type": "string", "description": "Source file or URL the error is about" }, "sourcemap": { "type": "string", "description": "Source map the error is about" }, "row": { "type": "integer", "description": "Line of the location that couldn't be mapped" }, "column": { "type": "integer", "description": "Column of the location that couldn't be mapped" }, "sdk_time": { "type": "string", "description": "Time the SDK reported, for clock drift errors" }, "server_time": { "type": "string", "description": "Time the server received the event, for clock drift errors" } } } }, "required": [ "data", "message", "type" ] }, "description": "Errors Sentry found while processing the event" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "fingerprints": { "type": "array", "items": { "type": "string" }, "description": "Grouping hashes calculated for the event" }, "groupingConfig": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the grouping config, such as newstyle:2026-01-20" }, "enhancements": { "type": "string", "description": "Stack trace rules of the project, as an encoded string" } }, "required": [ "enhancements", "id" ], "description": "Grouping configuration used to group the event" }, "startTimestamp": { "type": "number", "format": "double", "description": "When the transaction started, as a Unix timestamp in seconds" }, "endTimestamp": { "type": "number", "format": "double", "description": "When the transaction ended, as a Unix timestamp in seconds" }, "measurements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] }, "nullable": true, "description": "Measurements recorded for the transaction, such as web vitals, keyed by name" }, "breakdowns": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] } }, "nullable": true, "description": "Span operation breakdowns for the transaction, keyed by breakdown name" } }, "required": [ "_meta", "context", "contexts", "dateReceived", "dist", "entries", "errors", "eventID", "groupID", "id", "location", "message", "metadata", "occurrence", "packages", "platform", "projectID", "sdk", "size", "tags", "title", "type", "user" ], "description": "The event" } }, "required": [ "event", "eventId", "groupId", "organizationSlug", "projectSlug" ] }, "ExplorerAutofixRequest": { "type": "object", "description": "Serializer for the agent-based autofix requests.", "properties": { "step": { "enum": [ "root_cause", "solution", "code_changes", "pr_iteration", "open_pr", "coding_agent_handoff" ], "type": "string", "default": "root_cause", "description": "Which autofix step to run.\n\n* `root_cause`\n* `solution`\n* `code_changes`\n* `pr_iteration`\n* `open_pr`\n* `coding_agent_handoff`" }, "stopping_point": { "enum": [ "root_cause", "solution", "code_changes", "open_pr" ], "type": "string", "description": "Where the issue fix process should stop. If not provided, will run to root cause.\n\n* `root_cause`\n* `solution`\n* `code_changes`\n* `open_pr`" }, "run_id": { "type": "integer", "description": "**Deprecated** in favor of sentry_run_id; retained for backward compatibility. The existing run's numeric Seer id to continue. If neither run_id nor sentry_run_id is provided, starts a new run." }, "sentry_run_id": { "type": "string", "format": "uuid", "description": "Existing run's UUID to continue. Preferred over run_id, and takes precedence when both are given." }, "integration_id": { "type": "integer", "description": "Coding agent integration ID. Required for coding_agent_handoff step (unless provider is specified)." }, "provider": { "type": "string", "description": "Coding agent provider (e.g., 'github_copilot'). Alternative to integration_id for user-authenticated providers." }, "user_context": { "type": "string", "description": "Optional user context to append to the step prompt.", "maxLength": 10000 }, "repo_name": { "type": "string", "description": "Optional repository name for which to create the pull request. Do not pass a repository name to create pull requests in all relevant repositories." }, "insert_index": { "type": "integer", "description": "Block index to insert at. When provided, truncates blocks after this point for retry-from-step." }, "referrer": { "type": "string", "description": "Referrer identifying where the issue fix was triggered from." } } }, "ExternalActor": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "ExternalIssueLinkResponse": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the link between the issue and the external issue" }, "key": { "type": "string", "description": "Key of the external issue in the provider, such as PROJ-123" }, "url": { "type": "string", "description": "URL of the external issue" }, "integrationId": { "type": "integer", "description": "ID of the integration" }, "displayName": { "type": "string", "description": "Name to show for the external issue, such as owner/repo#1. Empty when the integration doesn't set one" } }, "required": [ "displayName", "id", "integrationId", "key", "url" ] }, "ExternalTeam": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "team_id": { "type": "integer", "description": "ID of the Sentry team to link to the external team." }, "external_name": { "type": "string", "description": "The associated name for the provider." }, "provider": { "enum": [ "github", "github_enterprise", "jira_server", "slack", "slack_staging", "perforce", "gitlab", "cursor_origin", "msteams", "custom_scm" ], "type": "string", "description": "The provider of the external actor.\n\n* `github`\n* `github_enterprise`\n* `jira_server`\n* `slack`\n* `slack_staging`\n* `perforce`\n* `gitlab`\n* `cursor_origin`\n* `msteams`\n* `custom_scm`" }, "integration_id": { "type": "integer", "description": "The Integration ID." }, "external_id": { "type": "string", "nullable": true, "description": "The associated user ID for provider." } }, "required": [ "external_name", "integration_id", "provider", "team_id" ] }, "ExternalUser": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "user_id": { "type": "integer", "description": "The user ID in Sentry." }, "external_name": { "type": "string", "description": "The associated name for the provider." }, "provider": { "enum": [ "github", "github_enterprise", "jira_server", "slack", "slack_staging", "perforce", "gitlab", "cursor_origin", "msteams", "custom_scm" ], "type": "string", "description": "The provider of the external actor.\n\n* `github`\n* `github_enterprise`\n* `jira_server`\n* `slack`\n* `slack_staging`\n* `perforce`\n* `gitlab`\n* `cursor_origin`\n* `msteams`\n* `custom_scm`" }, "integration_id": { "type": "integer", "description": "The Integration ID." }, "id": { "type": "integer", "readOnly": true, "description": "The external actor ID." }, "external_id": { "type": "string", "nullable": true, "description": "The associated user ID for provider." } }, "required": [ "external_name", "id", "integration_id", "provider", "user_id" ] }, "Filters": { "type": "object", "description": "Filter settings for the source. This is optional for all sources.\n\n**`filetypes`** ***(list)*** - A list of file types that can be found on this source. If this is left empty, all file types will be enabled. The options are:\n- `pe` - Windows executable files\n- `pdb` - Windows debug files\n- `portablepdb` - .NET portable debug files\n- `mach_code` - MacOS executable files\n- `mach_debug` - MacOS debug files\n- `elf_code` - ELF executable files\n- `elf_debug` - ELF debug files\n- `wasm_code` - WASM executable files\n- `wasm_debug` - WASM debug files\n- `breakpad` - Breakpad symbol files\n- `sourcebundle` - Source code bundles\n- `uuidmap` - Apple UUID mapping files\n- `bcsymbolmap` - Apple bitcode symbol maps\n- `il2cpp` - Unity IL2CPP mapping files\n- `proguard` - ProGuard mapping files\n\n**`path_patterns`** ***(list)*** - A list of glob patterns to check against the debug and code file paths of debug files. Only files that match one of these patterns will be requested from the source. If this is left empty, no path-based filtering takes place.\n\n**`requires_checksum`** ***(boolean)*** - Whether this source requires a debug checksum to be sent with each request. Defaults to `false`.\n\n```json\n{\n \"filters\": {\n \"filetypes\": [\"pe\", \"pdb\", \"portablepdb\"],\n \"path_patterns\": [\"*ffmpeg*\"]\n }\n}\n```", "properties": { "filetypes": { "type": "array", "items": { "enum": [ "pe", "pdb", "portablepdb", "mach_debug", "mach_code", "elf_debug", "elf_code", "wasm_debug", "wasm_code", "breakpad", "sourcebundle", "uuidmap", "bcsymbolmap", "il2cpp", "proguard", "dartsymbolmap" ], "type": "string", "description": "* `pe`\n* `pdb`\n* `portablepdb`\n* `mach_debug`\n* `mach_code`\n* `elf_debug`\n* `elf_code`\n* `wasm_debug`\n* `wasm_code`\n* `breakpad`\n* `sourcebundle`\n* `uuidmap`\n* `bcsymbolmap`\n* `il2cpp`\n* `proguard`\n* `dartsymbolmap`" }, "description": "The file types enabled for the source." }, "path_patterns": { "type": "array", "items": { "type": "string" }, "description": "The debug and code file paths enabled for the source." }, "requires_checksum": { "type": "boolean", "description": "Whether the source requires debug checksums." } } }, "GetFlagLogResponse": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the audit log entry" }, "action": { "enum": [ "created", "deleted", "updated" ], "type": "string", "description": "What happened to the flag: created, deleted or updated" }, "createdAt": { "type": "string", "description": "When the change happened (ISO 8601)" }, "createdBy": { "type": "string", "nullable": true, "description": "Who made the change, such as an email address" }, "createdByType": { "enum": [ "email", "id", "name", null ], "type": "string", "nullable": true, "description": "Kind of value in createdBy: email, id or name" }, "flag": { "type": "string", "description": "Name of the flag" }, "provider": { "enum": [ "generic", "flagpole", "launchdarkly", "unleash", "statsig", null ], "type": "string", "nullable": true, "description": "Feature flag provider that sent the change: generic, flagpole, launchdarkly, unleash or statsig" }, "tags": { "type": "object", "additionalProperties": {}, "description": "Tags of the change, such as the environment" } }, "required": [ "action", "createdAt", "createdBy", "createdByType", "flag", "id", "provider", "tags" ], "description": "The audit log entry" } }, "required": [ "data" ] }, "GetReplay": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string", "description": "Replay ID" }, "project_id": { "type": "string", "description": "ID of the project the replay belongs to" }, "trace_ids": { "type": "array", "items": { "type": "string" }, "description": "IDs of traces linked to the replay" }, "error_ids": { "type": "array", "items": { "type": "string" }, "description": "IDs of errors linked to the replay" }, "environment": { "type": "string", "nullable": true, "description": "Environment of the replay" }, "tags": { "anyOf": [ { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, { "type": "array", "items": { "type": "string" } } ], "description": "Replay tags" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "ip": { "type": "string", "nullable": true, "description": "IP address of the user" }, "display_name": { "type": "string", "nullable": true, "description": "Name to display for the user: the username, email, ID or IP address, whichever is set first" }, "geo": { "type": "object", "properties": { "city": { "type": "string", "nullable": true, "description": "City of the user" }, "country_code": { "type": "string", "nullable": true, "description": "Country code of the user" }, "region": { "type": "string", "nullable": true, "description": "Region of the user" }, "subdivision": { "type": "string", "nullable": true, "description": "Subdivision of the user's country, such as a state or province" } }, "description": "Geographic location of the user" } }, "description": "User metadata" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the SDK that recorded the replay" }, "version": { "type": "string", "nullable": true, "description": "Version of the SDK that recorded the replay" } }, "description": "SDK metadata" }, "os": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the operating system" }, "version": { "type": "string", "nullable": true, "description": "Version of the operating system" } }, "description": "Operating system metadata" }, "browser": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the browser" }, "version": { "type": "string", "nullable": true, "description": "Version of the browser" } }, "description": "Browser metadata" }, "device": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the device" }, "brand": { "type": "string", "nullable": true, "description": "Brand of the device" }, "model": { "type": "string", "nullable": true, "description": "Model of the device" }, "family": { "type": "string", "nullable": true, "description": "Family of the device" } }, "description": "Device metadata" }, "ota_updates": { "type": "object", "properties": { "channel": { "type": "string", "nullable": true, "description": "Channel of the over-the-air update" }, "runtime_version": { "type": "string", "nullable": true, "description": "Runtime version of the over-the-air update" }, "update_id": { "type": "string", "nullable": true, "description": "ID of the over-the-air update" } }, "description": "Over-the-air update metadata" }, "is_archived": { "type": "boolean", "nullable": true, "description": "Whether the replay is archived" }, "urls": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "URLs visited during the replay" }, "segment_names": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Names of the replay's segments" }, "clicks": { "type": "array", "items": { "type": "object", "properties": { "click.alt": { "type": "string", "nullable": true, "description": "Alt text of the clicked element" }, "click.label": { "type": "string", "nullable": true, "description": "ARIA label of the clicked element" }, "click.classes": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "CSS classes of the clicked element" }, "click.component_name": { "type": "string", "nullable": true, "description": "Name of the frontend component that was clicked" }, "click.id": { "type": "string", "nullable": true, "description": "ID of the clicked element" }, "click.role": { "type": "string", "nullable": true, "description": "Role of the clicked element" }, "click.tag": { "type": "string", "nullable": true, "description": "HTML tag of the clicked element" }, "click.testid": { "type": "string", "nullable": true, "description": "Test ID of the clicked element" }, "click.text": { "type": "string", "nullable": true, "description": "Text of the clicked element" }, "click.title": { "type": "string", "nullable": true, "description": "Title of the clicked element" } }, "required": [ "click.alt", "click.classes", "click.component_name", "click.id", "click.label", "click.role", "click.tag", "click.testid", "click.text", "click.title" ] }, "description": "Clicks recorded during the replay, one object per click" }, "count_dead_clicks": { "type": "integer", "nullable": true, "description": "Number of dead clicks" }, "count_rage_clicks": { "type": "integer", "nullable": true, "description": "Number of rage clicks" }, "count_errors": { "type": "integer", "nullable": true, "description": "Number of errors linked to the replay" }, "duration": { "type": "integer", "nullable": true, "description": "Replay duration in seconds" }, "finished_at": { "type": "string", "nullable": true, "description": "When the replay finished (ISO 8601)" }, "started_at": { "type": "string", "nullable": true, "description": "When the replay started (ISO 8601)" }, "activity": { "type": "integer", "nullable": true, "description": "Replay activity score" }, "count_urls": { "type": "integer", "nullable": true, "description": "Number of URLs visited during the replay" }, "replay_type": { "type": "string", "description": "Recording mode of the replay, such as session or buffer" }, "count_segments": { "type": "integer", "nullable": true, "description": "Number of recording segments" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the replay" }, "releases": { "type": "array", "items": { "type": "string" }, "description": "Releases associated with the replay" }, "dist": { "type": "string", "nullable": true, "description": "Distribution of the replay" }, "count_warnings": { "type": "integer", "nullable": true, "description": "Number of warning events linked to the replay" }, "count_infos": { "type": "integer", "nullable": true, "description": "Number of info events linked to the replay" }, "has_viewed": { "type": "boolean", "description": "Whether the requesting user has viewed the replay" } }, "description": "The replay" } }, "required": [ "data" ] }, "GetReplayDeletionJob": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the deletion job" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the job was created" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the job was last updated" }, "rangeStart": { "type": "string", "format": "date-time", "description": "Earliest UTC timestamp in the deletion range" }, "rangeEnd": { "type": "string", "format": "date-time", "description": "Latest UTC timestamp in the deletion range" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments of the replays to delete. Empty means all environments" }, "status": { "type": "string", "description": "Status of the job: `pending`, `in-progress`, `completed` or `failed`" }, "query": { "type": "string", "description": "Search query that matches the replays to delete" }, "countDeleted": { "type": "integer", "description": "Number of replays the job has deleted" } }, "required": [ "countDeleted", "dateCreated", "dateUpdated", "environments", "id", "query", "rangeEnd", "rangeStart", "status" ], "description": "The deletion job" } }, "required": [ "data" ] }, "GetReplayRecordingSegment": { "type": "object", "properties": { "data": { "type": "object", "properties": { "replayId": { "type": "string", "description": "ID of the replay the segment belongs to" }, "segmentId": { "type": "integer", "description": "ID of the segment within the replay" }, "projectId": { "type": "string", "description": "ID of the project the replay belongs to" }, "dateAdded": { "type": "string", "nullable": true, "description": "When the segment was stored (ISO 8601), or null if unknown" } }, "required": [ "dateAdded", "projectId", "replayId", "segmentId" ], "description": "Metadata of the recording segment" } }, "required": [ "data" ] }, "GetReplayViewedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "viewed_by": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name of the user" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created (ISO 8601)" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in (ISO 8601), or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication on" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active (ISO 8601), or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" }, "type": { "enum": [ "user" ], "type": "string", "description": "Kind of viewer. Always user" } }, "required": [ "avatar", "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "lastActive", "lastLogin", "name", "type", "username" ] }, "description": "Users who have viewed the replay" } }, "required": [ "viewed_by" ], "description": "Viewers of the replay" } }, "required": [ "data" ] }, "GroupDetailsResponse": { "type": "object", "properties": { "isUnhandled": { "type": "boolean", "description": "Whether the issue includes unhandled events" }, "count": { "type": "string", "description": "Total number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "derivedData": { "type": "object", "properties": { "blocker": { "type": "string", "description": "Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr" }, "progress": { "type": "string", "description": "How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied" }, "status": { "type": "string", "description": "Status of the issue from its action log: open or closed" }, "viewCount": { "type": "integer", "description": "Number of times the issue was viewed" }, "hasOpenFixPr": { "type": "boolean", "description": "Whether an open pull request is linked to the issue" }, "isAssigned": { "type": "boolean", "description": "Whether the issue has an assignee" }, "hasRootCause": { "type": "boolean", "description": "Whether a root cause was found for the issue" }, "lastCompletedAutofixStep": { "type": "string", "description": "Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration" }, "lastProgressedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue's progress last advanced (ISO 8601)" }, "impact": { "type": "object", "properties": { "score": { "type": "number", "format": "double", "nullable": true, "description": "Estimated per-occurrence impact on the end user's capability from 0 to 100" }, "level": { "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "type": "string", "nullable": true, "description": "Impact level derived from the assessment score" }, "description": { "type": "string", "description": "Human-readable description of the capability affected by the issue" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string", "description": "Stable identifier for the evidence supporting this claim" }, "claim": { "type": "string", "description": "Concise explanation of what the cited evidence establishes" }, "source": { "type": "string", "description": "The category of evidence cited, such as an event, trace, replay, or log" } }, "required": [ "claim", "reference", "source" ] }, "description": "Evidence-backed claims supporting the impact assessment" }, "sourceEventId": { "type": "string", "description": "ID of the issue event used to generate the impact assessment" } }, "required": [ "citations", "description", "level", "score", "sourceEventId" ], "nullable": true, "description": "The issue's impact assessment, or null when no assessment is available" } }, "required": [ "blocker", "hasOpenFixPr", "hasRootCause", "isAssigned", "lastCompletedAutofixStep", "lastProgressedAt", "progress", "status", "viewCount" ], "description": "Additional data derived for the issue. Only included when requested with expand" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "shareId": { "type": "string", "nullable": true, "description": "ID used in the issue's public share URL. Null when the issue isn't shared" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "permalink": { "type": "string", "format": "uri", "description": "URL of the issue in Sentry" }, "logger": { "type": "string", "nullable": true, "description": "Logger of the issue's events" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "statusDetails": { "type": "object", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored" }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored (ISO 8601)" }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored" }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount" }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount" }, "actor": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who ignored or resolved the issue" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in" }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in" }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed" }, "info": { "type": "object", "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)" }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started" }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum" } }, "required": [ "dateCreated", "syncCount", "totalEvents" ], "nullable": true, "description": "Reprocessing progress details" } }, "description": "Details of the issue's status, such as when an ignore expires or which release resolves it" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "priority": { "enum": [ "low", "medium", "high", null ], "type": "string", "nullable": true, "description": "Priority of the issue: high, medium or low" }, "priorityLockedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the priority was last set manually, which stops automatic priority updates (ISO 8601)" }, "seerFixabilityScore": { "type": "number", "format": "double", "nullable": true, "description": "Seer's score for how likely the issue is to be fixable" }, "seerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When Seer Autofix was last triggered for the issue (ISO 8601)" }, "seerExplorerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601)" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "User or team the issue is assigned to" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "nullable": true, "description": "Why the requesting user is subscribed to the issue" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred" }, "annotations": { "type": "array", "items": { "type": "object", "properties": { "displayName": { "type": "string", "description": "Display name of the linked external issue" }, "url": { "type": "string", "description": "URL of the linked external issue" } }, "required": [ "displayName", "url" ] }, "description": "External issues linked to the issue" }, "firstRelease": { "anyOf": [ { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release started (ISO 8601)" }, "owner": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "Release owner" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its first event (ISO 8601)" }, "lastEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its most recent event (ISO 8601)" }, "currentProjectMeta": { "type": "object", "properties": { "sessionsLowerBound": { "type": "string", "nullable": true, "description": "Start of the release's sessions in the project (ISO 8601)" }, "sessionsUpperBound": { "type": "string", "nullable": true, "description": "End of the release's sessions in the project (ISO 8601)" }, "nextReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the next release in the project" }, "prevReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the previous release in the project" }, "firstReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the first release in the project" }, "lastReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the latest release in the project" } }, "nullable": true, "description": "Session bounds and neighboring release versions in the current project, when a project is requested" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "adoptionStages": { "type": "object", "additionalProperties": { "type": "object", "properties": { "stage": { "enum": [ "adopted", "low_adoption", "replaced" ], "type": "string", "description": "Adoption stage of the release" }, "adopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was adopted (ISO 8601)" }, "unadopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release stopped being adopted (ISO 8601)" } }, "required": [ "adopted", "stage", "unadopted" ] }, "nullable": true, "description": "Adoption stage of the release in each project, keyed by project slug" }, "id": { "type": "integer", "description": "Release ID" }, "version": { "type": "string", "description": "Version of the release" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "shortVersion": { "type": "string", "description": "Shortened release version" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "authors": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] } ] }, "description": "Authors of the release's commits" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "healthData": { "type": "object", "properties": { "durationP50": { "type": "number", "format": "double", "nullable": true, "description": "Median session duration in seconds" }, "durationP90": { "type": "number", "format": "double", "nullable": true, "description": "90th percentile session duration in seconds" }, "crashFreeUsers": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of users who didn't experience a crash" }, "crashFreeSessions": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of sessions that didn't crash" }, "totalUsers": { "type": "integer", "nullable": true, "description": "Total number of users in the release" }, "totalUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the release over the last 24 hours" }, "totalProjectUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the project over the last 24 hours" }, "totalSessions": { "type": "integer", "nullable": true, "description": "Total number of sessions in the release" }, "totalSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the release over the last 24 hours" }, "totalProjectSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the project over the last 24 hours" }, "adoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's users over the last 24 hours that were on the release" }, "sessionsAdoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's sessions over the last 24 hours that were on the release" }, "sessionsCrashed": { "type": "integer", "description": "Number of crashed sessions" }, "sessionsErrored": { "type": "integer", "description": "Number of sessions with errors" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "description": "Session or user counts over time, keyed by stats period" } }, "required": [ "hasHealthData", "sessionsCrashed", "sessionsErrored", "stats" ], "nullable": true, "description": "Release health data for the project. Only included when health data is requested" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released in the project (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When work on the release started (ISO 8601)" }, "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Platforms of the project" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data in the project" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release in the project" } }, "required": [ "hasHealthData", "id", "name", "newGroups", "platform", "platforms", "slug" ] }, "description": "Projects in the release" } }, "required": [ "authors", "commitCount", "data", "deployCount", "id", "newGroups", "projects", "shortVersion", "status", "version", "versionInfo" ] }, { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "First release the issue was seen in. Omitted when release is collapsed" }, "lastRelease": { "anyOf": [ { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release started (ISO 8601)" }, "owner": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "Release owner" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its first event (ISO 8601)" }, "lastEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its most recent event (ISO 8601)" }, "currentProjectMeta": { "type": "object", "properties": { "sessionsLowerBound": { "type": "string", "nullable": true, "description": "Start of the release's sessions in the project (ISO 8601)" }, "sessionsUpperBound": { "type": "string", "nullable": true, "description": "End of the release's sessions in the project (ISO 8601)" }, "nextReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the next release in the project" }, "prevReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the previous release in the project" }, "firstReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the first release in the project" }, "lastReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the latest release in the project" } }, "nullable": true, "description": "Session bounds and neighboring release versions in the current project, when a project is requested" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "adoptionStages": { "type": "object", "additionalProperties": { "type": "object", "properties": { "stage": { "enum": [ "adopted", "low_adoption", "replaced" ], "type": "string", "description": "Adoption stage of the release" }, "adopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was adopted (ISO 8601)" }, "unadopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release stopped being adopted (ISO 8601)" } }, "required": [ "adopted", "stage", "unadopted" ] }, "nullable": true, "description": "Adoption stage of the release in each project, keyed by project slug" }, "id": { "type": "integer", "description": "Release ID" }, "version": { "type": "string", "description": "Version of the release" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "shortVersion": { "type": "string", "description": "Shortened release version" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "authors": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] } ] }, "description": "Authors of the release's commits" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "healthData": { "type": "object", "properties": { "durationP50": { "type": "number", "format": "double", "nullable": true, "description": "Median session duration in seconds" }, "durationP90": { "type": "number", "format": "double", "nullable": true, "description": "90th percentile session duration in seconds" }, "crashFreeUsers": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of users who didn't experience a crash" }, "crashFreeSessions": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of sessions that didn't crash" }, "totalUsers": { "type": "integer", "nullable": true, "description": "Total number of users in the release" }, "totalUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the release over the last 24 hours" }, "totalProjectUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the project over the last 24 hours" }, "totalSessions": { "type": "integer", "nullable": true, "description": "Total number of sessions in the release" }, "totalSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the release over the last 24 hours" }, "totalProjectSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the project over the last 24 hours" }, "adoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's users over the last 24 hours that were on the release" }, "sessionsAdoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's sessions over the last 24 hours that were on the release" }, "sessionsCrashed": { "type": "integer", "description": "Number of crashed sessions" }, "sessionsErrored": { "type": "integer", "description": "Number of sessions with errors" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "description": "Session or user counts over time, keyed by stats period" } }, "required": [ "hasHealthData", "sessionsCrashed", "sessionsErrored", "stats" ], "nullable": true, "description": "Release health data for the project. Only included when health data is requested" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released in the project (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When work on the release started (ISO 8601)" }, "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Platforms of the project" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data in the project" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release in the project" } }, "required": [ "hasHealthData", "id", "name", "newGroups", "platform", "platforms", "slug" ] }, "description": "Projects in the release" } }, "required": [ "authors", "commitCount", "data", "deployCount", "id", "newGroups", "projects", "shortVersion", "status", "version", "versionInfo" ] }, { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Latest release the issue was seen in. Omitted when release is collapsed" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "uniqueValues": { "type": "integer", "nullable": true, "description": "Number of distinct values seen for the tag key" }, "totalValues": { "type": "integer", "nullable": true, "description": "Number of events counted for the tag key. For an issue tag, this is the issue's retained event count, including events without the tag" }, "topValues": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "nullable": true, "description": "Search query that matches events with the tag value. Only set for the user tag" }, "key": { "type": "string", "description": "Tag key, with the `sentry:` prefix removed from built-in keys" }, "name": { "type": "string", "nullable": true, "description": "Display label of the tag value. For the user tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed" }, "value": { "type": "string", "nullable": true, "description": "Tag value" }, "count": { "type": "integer", "nullable": true, "description": "Number of events with the tag value. Null for an empty value" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the tag value was last seen (ISO 8601). Null for an empty value" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the tag value was first seen (ISO 8601). Null for an empty value" } }, "required": [ "count", "firstSeen", "key", "lastSeen", "name", "value" ] }, "nullable": true, "description": "Most frequent values of the tag key, ordered by count" }, "key": { "type": "string", "description": "Tag key, with the `sentry:` prefix removed from built-in keys" }, "name": { "type": "string", "description": "Display label of the tag key" } }, "required": [ "key", "name" ] }, "description": "Tag keys seen on the issue's events, with their top values. Omitted when tags is collapsed" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "number", "format": "double" } } }, "description": "Event counts for the last 24 hours (hourly) and 30 days (daily), as [timestamp, count] pairs. Omitted when stats is collapsed" }, "inbox": { "type": "object", "properties": { "reason": { "type": "integer", "description": "Why the issue is in the inbox: 0 new, 1 unignored, 2 regression, 3 manual, 4 reprocessed, 5 escalating or 6 ongoing" }, "reason_details": { "type": "object", "properties": { "until": { "type": "string", "nullable": true, "description": "When the ignore that ended was set to expire (ISO 8601)" }, "count": { "type": "integer", "nullable": true, "description": "Number of occurrences the ignore that ended was set to wait for" }, "window": { "type": "integer", "nullable": true, "description": "Window in minutes for count" }, "user_count": { "type": "integer", "nullable": true, "description": "Number of affected users the ignore that ended was set to wait for" }, "user_window": { "type": "integer", "nullable": true, "description": "Window in minutes for user_count" } }, "required": [ "count", "until", "user_count", "user_window", "window" ], "nullable": true, "description": "Details of the ignore that ended when the issue came back to the inbox. Null otherwise" }, "date_added": { "type": "string", "format": "date-time", "description": "When the issue was added to the inbox (ISO 8601)" } }, "required": [ "date_added", "reason", "reason_details" ], "nullable": true, "description": "Why the issue is in the inbox. Only included when requested with expand" }, "owners": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "How the owner was found: suspectCommit, ownershipRule, codeowners or seerSuggested" }, "owner": { "type": "string", "description": "Owner as an actor identifier, such as user:1 or team:1" }, "date_added": { "type": "string", "format": "date-time", "description": "When the owner was suggested (ISO 8601)" } }, "required": [ "date_added", "owner", "type" ] }, "nullable": true, "description": "Suggested owners of the issue. Only included when requested with expand" }, "forecast": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "integer" }, "description": "Forecast daily event counts, starting on the day the forecast was generated" }, "date_added": { "type": "number", "format": "double", "description": "When the forecast was generated, as a Unix timestamp" } }, "required": [ "data", "date_added" ], "description": "Escalation forecast for the issue. Only included when requested with expand" }, "integrationIssues": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the external issue link in Sentry" }, "key": { "type": "string", "description": "Key of the issue in the integration, such as APP-123" }, "title": { "type": "string", "nullable": true, "description": "Title of the issue in the integration" }, "description": { "type": "string", "nullable": true, "description": "Description of the issue in the integration" }, "displayName": { "type": "string", "description": "Name of the issue to display" }, "integrationKey": { "type": "string", "description": "Provider of the integration, such as jira" }, "integrationName": { "type": "string", "description": "Name of the integration" } } }, "description": "External issues linked through integrations. Only included when requested with expand" }, "sentryAppIssues": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the external issue link" }, "issueId": { "type": "string", "description": "ID of the Sentry issue" }, "serviceType": { "type": "string", "description": "Slug of the custom integration that created the external issue" }, "displayName": { "type": "string", "description": "Display name of the external issue, such as ABC-123" }, "webUrl": { "type": "string", "description": "URL of the external issue" } }, "required": [ "displayName", "id", "issueId", "serviceType", "webUrl" ] }, "description": "External issues linked through Sentry apps. Only included when requested with expand" }, "latestEventHasAttachments": { "type": "boolean", "description": "Whether the issue's latest event has attachments. Only included when requested with expand" }, "activity": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "assigned" ] }, "data": { "type": "object", "properties": { "assignee": { "nullable": true, "type": "string", "description": "ID of the user or team the issue was assigned to" }, "assigneeEmail": { "nullable": true, "type": "string", "description": "Email of the user the issue was assigned to" }, "assigneeName": { "nullable": true, "type": "string", "description": "Name of the user or team the issue was assigned to" }, "assigneeType": { "nullable": true, "type": "string", "description": "What the issue was assigned to: user or team" }, "integration": { "nullable": true, "type": "string", "description": "What assigned the issue, such as codeowners or projectOwnership" }, "rule": { "nullable": true, "type": "string", "description": "Ownership rule that assigned the issue" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "auto_set_ongoing" ] }, "data": { "type": "object", "properties": { "after_days": { "nullable": true, "type": "integer", "description": "Days after which the issue became ongoing" }, "manually": { "type": "boolean", "description": "Whether a user marked the issue reviewed, rather than time passing" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "create_issue" ] }, "data": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the external issue" }, "provider": { "type": "string", "description": "Integration provider, such as Jira or GitHub" }, "location": { "type": "string", "description": "URL of the external issue" }, "label": { "type": "string", "description": "Label of the external issue, such as PROJ-123" }, "new": { "nullable": true, "type": "boolean", "description": "Whether the external issue was created, rather than linked" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "deleted_attachment" ] }, "data": { "type": "object", "maxProperties": 0, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "first_seen" ] }, "data": { "type": "object", "properties": { "priority": { "type": "string", "nullable": true, "enum": [ "high", "medium", "low", null ], "description": "Priority the issue was created with" } }, "required": [ "priority" ], "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "impact_assessment" ] }, "data": { "type": "object", "properties": { "score": { "type": "number", "nullable": true, "description": "Impact score from 0 to 100" }, "level": { "type": "string", "nullable": true, "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "description": "Impact level that the score falls in" }, "description": { "type": "string", "description": "What the impact is" }, "citations": { "type": "array", "description": "Evidence for the assessment", "items": { "type": "object", "properties": { "claim": { "type": "string", "description": "What is claimed" }, "reference": { "type": "string", "description": "What backs it" }, "source": { "type": "string", "description": "Where it comes from" } }, "required": [ "claim", "reference", "source" ] } }, "sourceEventId": { "type": "string", "description": "ID of the event the assessment is based on" } }, "required": [ "score", "level", "description", "citations", "sourceEventId" ], "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "investigation_linked" ] }, "data": { "type": "object", "properties": { "investigation": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the investigation" }, "title": { "type": "string", "description": "Investigation title" }, "status": { "type": "string", "enum": [ "active", "archived" ], "description": "Whether the investigation is archived" } }, "required": [ "id", "title", "status" ], "nullable": true, "description": "The investigation that linked the issue, or null once it's deleted" }, "hypothesisId": { "type": "string", "description": "ID of the hypothesis" }, "hypothesisStatement": { "type": "string", "description": "The confirmed hypothesis whose evidence named the issue" }, "reason": { "type": "string", "nullable": true, "description": "Why the evidence links the issue" } }, "required": [ "investigation", "hypothesisId", "hypothesisStatement", "reason" ], "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "mark_reviewed" ] }, "data": { "type": "object", "maxProperties": 0, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "merge" ] }, "data": { "type": "object", "properties": { "issues": { "type": "array", "description": "Issues merged into this one", "items": { "type": "object", "properties": { "id": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the merged issue" } }, "required": [ "id" ] } } }, "required": [ "issues" ], "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "note" ] }, "data": { "type": "object", "properties": { "text": { "type": "string", "description": "Text of the comment, in Markdown" }, "comment_id": { "type": "integer", "description": "ID of the comment" }, "mentions": { "type": "array", "items": { "type": "object", "description": "A Sentry user @mentioned by an activity, resolved from the stored id ref.", "properties": { "name": { "type": "string", "description": "Display name of the mentioned user" }, "email": { "type": "string", "format": "email", "description": "Email of the mentioned user" }, "username": { "type": "string", "description": "Username of the mentioned user" } }, "required": [ "email", "name", "username" ] }, "description": "Users the comment mentions" } }, "required": [ "text" ], "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "pull_request_closed" ] }, "data": { "type": "object", "properties": { "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "The pull request" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "pull_request_merged" ] }, "data": { "type": "object", "properties": { "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "The pull request" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "pull_request_reopened" ] }, "data": { "type": "object", "properties": { "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "The pull request" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "pull_request_unlinked" ] }, "data": { "type": "object", "properties": { "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "The pull request" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "referenced_in_commit" ] }, "data": { "type": "object", "properties": { "commit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" }, "releases": { "type": "array", "items": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" }, "shortVersion": { "type": "string", "description": "Short version of the release" }, "ref": { "type": "string", "nullable": true, "description": "Commit ref of the release" }, "url": { "type": "string", "nullable": true, "description": "URL of the release" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the release was created (ISO 8601)" } }, "required": [ "dateCreated", "dateReleased", "ref", "shortVersion", "url", "version" ] }, "description": "Releases that contain the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "releases", "suspectCommitType" ], "nullable": true, "description": "The commit" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "reprocess" ] }, "data": { "type": "object", "properties": { "eventCount": { "nullable": true, "type": "integer", "description": "Number of events reprocessed" }, "oldGroupId": { "nullable": true, "type": "integer", "description": "ID of the issue the events were reprocessed from" }, "newGroupId": { "nullable": true, "type": "integer", "description": "ID of the issue the events were reprocessed into" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_coding_completed" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" }, "changes": { "nullable": true, "type": "array", "items": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] } }, "description": "Code changes that Seer made" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_coding_started" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_iteration_completed" ] }, "data": { "type": "object", "properties": { "run_id": { "type": "integer", "description": "ID of the Seer run" }, "iteration_index": { "type": "integer", "description": "Number of the iteration" }, "pull_requests": { "type": "array", "description": "Pull requests that Seer opened or updated", "items": { "type": "object", "properties": { "provider": { "type": "string", "description": "Code host, such as github" }, "repo_name": { "type": "string", "description": "Repository, such as owner/repo" }, "pull_request": { "type": "object", "description": "The pull request", "properties": { "pr_number": { "type": "integer", "description": "Number of the pull request" }, "pr_url": { "type": "string", "description": "URL of the pull request" } } } } } } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_iteration_started" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" }, "referrer": { "nullable": true, "type": "string", "description": "What started the Autofix run, such as api.web or slack" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_pr_created" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" }, "pull_requests": { "type": "array", "description": "Pull requests that Seer opened or updated", "items": { "type": "object", "properties": { "provider": { "type": "string", "description": "Code host, such as github" }, "repo_name": { "type": "string", "description": "Repository, such as owner/repo" }, "pull_request": { "type": "object", "description": "The pull request", "properties": { "pr_number": { "type": "integer", "description": "Number of the pull request" }, "pr_url": { "type": "string", "description": "URL of the pull request" } } } } }, "nullable": true } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_pr_ready_for_review" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" }, "pull_requests": { "type": "array", "description": "Pull requests that Seer opened or updated", "items": { "type": "object", "properties": { "provider": { "type": "string", "description": "Code host, such as github" }, "repo_name": { "type": "string", "description": "Repository, such as owner/repo" }, "pull_request": { "type": "object", "description": "The pull request", "properties": { "pr_number": { "type": "integer", "description": "Number of the pull request" }, "pr_url": { "type": "string", "description": "URL of the pull request" } } } } }, "nullable": true } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_rca_completed" ] }, "data": { "type": "object", "properties": { "run_id": { "anyOf": [ { "type": "integer" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "ID of the Seer run" }, "summary": { "nullable": true, "type": "string", "description": "One-line summary of what Seer found" }, "root_cause": { "nullable": true, "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] }, "description": "Root cause that Seer found" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_rca_started" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_solution_completed" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" }, "solution": { "nullable": true, "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } } } ] }, "description": "Solution that Seer proposed" }, "summary": { "nullable": true, "type": "string", "description": "One-line summary of what Seer found" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_solution_started" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "seer_stopped" ] }, "data": { "type": "object", "properties": { "run_id": { "nullable": true, "type": "integer", "description": "ID of the Seer run" }, "reason": { "nullable": true, "description": "Why Seer stopped instead of fixing the issue", "type": "string" }, "suggestion": { "nullable": true, "description": "What Seer suggests doing instead", "type": "string" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_escalating" ] }, "data": { "type": "object", "properties": { "event_id": { "nullable": true, "type": "string", "description": "ID of the event that caused the change" }, "forecast": { "nullable": true, "type": "integer", "description": "Forecast of the issue's daily events when it escalated" }, "expired_snooze": { "type": "object", "nullable": true, "description": "The archive conditions that expired when the issue escalated", "properties": { "count": { "type": "integer", "nullable": true, "description": "Event count condition" }, "until": { "type": "string", "nullable": true, "description": "Date condition" }, "user_count": { "type": "integer", "nullable": true, "description": "User count condition" }, "user_window": { "type": "integer", "nullable": true, "description": "Minutes over which user_count is counted" }, "window": { "type": "integer", "nullable": true, "description": "Minutes over which count is counted" } } } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_ignored" ] }, "data": { "type": "object", "properties": { "ignoreCount": { "nullable": true, "type": "integer", "description": "Number of events after which the issue is unarchived" }, "ignoreDuration": { "nullable": true, "type": "integer", "description": "Minutes the issue is archived for" }, "ignoreUntil": { "nullable": true, "type": "string", "description": "When the issue is unarchived (ISO 8601)" }, "ignoreUserCount": { "nullable": true, "type": "integer", "description": "Number of affected users after which the issue is unarchived" }, "ignoreUserWindow": { "nullable": true, "type": "integer", "description": "Minutes over which ignoreUserCount is counted" }, "ignoreWindow": { "nullable": true, "type": "integer", "description": "Minutes over which ignoreCount is counted" }, "ignoreUntilEscalating": { "nullable": true, "type": "boolean", "description": "Whether the issue is archived until it escalates" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_priority" ] }, "data": { "type": "object", "properties": { "priority": { "type": "string", "description": "New priority of the issue: high, medium or low" }, "reason": { "nullable": true, "type": "string", "description": "Why the priority changed, such as escalating or ongoing" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_private" ] }, "data": { "type": "object", "maxProperties": 0, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_public" ] }, "data": { "type": "object", "maxProperties": 0, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_regression" ] }, "data": { "type": "object", "properties": { "event_id": { "nullable": true, "type": "string", "description": "ID of the event that caused the change" }, "version": { "nullable": true, "type": "string", "description": "Version of the release" }, "event_type": { "type": "string", "description": "Type of the event that regressed" }, "follows_semver": { "type": "boolean", "description": "Whether the project's releases follow semantic versioning" }, "resolved_in_version": { "type": "string", "description": "Release the issue was resolved in before it regressed" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_resolved" ] }, "data": { "type": "object", "properties": { "integration_id": { "type": "integer", "description": "ID of the integration that changed the status, when an integration did" }, "provider": { "type": "string", "description": "Name of the integration provider, such as Jira" }, "provider_key": { "type": "string", "description": "Key of the integration provider, such as jira" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_resolved_by_age" ] }, "data": { "type": "object", "properties": { "age": { "nullable": true, "type": "integer", "description": "Hours without events after which the issue resolved" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_resolved_in_commit" ] }, "data": { "type": "object", "properties": { "commit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" }, "releases": { "type": "array", "items": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" }, "shortVersion": { "type": "string", "description": "Short version of the release" }, "ref": { "type": "string", "nullable": true, "description": "Commit ref of the release" }, "url": { "type": "string", "nullable": true, "description": "URL of the release" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the release was created (ISO 8601)" } }, "required": [ "dateCreated", "dateReleased", "ref", "shortVersion", "url", "version" ] }, "description": "Releases that contain the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "releases", "suspectCommitType" ], "nullable": true, "description": "The commit" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_resolved_in_pull_request" ] }, "data": { "type": "object", "properties": { "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "The pull request" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_resolved_in_release" ] }, "data": { "type": "object", "properties": { "version": { "nullable": true, "type": "string", "description": "Version of the release" }, "current_release_version": { "nullable": true, "type": "string", "description": "Latest release when the issue was resolved, for semver releases" }, "commit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" }, "releases": { "type": "array", "items": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" }, "shortVersion": { "type": "string", "description": "Short version of the release" }, "ref": { "type": "string", "nullable": true, "description": "Commit ref of the release" }, "url": { "type": "string", "nullable": true, "description": "URL of the release" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the release was created (ISO 8601)" } }, "required": [ "dateCreated", "dateReleased", "ref", "shortVersion", "url", "version" ] }, "description": "Releases that contain the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "releases", "suspectCommitType" ], "nullable": true, "description": "The commit" }, "integration_id": { "type": "integer", "description": "ID of the integration that changed the status, when an integration did" }, "provider": { "type": "string", "description": "Name of the integration provider, such as Jira" }, "provider_key": { "type": "string", "description": "Key of the integration provider, such as jira" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue resolves in the next release" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "set_unresolved" ] }, "data": { "type": "object", "properties": { "event_id": { "nullable": true, "type": "string", "description": "ID of the event that caused the change" }, "integration_id": { "type": "integer", "description": "ID of the integration that changed the status, when an integration did" }, "provider": { "type": "string", "description": "Name of the integration provider, such as Jira" }, "provider_key": { "type": "string", "description": "Key of the integration provider, such as jira" }, "forecast": { "type": "integer", "description": "Forecast of the issue's daily events when it escalated" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "trigger_autofix" ] }, "data": { "type": "object", "properties": { "referrer": { "nullable": true, "type": "string", "description": "What started the Autofix run, such as api.web or slack" } }, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "unassigned" ] }, "data": { "type": "object", "maxProperties": 0, "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "unlink_external_issue" ] }, "data": { "description": "Details of the activity, which depend on type", "type": "object", "required": [ "provider", "external_issue_key" ], "properties": { "provider": { "type": "string", "description": "Integration provider, such as Jira or GitHub" }, "external_issue_key": { "type": "string", "description": "Key of the external issue, such as PROJ-123" } } }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "unlink_platform_external_issue" ] }, "data": { "description": "Details of the activity, which depend on type", "type": "object", "required": [ "service_type", "display_name", "web_url" ], "properties": { "service_type": { "type": "string", "description": "Slug of the Sentry App that owns the external issue" }, "display_name": { "type": "string", "description": "Display name of the external issue" }, "web_url": { "type": "string", "description": "URL of the external issue" } } }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "unmerge_destination" ] }, "data": { "type": "object", "properties": { "fingerprints": { "type": "array", "items": { "type": "string" }, "description": "Fingerprints" }, "source": { "type": "object", "properties": { "isUnhandled": { "type": "boolean", "description": "Whether the issue includes unhandled events" }, "count": { "type": "string", "description": "Total number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "derivedData": { "type": "object", "properties": { "blocker": { "type": "string", "description": "Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr" }, "progress": { "type": "string", "description": "How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied" }, "status": { "type": "string", "description": "Status of the issue from its action log: open or closed" }, "viewCount": { "type": "integer", "description": "Number of times the issue was viewed" }, "hasOpenFixPr": { "type": "boolean", "description": "Whether an open pull request is linked to the issue" }, "isAssigned": { "type": "boolean", "description": "Whether the issue has an assignee" }, "hasRootCause": { "type": "boolean", "description": "Whether a root cause was found for the issue" }, "lastCompletedAutofixStep": { "type": "string", "description": "Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration" }, "lastProgressedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue's progress last advanced (ISO 8601)" }, "impact": { "type": "object", "properties": { "score": { "type": "number", "format": "double", "nullable": true, "description": "Estimated per-occurrence impact on the end user's capability from 0 to 100" }, "level": { "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "type": "string", "nullable": true, "description": "Impact level derived from the assessment score" }, "description": { "type": "string", "description": "Human-readable description of the capability affected by the issue" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string", "description": "Stable identifier for the evidence supporting this claim" }, "claim": { "type": "string", "description": "Concise explanation of what the cited evidence establishes" }, "source": { "type": "string", "description": "The category of evidence cited, such as an event, trace, replay, or log" } }, "required": [ "claim", "reference", "source" ] }, "description": "Evidence-backed claims supporting the impact assessment" }, "sourceEventId": { "type": "string", "description": "ID of the issue event used to generate the impact assessment" } }, "required": [ "citations", "description", "level", "score", "sourceEventId" ], "nullable": true, "description": "The issue's impact assessment, or null when no assessment is available" } }, "required": [ "blocker", "hasOpenFixPr", "hasRootCause", "isAssigned", "lastCompletedAutofixStep", "lastProgressedAt", "progress", "status", "viewCount" ], "description": "Additional data derived for the issue. Only included when requested with expand" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "shareId": { "type": "string", "nullable": true, "description": "ID used in the issue's public share URL. Null when the issue isn't shared" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "permalink": { "type": "string", "format": "uri", "description": "URL of the issue in Sentry" }, "logger": { "type": "string", "nullable": true, "description": "Logger of the issue's events" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "statusDetails": { "type": "object", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored" }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored (ISO 8601)" }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored" }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount" }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount" }, "actor": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who ignored or resolved the issue" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in" }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in" }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed" }, "info": { "type": "object", "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)" }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started" }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum" } }, "required": [ "dateCreated", "syncCount", "totalEvents" ], "nullable": true, "description": "Reprocessing progress details" } }, "description": "Details of the issue's status, such as when an ignore expires or which release resolves it" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "priority": { "enum": [ "low", "medium", "high", null ], "type": "string", "nullable": true, "description": "Priority of the issue: high, medium or low" }, "priorityLockedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the priority was last set manually, which stops automatic priority updates (ISO 8601)" }, "seerFixabilityScore": { "type": "number", "format": "double", "nullable": true, "description": "Seer's score for how likely the issue is to be fixable" }, "seerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When Seer Autofix was last triggered for the issue (ISO 8601)" }, "seerExplorerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601)" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "User or team the issue is assigned to" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "nullable": true, "description": "Why the requesting user is subscribed to the issue" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred" }, "annotations": { "type": "array", "items": { "type": "object", "properties": { "displayName": { "type": "string", "description": "Display name of the linked external issue" }, "url": { "type": "string", "description": "URL of the linked external issue" } }, "required": [ "displayName", "url" ] }, "description": "External issues linked to the issue" } }, "required": [ "annotations", "assignedTo", "culprit", "hasSeen", "id", "isBookmarked", "isPublic", "isSubscribed", "issueCategory", "issueType", "level", "logger", "metadata", "numComments", "permalink", "platform", "priority", "priorityLockedAt", "project", "seerAutofixLastTriggered", "seerExplorerAutofixLastTriggered", "seerFixabilityScore", "shareId", "shortId", "status", "statusDetails", "subscriptionDetails", "substatus", "title", "type" ], "nullable": true, "description": "Issue the events moved from" } }, "required": [ "fingerprints" ], "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] }, { "type": "object", "description": "Matches the envelope of ActivitySerializer.serialize(). In an issue's activity feed, the\nAPI schema is the union in activity_response_schemas, which pins `data` down for each\n`type`.", "properties": { "id": { "type": "string", "description": "ID of the activity, or 0 for a first-seen item built from the issue" }, "commentId": { "type": "string", "nullable": true, "description": "ID to pass to the notes endpoints for a comment, otherwise null" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who acted, or null for Sentry, an integration or a Sentry App" }, "sentry_app": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry App" }, "name": { "type": "string", "description": "Name of the Sentry App" }, "slug": { "type": "string", "description": "Slug of the Sentry App" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the Sentry App" } }, "required": [ "avatars", "id", "name", "slug" ], "nullable": true, "description": "Sentry App that acted, if one did" }, "type": { "type": "string", "description": "Type of the activity, which decides the shape of data", "enum": [ "unmerge_source" ] }, "data": { "type": "object", "properties": { "fingerprints": { "type": "array", "items": { "type": "string" }, "description": "Fingerprints" }, "destination": { "type": "object", "properties": { "isUnhandled": { "type": "boolean", "description": "Whether the issue includes unhandled events" }, "count": { "type": "string", "description": "Total number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "derivedData": { "type": "object", "properties": { "blocker": { "type": "string", "description": "Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr" }, "progress": { "type": "string", "description": "How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied" }, "status": { "type": "string", "description": "Status of the issue from its action log: open or closed" }, "viewCount": { "type": "integer", "description": "Number of times the issue was viewed" }, "hasOpenFixPr": { "type": "boolean", "description": "Whether an open pull request is linked to the issue" }, "isAssigned": { "type": "boolean", "description": "Whether the issue has an assignee" }, "hasRootCause": { "type": "boolean", "description": "Whether a root cause was found for the issue" }, "lastCompletedAutofixStep": { "type": "string", "description": "Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration" }, "lastProgressedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue's progress last advanced (ISO 8601)" }, "impact": { "type": "object", "properties": { "score": { "type": "number", "format": "double", "nullable": true, "description": "Estimated per-occurrence impact on the end user's capability from 0 to 100" }, "level": { "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "type": "string", "nullable": true, "description": "Impact level derived from the assessment score" }, "description": { "type": "string", "description": "Human-readable description of the capability affected by the issue" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string", "description": "Stable identifier for the evidence supporting this claim" }, "claim": { "type": "string", "description": "Concise explanation of what the cited evidence establishes" }, "source": { "type": "string", "description": "The category of evidence cited, such as an event, trace, replay, or log" } }, "required": [ "claim", "reference", "source" ] }, "description": "Evidence-backed claims supporting the impact assessment" }, "sourceEventId": { "type": "string", "description": "ID of the issue event used to generate the impact assessment" } }, "required": [ "citations", "description", "level", "score", "sourceEventId" ], "nullable": true, "description": "The issue's impact assessment, or null when no assessment is available" } }, "required": [ "blocker", "hasOpenFixPr", "hasRootCause", "isAssigned", "lastCompletedAutofixStep", "lastProgressedAt", "progress", "status", "viewCount" ], "description": "Additional data derived for the issue. Only included when requested with expand" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "shareId": { "type": "string", "nullable": true, "description": "ID used in the issue's public share URL. Null when the issue isn't shared" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "permalink": { "type": "string", "format": "uri", "description": "URL of the issue in Sentry" }, "logger": { "type": "string", "nullable": true, "description": "Logger of the issue's events" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "statusDetails": { "type": "object", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored" }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored (ISO 8601)" }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored" }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount" }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount" }, "actor": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who ignored or resolved the issue" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in" }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in" }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed" }, "info": { "type": "object", "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)" }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started" }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum" } }, "required": [ "dateCreated", "syncCount", "totalEvents" ], "nullable": true, "description": "Reprocessing progress details" } }, "description": "Details of the issue's status, such as when an ignore expires or which release resolves it" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "priority": { "enum": [ "low", "medium", "high", null ], "type": "string", "nullable": true, "description": "Priority of the issue: high, medium or low" }, "priorityLockedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the priority was last set manually, which stops automatic priority updates (ISO 8601)" }, "seerFixabilityScore": { "type": "number", "format": "double", "nullable": true, "description": "Seer's score for how likely the issue is to be fixable" }, "seerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When Seer Autofix was last triggered for the issue (ISO 8601)" }, "seerExplorerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601)" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "User or team the issue is assigned to" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "nullable": true, "description": "Why the requesting user is subscribed to the issue" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred" }, "annotations": { "type": "array", "items": { "type": "object", "properties": { "displayName": { "type": "string", "description": "Display name of the linked external issue" }, "url": { "type": "string", "description": "URL of the linked external issue" } }, "required": [ "displayName", "url" ] }, "description": "External issues linked to the issue" } }, "required": [ "annotations", "assignedTo", "culprit", "hasSeen", "id", "isBookmarked", "isPublic", "isSubscribed", "issueCategory", "issueType", "level", "logger", "metadata", "numComments", "permalink", "platform", "priority", "priorityLockedAt", "project", "seerAutofixLastTriggered", "seerExplorerAutofixLastTriggered", "seerFixabilityScore", "shareId", "shortId", "status", "statusDetails", "subscriptionDetails", "substatus", "title", "type" ], "nullable": true, "description": "Issue the events moved to" } }, "required": [ "fingerprints" ], "description": "Details of the activity, which depend on type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the activity happened (ISO 8601)" }, "source": { "type": "string", "nullable": true, "description": "Where the action came from, such as web, api or mcp:" } }, "required": [ "commentId", "data", "dateCreated", "id", "sentry_app", "type", "user" ] } ] }, "description": "Recent activity on the issue, newest first" }, "seenBy": { "type": "array", "items": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" }, "lastSeen": { "type": "string", "format": "date-time", "description": "When the user last saw the issue (ISO 8601)" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "lastSeen", "name", "username" ] }, "description": "Users who have seen the issue, with when they last saw it" }, "userReportCount": { "type": "integer", "description": "Number of user reports for the issue" }, "participants": { "type": "array", "items": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" }, "type": { "enum": [ "user" ], "type": "string", "description": "Kind of participant. Always user" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "type", "username" ] }, "description": "Users participating in the issue" } }, "required": [ "activity", "annotations", "assignedTo", "culprit", "hasSeen", "id", "isBookmarked", "isPublic", "isSubscribed", "issueCategory", "issueType", "level", "logger", "metadata", "numComments", "participants", "permalink", "platform", "priority", "priorityLockedAt", "project", "seenBy", "seerAutofixLastTriggered", "seerExplorerAutofixLastTriggered", "seerFixabilityScore", "shareId", "shortId", "status", "statusDetails", "subscriptionDetails", "substatus", "title", "type", "userReportCount" ] }, "GroupEventsResponseDict": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "event.type": { "type": "string", "description": "Event type, such as error, default or transaction" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" }, "name": { "type": "string", "nullable": true, "description": "Name of the user" }, "geo": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Location of the user, with keys such as country_code, city and region" }, "data": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Extra data the SDK sent about the user" } }, "nullable": true, "description": "User context of the event" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query that matches this tag's user, such as user.email:\"user@example.com\". Only set for user tags" }, "key": { "type": "string", "description": "Tag key" }, "value": { "type": "string", "description": "Tag value" } }, "required": [ "key", "value" ] }, "description": "Tags attached to the event" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } } }, "required": [ "crashFile", "culprit", "dateCreated", "event.type", "eventID", "groupID", "id", "location", "message", "metadata", "platform", "projectID", "tags", "title", "user" ] } }, "GroupExternalIssueResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the external issue link" }, "issueId": { "type": "string", "description": "ID of the Sentry issue" }, "serviceType": { "type": "string", "description": "Slug of the custom integration that created the external issue" }, "displayName": { "type": "string", "description": "Display name of the external issue, such as ABC-123" }, "webUrl": { "type": "string", "description": "URL of the external issue" } }, "required": [ "displayName", "id", "issueId", "serviceType", "webUrl" ] } }, "GroupHashesResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Fingerprint hash" }, "latestEvent": { "anyOf": [ { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "nullable": true, "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateReceived": { "type": "string", "format": "date-time", "nullable": true, "description": "When Sentry received the event (ISO 8601)" }, "size": { "type": "integer", "nullable": true, "description": "Size of the event payload in bytes" }, "entries": { "type": "array", "items": {}, "description": "Event interfaces, such as exception, breadcrumbs and request, each with a type and data" }, "dist": { "type": "string", "nullable": true, "description": "Distribution of the release the event was sent with" }, "packages": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Modules loaded when the event occurred, keyed by module name with their versions" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type, such as error, default or transaction" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "occurrence": { "anyOf": [ { "type": "object", "description": "A metric issue occurrence. `evidenceData` describes the detector and query that fired.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "enum": [ 8001 ], "type": "integer", "description": "Group type ID of metric issues, always 8001" }, "evidenceData": { "type": "object", "properties": { "detectorId": { "type": "integer", "description": "ID of the detector that created the occurrence" }, "alertId": { "type": "integer", "nullable": true, "description": "ID of the metric alert rule the detector replaces. Null when there's none" }, "value": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Metric value the anomaly detection model scored" }, "sourceId": { "type": "string", "description": "ID of the data source that produced the value" }, "subscriptionId": { "type": "string", "description": "ID of the query subscription that produced the value" }, "timestamp": { "type": "string", "description": "When the value was measured" } }, "required": [ "sourceId", "subscriptionId", "timestamp", "value" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Metric value that triggered the detector, or the anomaly detection result for dynamic detectors" }, "dataPacketSourceId": { "type": "string", "description": "ID of the query subscription that sent the data" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the detector condition" }, "type": { "type": "string", "description": "Type of the condition, such as gt, lt or anomaly_detection" }, "comparison": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "sensitivity": { "enum": [ "low", "medium", "high" ], "type": "string", "description": "How sensitive the anomaly detection is" }, "seasonality": { "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "type": "string", "description": "Seasonality the anomaly detection model uses" }, "thresholdType": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "Direction of anomalies to detect: 0 above, 1 below, 2 above and below" } }, "required": [ "seasonality", "sensitivity", "thresholdType" ] } ], "description": "Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition" }, "conditionResult": { "type": "integer", "description": "Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions of the detector" }, "config": { "type": "object", "properties": { "detectionType": { "enum": [ "static", "percent", "dynamic" ], "type": "string", "description": "How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection" }, "comparisonDelta": { "type": "integer", "nullable": true, "description": "Time window in seconds that a percent change detector compares with" } }, "required": [ "detectionType" ], "description": "Configuration of the detector" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "type": "string", "description": "Type of the data source, such as snuba_query_subscription" }, "sourceId": { "type": "string", "description": "ID of the source object, such as the query subscription" }, "queryObj": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ], "description": "Query subscription the data source reads" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "description": "Data sources of the detector" } }, "required": [ "alertId", "conditions", "config", "dataPacketSourceId", "dataSources", "detectorId", "value" ], "description": "Detector and query that created the occurrence" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "description": "An issue occurrence of any type. `evidenceData` keys are camelCase.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "type": "integer", "description": "Group type ID of the occurrence" }, "evidenceData": { "type": "object", "additionalProperties": {}, "description": "Data of the occurrence. Its keys depend on the group type" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise" }, "_meta": { "type": "object", "additionalProperties": {}, "description": "Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" }, "name": { "type": "string", "nullable": true, "description": "Name of the user" }, "geo": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Location of the user, with keys such as country_code, city and region" }, "data": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Extra data the SDK sent about the user" } }, "nullable": true, "description": "User context of the event" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query that matches this tag's user, such as user.email:\"user@example.com\". Only set for user tags" }, "key": { "type": "string", "description": "Tag key" }, "value": { "type": "string", "description": "Tag value" } }, "required": [ "key", "value" ] }, "description": "Tags attached to the event" }, "contexts": { "type": "object", "nullable": true, "additionalProperties": { "anyOf": [ { "description": "Application information.\n\n App context describes the application. As opposed to the runtime, this is the actual\n application that was running and carries metadata about the current session.", "type": "object", "additionalProperties": true, "properties": { "app_build": { "description": "Internal build ID as it appears on the platform.", "type": "string", "nullable": true }, "app_identifier": { "description": "Version-independent application identifier, often a dotted bundle ID.", "type": "string", "nullable": true }, "app_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Amount of memory used by the application in bytes." }, "app_name": { "description": "Application name as it appears on the platform.", "type": "string", "nullable": true }, "app_start_time": { "description": "Start time of the app.\n\n Formatted UTC timestamp when the user started the application.", "type": "string", "nullable": true }, "app_version": { "description": "Application version as it appears on the platform.", "type": "string", "nullable": true }, "build_type": { "description": "String identifying the kind of build. For example, `testflight`.", "type": "string", "nullable": true }, "device_app_hash": { "description": "Application-specific device identifier.", "type": "string", "nullable": true }, "in_foreground": { "description": "A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user.", "type": "boolean", "nullable": true }, "view_names": { "description": "The names of the currently visible views.", "type": "array", "items": { "type": "string", "nullable": true }, "nullable": true }, "type": { "type": "string", "enum": [ "app" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Web browser information.", "type": "object", "additionalProperties": true, "properties": { "name": { "description": "Display name of the browser application.", "type": "string", "nullable": true }, "version": { "description": "Version string of the browser.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "browser" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "default" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true }, { "description": "Device information.\n\n Device context describes the device that caused the event. This is most appropriate for mobile\n applications.", "type": "object", "additionalProperties": true, "properties": { "arch": { "description": "Native cpu architecture of the device.", "type": "string", "nullable": true }, "battery_level": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Current battery level in %.\n\n If the device has a battery, this can be a floating point value defining the battery level\n (in the range 0-100)." }, "battery_status": { "description": "Status of the device's battery.\n\n For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`.", "type": "string", "nullable": true }, "boot_time": { "description": "Indicator when the device was booted.", "type": "string", "nullable": true }, "brand": { "description": "Brand of the device.", "type": "string", "nullable": true }, "charging": { "description": "Whether the device was charging or not.", "type": "boolean", "nullable": true }, "cpu_description": { "description": "CPU description.\n\n For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz.", "type": "string", "nullable": true }, "device_type": { "description": "Kind of device the application is running on.\n\n For example, `Unknown`, `Handheld`, `Console`, `Desktop`.", "type": "string", "nullable": true }, "device_unique_identifier": { "description": "Unique device identifier.", "type": "string", "nullable": true }, "external_free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Free size of the attached external storage in bytes (eg: android SDK card)." }, "external_storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total size of the attached external storage in bytes (eg: android SDK card)." }, "family": { "description": "Family of the device model.\n\n This is usually the common part of model names across generations. For instance, `iPhone`\n would be a reasonable family, so would be `Samsung Galaxy`.", "type": "string", "nullable": true }, "free_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is still available in bytes." }, "free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much storage is free in bytes." }, "locale": { "description": "ISO 639-1 code of the locale the device is set to.", "type": "string", "nullable": true }, "low_memory": { "description": "Whether the device was low on memory.", "type": "boolean", "nullable": true }, "manufacturer": { "description": "Manufacturer of the device.", "type": "string", "nullable": true }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total memory available in bytes." }, "model": { "description": "Device model.\n\n This, for example, can be `Samsung Galaxy S3`.", "type": "string", "nullable": true }, "model_id": { "description": "Device model (internal identifier).\n\n An internal hardware revision to identify the device exactly.", "type": "string", "nullable": true }, "name": { "description": "Name of the device.", "type": "string", "nullable": true }, "online": { "description": "Whether the device was online or not.", "type": "boolean", "nullable": true }, "orientation": { "description": "Current screen orientation.\n\n This can be a string `portrait` or `landscape` to define the orientation of a device.", "type": "string", "nullable": true }, "processor_count": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Number of \"logical processors\".\n\n For example, 8." }, "processor_frequency": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Processor frequency in MHz.\n\n Note that the actual CPU frequency might vary depending on current load and\n power conditions, especially on low-powered devices like phones and laptops." }, "screen_density": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Device screen density." }, "screen_dpi": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Screen density as dots-per-inch." }, "screen_height_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Height of the screen in pixels." }, "screen_resolution": { "description": "Device screen resolution.\n\n (e.g.: 800x600, 3040x1444)", "type": "string", "nullable": true }, "screen_width_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Width of the screen in pixels." }, "simulator": { "description": "Simulator/prod indicator.", "type": "boolean", "nullable": true }, "storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total storage size of the device in bytes." }, "supports_accelerometer": { "description": "Whether the accelerometer is available on the device.", "type": "boolean", "nullable": true }, "supports_audio": { "description": "Whether audio is available on the device.", "type": "boolean", "nullable": true }, "supports_gyroscope": { "description": "Whether the gyroscope is available on the device.", "type": "boolean", "nullable": true }, "supports_location_service": { "description": "Whether location support is available on the device.", "type": "boolean", "nullable": true }, "supports_vibration": { "description": "Whether vibration is available on the device.", "type": "boolean", "nullable": true }, "timezone": { "description": "Timezone of the device.", "type": "string", "nullable": true }, "usable_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is usable for the app in bytes." }, "uuid": { "description": "UUID of the device.", "type": "string", "format": "uuid", "nullable": true }, "type": { "type": "string", "enum": [ "device" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "GPU information.\n\n Example:\n\n ```json\n \"gpu\": {\n \"name\": \"AMD Radeon Pro 560\",\n \"vendor_name\": \"Apple\",\n \"memory_size\": 4096,\n \"api_type\": \"Metal\",\n \"multi_threaded_rendering\": true,\n \"version\": \"Metal\",\n \"npot_support\": \"Full\"\n }\n ```", "type": "object", "additionalProperties": true, "properties": { "api_type": { "description": "The device low-level API type.\n\n Examples: `\"Apple Metal\"` or `\"Direct3D11\"`", "type": "string", "nullable": true }, "graphics_shader_level": { "description": "Approximate \"shader capability\" level of the graphics device.\n\n For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown)", "type": "string", "nullable": true }, "id": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "The PCI identifier of the graphics device." }, "max_texture_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Largest size of a texture that is supported by the graphics hardware.\n\n For Example: 16384" }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The total GPU memory available in Megabytes." }, "multi_threaded_rendering": { "description": "Whether the GPU has multi-threaded rendering or not.", "type": "boolean", "nullable": true }, "name": { "description": "The name of the graphics device.", "type": "string", "nullable": true }, "npot_support": { "description": "The Non-Power-Of-Two support.", "type": "string", "nullable": true }, "supports_compute_shaders": { "description": "Whether compute shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_draw_call_instancing": { "description": "Whether GPU draw call instancing is supported.", "type": "boolean", "nullable": true }, "supports_geometry_shaders": { "description": "Whether geometry shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_ray_tracing": { "description": "Whether ray tracing is available on the device.", "type": "boolean", "nullable": true }, "vendor_id": { "description": "The PCI vendor identifier of the graphics device.", "type": "string", "nullable": true }, "vendor_name": { "description": "The vendor name as reported by the graphics device.", "type": "string", "nullable": true }, "version": { "description": "The Version of the graphics device.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "gpu" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Monitor information.", "type": "object", "additionalProperties": true, "properties": { "type": { "type": "string", "enum": [ "monitor" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Operating system information.\n\n OS context describes the operating system on which the event was created. In web contexts, this\n is the operating system of the browser (generally pulled from the User-Agent string).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Internal build number of the operating system.", "type": "string", "nullable": true }, "kernel_version": { "description": "Current kernel version.\n\n This is typically the entire output of the `uname` syscall.", "type": "string", "nullable": true }, "name": { "description": "Name of the operating system.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed operating system info.\n\n An unprocessed description string obtained by the operating system. For some well-known\n runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are\n not explicitly given.", "type": "string", "nullable": true }, "rooted": { "description": "Indicator if the OS is rooted (mobile mostly).", "type": "boolean", "nullable": true }, "version": { "description": "Version of the operating system.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "os" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "OpenTelemetry Context\n\n If an event has this context, it was generated from an OpenTelemetry signal (trace, metric, log).", "type": "object", "additionalProperties": true, "properties": { "attributes": { "description": "Attributes of the OpenTelemetry span that maps to a Sentry event.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "resource": { "description": "Information about an OpenTelemetry resource.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "type": { "type": "string", "enum": [ "otel" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Runtime information.\n\n Runtime context describes a runtime in more detail. Typically, this context is present in\n `contexts` multiple times if multiple runtimes are involved (for instance, if you have a\n JavaScript application running on top of JVM).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Application build string, if it is separate from the version.", "type": "string", "nullable": true }, "name": { "description": "Runtime name.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed runtime info.\n\n An unprocessed description string obtained by the runtime. For some well-known runtimes,\n Sentry will attempt to parse `name` and `version` from this string, if they are not\n explicitly given.", "type": "string", "nullable": true }, "version": { "description": "Runtime version string.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "runtime" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Trace context", "type": "object", "additionalProperties": true, "properties": { "client_sample_rate": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The client-side sample rate as reported in the envelope's `trace.sample_rate` header.\n\n The server takes this field from envelope headers and writes it back into the event. Clients\n should not ever send this value." }, "exclusive_time": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The amount of time in milliseconds spent in this transaction span,\n excluding its immediate child spans." }, "op": { "description": "Span type (see `OperationType` docs).", "type": "string", "nullable": true }, "origin": { "description": "The origin of the trace indicates what created the trace (see [OriginType] docs).", "type": "string", "nullable": true }, "parent_span_id": { "description": "The ID of the span enclosing this span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "sampled": { "description": "Track whether the trace connected to this event has been sampled entirely.\n\n This flag only applies to events with [`Error`] type that have an associated dynamic sampling context.", "type": "boolean", "nullable": true }, "span_id": { "description": "The ID of the span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "status": { "description": "Whether the trace failed or succeeded. Currently only used to indicate status of individual\n transactions.", "nullable": true, "type": "string", "enum": [ "ok", "cancelled", "unknown", "invalid_argument", "deadline_exceeded", "not_found", "already_exists", "permission_denied", "resource_exhausted", "failed_precondition", "aborted", "out_of_range", "unimplemented", "internal_error", "unavailable", "data_loss", "unauthenticated", null ] }, "trace_id": { "description": "The trace ID.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "type": { "type": "string", "enum": [ "trace" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "unity" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true } ] }, "description": "Contexts of the event, such as device, os, browser and runtime, keyed by alias" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the SDK that sent the event, such as sentry.python" }, "version": { "type": "string", "nullable": true, "description": "Version of the SDK" } }, "required": [ "name", "version" ], "nullable": true, "description": "SDK that sent the event" }, "context": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Additional data sent with the event in its extra field" }, "errors": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Type of the processing error, such as invalid_data or js_no_source" }, "message": { "type": "string", "description": "Human-readable message of the error" }, "data": { "type": "object", "description": "Details of the error, such as the name of the invalid field. Other keys depend on the error type", "properties": { "name": { "type": "string", "nullable": true, "description": "Affected key or path in the event" }, "message": { "type": "string", "description": "Details of the error from the processor that hit it" }, "url": { "type": "string", "description": "URL that couldn't be fetched, such as a source file" }, "image_path": { "type": "string", "description": "Path of the debug image the error is about" }, "image_name": { "type": "string", "description": "Name of the debug image the error is about" }, "image_uuid": { "type": "string", "description": "Debug ID of the image the error is about" }, "image_arch": { "type": "string", "description": "CPU architecture of the image the error is about" }, "symbolicator_type": { "type": "string", "description": "Error type Symbolicator reported, such as missing_source" }, "source": { "type": "string", "description": "Source file or URL the error is about" }, "sourcemap": { "type": "string", "description": "Source map the error is about" }, "row": { "type": "integer", "description": "Line of the location that couldn't be mapped" }, "column": { "type": "integer", "description": "Column of the location that couldn't be mapped" }, "sdk_time": { "type": "string", "description": "Time the SDK reported, for clock drift errors" }, "server_time": { "type": "string", "description": "Time the server received the event, for clock drift errors" } } } }, "required": [ "data", "message", "type" ] }, "description": "Errors Sentry found while processing the event" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "fingerprints": { "type": "array", "items": { "type": "string" }, "description": "Grouping hashes calculated for the event" }, "groupingConfig": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the grouping config, such as newstyle:2026-01-20" }, "enhancements": { "type": "string", "description": "Stack trace rules of the project, as an encoded string" } }, "required": [ "enhancements", "id" ], "description": "Grouping configuration used to group the event" }, "startTimestamp": { "type": "number", "format": "double", "description": "When the transaction started, as a Unix timestamp in seconds" }, "endTimestamp": { "type": "number", "format": "double", "description": "When the transaction ended, as a Unix timestamp in seconds" }, "measurements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] }, "nullable": true, "description": "Measurements recorded for the transaction, such as web vitals, keyed by name" }, "breakdowns": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] } }, "nullable": true, "description": "Span operation breakdowns for the transaction, keyed by breakdown name" } }, "required": [ "_meta", "context", "contexts", "dateReceived", "dist", "entries", "errors", "eventID", "groupID", "id", "location", "message", "metadata", "occurrence", "packages", "platform", "projectID", "sdk", "size", "tags", "title", "type", "user" ] }, { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "event.type": { "type": "string", "description": "Event type, such as error, default or transaction" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" }, "name": { "type": "string", "nullable": true, "description": "Name of the user" }, "geo": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Location of the user, with keys such as country_code, city and region" }, "data": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Extra data the SDK sent about the user" } }, "nullable": true, "description": "User context of the event" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query that matches this tag's user, such as user.email:\"user@example.com\". Only set for user tags" }, "key": { "type": "string", "description": "Tag key" }, "value": { "type": "string", "description": "Tag value" } }, "required": [ "key", "value" ] }, "description": "Tags attached to the event" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } } }, "required": [ "crashFile", "culprit", "dateCreated", "event.type", "eventID", "groupID", "id", "location", "message", "metadata", "platform", "projectID", "tags", "title", "user" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Latest event with the hash. Null when the event isn't found" }, "mergedBySeer": { "type": "boolean", "description": "Whether Seer merged the hash into the issue as a similar error" }, "seerMatchDistance": { "type": "number", "format": "double", "nullable": true, "description": "Distance between the hash's stack trace and the issue's when Seer merged them. Null when Seer didn't merge the hash" } }, "required": [ "id", "latestEvent", "mergedBySeer", "seerMatchDistance" ] } }, "GroupSearchViewPostValidator": { "type": "object", "properties": { "name": { "type": "string", "description": "The name of the issue view." }, "query": { "type": "string", "description": "The issue search query. Issue search does not support the `AND`/`OR` boolean operators or parenthesized boolean groups. To match any of several values, use the list form instead: `issue:[PROJ-AB1, PROJ-CD2]`, `issue.priority:[high, medium]`." }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "The project IDs included in the view. Use `-1` to include all projects." }, "environments": { "type": "array", "items": { "type": "string" }, "description": "The environment names included in the view. An empty list includes all environments." }, "timeFilters": { "allOf": [ { "type": "object", "properties": { "start": { "type": "string", "nullable": true, "description": "The start of the time range in ISO-8601 format." }, "end": { "type": "string", "nullable": true, "description": "The end of the time range in ISO-8601 format." }, "period": { "type": "string", "nullable": true, "description": "The relative time period, such as `14d`." }, "utc": { "type": "boolean", "nullable": true, "description": "Whether to interpret the time range as UTC." } } } ], "description": "The time range for the view." }, "querySort": { "enum": [ "date", "new", "trends", "freq", "user", "inbox", "recommended" ], "type": "string", "default": "date", "description": "How to sort issues in the view.\n\n* `date` - Last Seen\n* `new` - First Seen\n* `trends` - Trends\n* `freq` - Events\n* `user` - Users\n* `inbox` - Date Added\n* `recommended` - Recommended" }, "starred": { "type": "boolean", "description": "Whether to star the issue view for the current user." } }, "required": [ "environments", "name", "projects", "query", "timeFilters" ] }, "GroupSearchViewTimeFilters": { "type": "object", "properties": { "start": { "type": "string", "nullable": true, "description": "The start of the time range in ISO-8601 format." }, "end": { "type": "string", "nullable": true, "description": "The end of the time range in ISO-8601 format." }, "period": { "type": "string", "nullable": true, "description": "The relative time period, such as `14d`." }, "utc": { "type": "boolean", "nullable": true, "description": "Whether to interpret the time range as UTC." } } }, "GroupUpdateResponse": { "type": "object", "properties": { "isUnhandled": { "type": "boolean", "description": "Whether the issue includes unhandled events" }, "count": { "type": "string", "description": "Total number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "derivedData": { "type": "object", "properties": { "blocker": { "type": "string", "description": "Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr" }, "progress": { "type": "string", "description": "How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied" }, "status": { "type": "string", "description": "Status of the issue from its action log: open or closed" }, "viewCount": { "type": "integer", "description": "Number of times the issue was viewed" }, "hasOpenFixPr": { "type": "boolean", "description": "Whether an open pull request is linked to the issue" }, "isAssigned": { "type": "boolean", "description": "Whether the issue has an assignee" }, "hasRootCause": { "type": "boolean", "description": "Whether a root cause was found for the issue" }, "lastCompletedAutofixStep": { "type": "string", "description": "Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration" }, "lastProgressedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue's progress last advanced (ISO 8601)" }, "impact": { "type": "object", "properties": { "score": { "type": "number", "format": "double", "nullable": true, "description": "Estimated per-occurrence impact on the end user's capability from 0 to 100" }, "level": { "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "type": "string", "nullable": true, "description": "Impact level derived from the assessment score" }, "description": { "type": "string", "description": "Human-readable description of the capability affected by the issue" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string", "description": "Stable identifier for the evidence supporting this claim" }, "claim": { "type": "string", "description": "Concise explanation of what the cited evidence establishes" }, "source": { "type": "string", "description": "The category of evidence cited, such as an event, trace, replay, or log" } }, "required": [ "claim", "reference", "source" ] }, "description": "Evidence-backed claims supporting the impact assessment" }, "sourceEventId": { "type": "string", "description": "ID of the issue event used to generate the impact assessment" } }, "required": [ "citations", "description", "level", "score", "sourceEventId" ], "nullable": true, "description": "The issue's impact assessment, or null when no assessment is available" } }, "required": [ "blocker", "hasOpenFixPr", "hasRootCause", "isAssigned", "lastCompletedAutofixStep", "lastProgressedAt", "progress", "status", "viewCount" ], "description": "Additional data derived for the issue. Only included when requested with expand" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "shareId": { "type": "string", "nullable": true, "description": "ID used in the issue's public share URL. Null when the issue isn't shared" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "permalink": { "type": "string", "format": "uri", "description": "URL of the issue in Sentry" }, "logger": { "type": "string", "nullable": true, "description": "Logger of the issue's events" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "statusDetails": { "type": "object", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored" }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored (ISO 8601)" }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored" }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount" }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount" }, "actor": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who ignored or resolved the issue" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in" }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in" }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed" }, "info": { "type": "object", "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)" }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started" }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum" } }, "required": [ "dateCreated", "syncCount", "totalEvents" ], "nullable": true, "description": "Reprocessing progress details" } }, "description": "Details of the issue's status, such as when an ignore expires or which release resolves it" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "priority": { "enum": [ "low", "medium", "high", null ], "type": "string", "nullable": true, "description": "Priority of the issue: high, medium or low" }, "priorityLockedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the priority was last set manually, which stops automatic priority updates (ISO 8601)" }, "seerFixabilityScore": { "type": "number", "format": "double", "nullable": true, "description": "Seer's score for how likely the issue is to be fixable" }, "seerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When Seer Autofix was last triggered for the issue (ISO 8601)" }, "seerExplorerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601)" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "User or team the issue is assigned to" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "nullable": true, "description": "Why the requesting user is subscribed to the issue" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred" }, "annotations": { "type": "array", "items": { "type": "object", "properties": { "displayName": { "type": "string", "description": "Display name of the linked external issue" }, "url": { "type": "string", "description": "URL of the linked external issue" } }, "required": [ "displayName", "url" ] }, "description": "External issues linked to the issue" } }, "required": [ "annotations", "assignedTo", "culprit", "hasSeen", "id", "isBookmarked", "isPublic", "isSubscribed", "issueCategory", "issueType", "level", "logger", "metadata", "numComments", "permalink", "platform", "priority", "priorityLockedAt", "project", "seerAutofixLastTriggered", "seerExplorerAutofixLastTriggered", "seerFixabilityScore", "shareId", "shortId", "status", "statusDetails", "subscriptionDetails", "substatus", "title", "type" ] }, "GroupValidator": { "type": "object", "properties": { "inbox": { "type": "boolean", "description": "If true, marks the issue as reviewed by the requestor." }, "status": { "enum": [ "resolved", "unresolved", "ignored", "resolvedInNextRelease", "muted" ], "type": "string", "description": "The new status for the issues.\n\n* `resolved`\n* `unresolved`\n* `ignored`\n* `resolvedInNextRelease`\n* `muted`" }, "statusDetails": { "allOf": [ { "type": "object", "properties": { "inNextRelease": { "type": "boolean", "description": "If true, marks the issue as resolved in the next release." }, "inRelease": { "type": "string", "description": "The version of the release that the issue should be resolved in.If set to `latest`, the latest release will be used." }, "inCommit": { "allOf": [ { "type": "object", "properties": { "commit": { "type": "string", "description": "The SHA of the resolving commit." }, "repository": { "type": "string", "description": "The name of the repository (as it appears in Sentry)." } }, "required": [ "commit", "repository" ] } ], "description": "The commit data that the issue should use for resolution." }, "ignoreDuration": { "type": "integer", "minimum": 0, "description": "Ignore the issue until for this many minutes." }, "ignoreCount": { "type": "integer", "minimum": 0, "description": "Ignore the issue until it has occurred this many times in `ignoreWindow` minutes." }, "ignoreWindow": { "type": "integer", "maximum": 10080, "minimum": 0, "description": "Ignore the issue until it has occurred `ignoreCount` times in this many minutes. (Max: 1 week)" }, "ignoreUserCount": { "type": "integer", "minimum": 0, "description": "Ignore the issue until it has affected this many users in `ignoreUserWindow` minutes." }, "ignoreUserWindow": { "type": "integer", "maximum": 10080, "minimum": 0, "description": "Ignore the issue until it has affected `ignoreUserCount` users in this many minutes. (Max: 1 week)" } } } ], "description": "Additional details about the resolution. Status detail updates that include release data are only allowed for issues within a single project." }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "The new substatus of the issue.\n\n* `archived_until_escalating`\n* `archived_until_condition_met`\n* `archived_forever`\n* `escalating`\n* `ongoing`\n* `regressed`\n* `new`" }, "hasSeen": { "type": "boolean", "description": "If true, marks the issue as seen by the requestor." }, "isBookmarked": { "type": "boolean", "description": "If true, bookmarks the issue for the requestor." }, "isPublic": { "type": "boolean", "description": "If true, publishes the issue." }, "isSubscribed": { "type": "boolean", "description": "If true, subscribes the requestor to the issue." }, "merge": { "type": "boolean", "description": "If true, merges the issues together." }, "discard": { "type": "boolean", "description": "If true, discards the issues instead of updating them." }, "assignedTo": { "type": "string", "description": "The user or team that should be assigned to the issues. Values take the form of ``, `user:`, ``, ``, or `team:`." }, "priority": { "enum": [ "low", "medium", "high" ], "type": "string", "description": "The priority that should be set for the issues\n\n* `low`\n* `medium`\n* `high`" }, "ignoreDuration": { "type": "integer", "minimum": 0, "description": "Ignore the issue for this many minutes." }, "ignoreCount": { "type": "integer", "minimum": 0, "description": "Ignore the issue until it is seen this many more times." }, "ignoreWindow": { "type": "integer", "maximum": 10080, "minimum": 0, "description": "Window in minutes over which `ignoreCount` is measured. Maximum is 7 days." }, "ignoreUserCount": { "type": "integer", "minimum": 0, "description": "Ignore the issue until it affects this many more users." }, "ignoreUserWindow": { "type": "integer", "maximum": 10080, "minimum": 0, "description": "Window in minutes over which `ignoreUserCount` is measured. Maximum is 7 days." }, "snoozeDuration": { "type": "integer", "minimum": 0, "nullable": true, "description": "Snooze the issue for this many minutes." } } }, "InCommitValidator": { "type": "object", "properties": { "commit": { "type": "string", "description": "The SHA of the resolving commit." }, "repository": { "type": "string", "description": "The name of the repository (as it appears in Sentry)." } }, "required": [ "commit", "repository" ] }, "InstallInfoResponse": { "type": "object", "properties": { "buildId": { "type": "string", "description": "ID of the build" }, "state": { "enum": [ "UPLOADING", "UPLOADED", "PROCESSED", "FAILED" ], "type": "string", "description": "State of the build" }, "appInfo": { "type": "object", "properties": { "appId": { "type": "string", "nullable": true, "description": "App identifier of the build" }, "name": { "type": "string", "nullable": true, "description": "App name" }, "version": { "type": "string", "nullable": true, "description": "Version of the build" }, "buildNumber": { "type": "integer", "nullable": true, "description": "Build number" }, "artifactType": { "enum": [ "XCARCHIVE", "AAB", "APK", null ], "type": "string", "nullable": true, "description": "Type of the build file" }, "dateAdded": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was uploaded (ISO 8601)" }, "dateBuilt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was built (ISO 8601)" } }, "required": [ "appId", "artifactType", "buildNumber", "dateAdded", "dateBuilt", "name", "version" ], "description": "App details of the build" }, "gitInfo": { "type": "object", "properties": { "headSha": { "type": "string", "nullable": true, "description": "Commit SHA of the build" }, "baseSha": { "type": "string", "nullable": true, "description": "Commit SHA of the base the build is compared against" }, "provider": { "type": "string", "nullable": true, "description": "Version control provider, such as github" }, "headRepoName": { "type": "string", "nullable": true, "description": "Repository name of the head commit" }, "baseRepoName": { "type": "string", "nullable": true, "description": "Repository name of the base commit" }, "headRef": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the head commit" }, "baseRef": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the base commit" }, "prNumber": { "type": "integer", "nullable": true, "description": "Pull request number" } }, "required": [ "baseRef", "baseRepoName", "baseSha", "headRef", "headRepoName", "headSha", "prNumber", "provider" ], "nullable": true, "description": "Version control details of the build. Null when the build has none" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the build, in uppercase" }, "projectId": { "type": "string", "description": "ID of the project the build belongs to" }, "projectSlug": { "type": "string", "description": "Slug of the project the build belongs to" }, "buildConfiguration": { "type": "string", "nullable": true, "description": "Name of the build configuration, such as Release" }, "isInstallable": { "type": "boolean", "description": "Whether the build can be installed" }, "installUrl": { "type": "string", "format": "uri", "nullable": true, "description": "URL to install the build. Null when the build isn't installable" }, "installUrlExpiresAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When installUrl expires (ISO 8601)" }, "downloadCount": { "type": "integer", "description": "Number of times the build was downloaded" }, "releaseNotes": { "type": "string", "nullable": true, "description": "Release notes uploaded with the build" }, "installGroups": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Install groups the build belongs to" }, "isCodeSignatureValid": { "type": "boolean", "nullable": true, "description": "Whether the build's code signature is valid. Only set for Apple builds" }, "profileName": { "type": "string", "nullable": true, "description": "Name of the provisioning profile. Only set for Apple builds" }, "codesigningType": { "type": "string", "nullable": true, "description": "Code signing type, such as development or app-store. Only set for Apple builds" } }, "required": [ "appInfo", "buildConfiguration", "buildId", "codesigningType", "downloadCount", "gitInfo", "installGroups", "installUrl", "installUrlExpiresAt", "isCodeSignatureValid", "isInstallable", "platform", "profileName", "projectId", "projectSlug", "releaseNotes", "state" ] }, "IntegrationChannelValidationResponse": { "type": "object", "properties": { "detail": { "type": "string", "description": "Why the channel couldn't be validated, such as an unsupported provider" }, "valid": { "type": "boolean", "description": "Whether the channel exists in the integration's workspace" } }, "required": [ "valid" ] }, "IntegrationChannelsResponse": { "type": "object", "properties": { "warning": { "type": "string", "description": "Why the channels couldn't be listed, such as an unsupported provider" }, "results": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the channel in the provider" }, "name": { "type": "string", "description": "Name of the channel" }, "display": { "type": "string", "description": "Name to show for the channel, such as #general" }, "type": { "type": "string", "description": "Type of the channel in the provider, such as public, private or text" } }, "required": [ "display", "id", "name", "type" ] }, "description": "Channels of the integration's workspace" } }, "required": [ "results" ] }, "IntegrationIssueConfigResponse": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the integration" }, "name": { "type": "string", "description": "Name of the integration, usually the connected account or workspace" }, "icon": { "type": "string", "nullable": true, "description": "URL of the connected account's icon" }, "domainName": { "type": "string", "nullable": true, "description": "Domain of the connected account, such as github.com/example-org" }, "accountType": { "type": "string", "nullable": true, "description": "Type of the connected account, such as Organization or User" }, "scopes": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Permission scopes granted to the integration" }, "outOfDate": { "type": "boolean", "nullable": true, "description": "Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model" }, "missingFeatures": { "type": "array", "items": { "type": "object", "description": "A feature the installation can no longer support, named by the permission\ntier it falls short of, so the update-permissions modal can list them.", "properties": { "key": { "type": "string", "description": "Key of the missing feature" }, "description": { "type": "string", "description": "Description of the missing feature" } }, "required": [ "description", "key" ] }, "nullable": true, "description": "Features the installation can't support because of missing permissions. Null for providers without a permissions model" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "description": "Integration provider details" }, "linkIssueConfig": { "type": "array", "items": { "type": "object", "description": "JSON form field returned by an issue integration.", "properties": { "name": { "type": "string", "description": "Name of the form field" }, "label": { "type": "string", "description": "Label of the form field" }, "type": { "type": "string", "description": "Type of the form field, such as string, text, select or boolean" }, "default": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Default value of the field" }, "defaultValue": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Default value of the field, for integrations that use this key" }, "required": { "type": "boolean", "description": "Whether the field is required" }, "choices": { "type": "array", "items": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "minLength": 2, "maxLength": 2 }, "description": "Options of a select field, as [value, label] pairs" }, "url": { "type": "string", "description": "URL that returns the field's options as the user types" }, "updatesForm": { "type": "boolean", "description": "Whether changing the field reloads the form" }, "multiple": { "type": "boolean", "description": "Whether the field accepts more than one value" }, "autosize": { "type": "boolean", "description": "Whether a text field grows with its content" }, "maxRows": { "type": "integer", "description": "Maximum number of rows of a text field" }, "maxLength": { "type": "integer", "description": "Maximum length of the value" }, "help": { "type": "string", "description": "Help text of the field" }, "placeholder": { "type": "string", "description": "Placeholder of the field" }, "prefetch": { "type": "boolean", "description": "Whether the field's options load before the user types" }, "dependsOn": { "type": "array", "items": { "type": "string" }, "description": "Names of the fields whose values the field's options depend on" } }, "required": [ "label", "name", "type" ] }, "description": "Form fields for linking an existing external issue. Only set when action is link" }, "createIssueConfig": { "type": "array", "items": { "type": "object", "description": "JSON form field returned by an issue integration.", "properties": { "name": { "type": "string", "description": "Name of the form field" }, "label": { "type": "string", "description": "Label of the form field" }, "type": { "type": "string", "description": "Type of the form field, such as string, text, select or boolean" }, "default": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Default value of the field" }, "defaultValue": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Default value of the field, for integrations that use this key" }, "required": { "type": "boolean", "description": "Whether the field is required" }, "choices": { "type": "array", "items": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "minLength": 2, "maxLength": 2 }, "description": "Options of a select field, as [value, label] pairs" }, "url": { "type": "string", "description": "URL that returns the field's options as the user types" }, "updatesForm": { "type": "boolean", "description": "Whether changing the field reloads the form" }, "multiple": { "type": "boolean", "description": "Whether the field accepts more than one value" }, "autosize": { "type": "boolean", "description": "Whether a text field grows with its content" }, "maxRows": { "type": "integer", "description": "Maximum number of rows of a text field" }, "maxLength": { "type": "integer", "description": "Maximum length of the value" }, "help": { "type": "string", "description": "Help text of the field" }, "placeholder": { "type": "string", "description": "Placeholder of the field" }, "prefetch": { "type": "boolean", "description": "Whether the field's options load before the user types" }, "dependsOn": { "type": "array", "items": { "type": "string" }, "description": "Names of the fields whose values the field's options depend on" } }, "required": [ "label", "name", "type" ] }, "description": "Form fields for creating an external issue. Only set when action is create" } }, "required": [ "accountType", "domainName", "icon", "id", "missingFeatures", "name", "outOfDate", "provider", "scopes", "status" ] }, "IntegrationRepositoriesResponse": { "type": "object", "properties": { "repos": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the repository" }, "identifier": { "type": "string", "description": "Identifier of the repository in the provider, such as owner/name" }, "isInstalled": { "type": "boolean", "description": "Whether the repository is already added to Sentry" }, "defaultBranch": { "type": "string", "nullable": true, "description": "Default branch of the repository" }, "externalId": { "type": "string", "description": "ID of the repository in the provider" }, "url": { "type": "string", "nullable": true, "description": "URL of the repository" } }, "required": [ "defaultBranch", "externalId", "identifier", "isInstalled", "name", "url" ] }, "description": "Repositories the integration can access" }, "searchable": { "type": "boolean", "description": "Whether the provider supports searching repositories with the search query parameter" } }, "required": [ "repos" ] }, "IssueEventDetailsResponse": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "nullable": true, "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateReceived": { "type": "string", "format": "date-time", "nullable": true, "description": "When Sentry received the event (ISO 8601)" }, "size": { "type": "integer", "nullable": true, "description": "Size of the event payload in bytes" }, "entries": { "type": "array", "items": {}, "description": "Event interfaces, such as exception, breadcrumbs and request, each with a type and data" }, "dist": { "type": "string", "nullable": true, "description": "Distribution of the release the event was sent with" }, "packages": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Modules loaded when the event occurred, keyed by module name with their versions" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type, such as error, default or transaction" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "occurrence": { "anyOf": [ { "type": "object", "description": "A metric issue occurrence. `evidenceData` describes the detector and query that fired.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "enum": [ 8001 ], "type": "integer", "description": "Group type ID of metric issues, always 8001" }, "evidenceData": { "type": "object", "properties": { "detectorId": { "type": "integer", "description": "ID of the detector that created the occurrence" }, "alertId": { "type": "integer", "nullable": true, "description": "ID of the metric alert rule the detector replaces. Null when there's none" }, "value": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Metric value the anomaly detection model scored" }, "sourceId": { "type": "string", "description": "ID of the data source that produced the value" }, "subscriptionId": { "type": "string", "description": "ID of the query subscription that produced the value" }, "timestamp": { "type": "string", "description": "When the value was measured" } }, "required": [ "sourceId", "subscriptionId", "timestamp", "value" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Metric value that triggered the detector, or the anomaly detection result for dynamic detectors" }, "dataPacketSourceId": { "type": "string", "description": "ID of the query subscription that sent the data" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the detector condition" }, "type": { "type": "string", "description": "Type of the condition, such as gt, lt or anomaly_detection" }, "comparison": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "sensitivity": { "enum": [ "low", "medium", "high" ], "type": "string", "description": "How sensitive the anomaly detection is" }, "seasonality": { "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "type": "string", "description": "Seasonality the anomaly detection model uses" }, "thresholdType": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "Direction of anomalies to detect: 0 above, 1 below, 2 above and below" } }, "required": [ "seasonality", "sensitivity", "thresholdType" ] } ], "description": "Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition" }, "conditionResult": { "type": "integer", "description": "Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions of the detector" }, "config": { "type": "object", "properties": { "detectionType": { "enum": [ "static", "percent", "dynamic" ], "type": "string", "description": "How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection" }, "comparisonDelta": { "type": "integer", "nullable": true, "description": "Time window in seconds that a percent change detector compares with" } }, "required": [ "detectionType" ], "description": "Configuration of the detector" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "type": "string", "description": "Type of the data source, such as snuba_query_subscription" }, "sourceId": { "type": "string", "description": "ID of the source object, such as the query subscription" }, "queryObj": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ], "description": "Query subscription the data source reads" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "description": "Data sources of the detector" } }, "required": [ "alertId", "conditions", "config", "dataPacketSourceId", "dataSources", "detectorId", "value" ], "description": "Detector and query that created the occurrence" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "description": "An issue occurrence of any type. `evidenceData` keys are camelCase.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "type": "integer", "description": "Group type ID of the occurrence" }, "evidenceData": { "type": "object", "additionalProperties": {}, "description": "Data of the occurrence. Its keys depend on the group type" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise" }, "_meta": { "type": "object", "additionalProperties": {}, "description": "Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" }, "name": { "type": "string", "nullable": true, "description": "Name of the user" }, "geo": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Location of the user, with keys such as country_code, city and region" }, "data": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Extra data the SDK sent about the user" } }, "nullable": true, "description": "User context of the event" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query that matches this tag's user, such as user.email:\"user@example.com\". Only set for user tags" }, "key": { "type": "string", "description": "Tag key" }, "value": { "type": "string", "description": "Tag value" } }, "required": [ "key", "value" ] }, "description": "Tags attached to the event" }, "contexts": { "type": "object", "nullable": true, "additionalProperties": { "anyOf": [ { "description": "Application information.\n\n App context describes the application. As opposed to the runtime, this is the actual\n application that was running and carries metadata about the current session.", "type": "object", "additionalProperties": true, "properties": { "app_build": { "description": "Internal build ID as it appears on the platform.", "type": "string", "nullable": true }, "app_identifier": { "description": "Version-independent application identifier, often a dotted bundle ID.", "type": "string", "nullable": true }, "app_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Amount of memory used by the application in bytes." }, "app_name": { "description": "Application name as it appears on the platform.", "type": "string", "nullable": true }, "app_start_time": { "description": "Start time of the app.\n\n Formatted UTC timestamp when the user started the application.", "type": "string", "nullable": true }, "app_version": { "description": "Application version as it appears on the platform.", "type": "string", "nullable": true }, "build_type": { "description": "String identifying the kind of build. For example, `testflight`.", "type": "string", "nullable": true }, "device_app_hash": { "description": "Application-specific device identifier.", "type": "string", "nullable": true }, "in_foreground": { "description": "A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user.", "type": "boolean", "nullable": true }, "view_names": { "description": "The names of the currently visible views.", "type": "array", "items": { "type": "string", "nullable": true }, "nullable": true }, "type": { "type": "string", "enum": [ "app" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Web browser information.", "type": "object", "additionalProperties": true, "properties": { "name": { "description": "Display name of the browser application.", "type": "string", "nullable": true }, "version": { "description": "Version string of the browser.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "browser" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "default" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true }, { "description": "Device information.\n\n Device context describes the device that caused the event. This is most appropriate for mobile\n applications.", "type": "object", "additionalProperties": true, "properties": { "arch": { "description": "Native cpu architecture of the device.", "type": "string", "nullable": true }, "battery_level": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Current battery level in %.\n\n If the device has a battery, this can be a floating point value defining the battery level\n (in the range 0-100)." }, "battery_status": { "description": "Status of the device's battery.\n\n For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`.", "type": "string", "nullable": true }, "boot_time": { "description": "Indicator when the device was booted.", "type": "string", "nullable": true }, "brand": { "description": "Brand of the device.", "type": "string", "nullable": true }, "charging": { "description": "Whether the device was charging or not.", "type": "boolean", "nullable": true }, "cpu_description": { "description": "CPU description.\n\n For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz.", "type": "string", "nullable": true }, "device_type": { "description": "Kind of device the application is running on.\n\n For example, `Unknown`, `Handheld`, `Console`, `Desktop`.", "type": "string", "nullable": true }, "device_unique_identifier": { "description": "Unique device identifier.", "type": "string", "nullable": true }, "external_free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Free size of the attached external storage in bytes (eg: android SDK card)." }, "external_storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total size of the attached external storage in bytes (eg: android SDK card)." }, "family": { "description": "Family of the device model.\n\n This is usually the common part of model names across generations. For instance, `iPhone`\n would be a reasonable family, so would be `Samsung Galaxy`.", "type": "string", "nullable": true }, "free_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is still available in bytes." }, "free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much storage is free in bytes." }, "locale": { "description": "ISO 639-1 code of the locale the device is set to.", "type": "string", "nullable": true }, "low_memory": { "description": "Whether the device was low on memory.", "type": "boolean", "nullable": true }, "manufacturer": { "description": "Manufacturer of the device.", "type": "string", "nullable": true }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total memory available in bytes." }, "model": { "description": "Device model.\n\n This, for example, can be `Samsung Galaxy S3`.", "type": "string", "nullable": true }, "model_id": { "description": "Device model (internal identifier).\n\n An internal hardware revision to identify the device exactly.", "type": "string", "nullable": true }, "name": { "description": "Name of the device.", "type": "string", "nullable": true }, "online": { "description": "Whether the device was online or not.", "type": "boolean", "nullable": true }, "orientation": { "description": "Current screen orientation.\n\n This can be a string `portrait` or `landscape` to define the orientation of a device.", "type": "string", "nullable": true }, "processor_count": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Number of \"logical processors\".\n\n For example, 8." }, "processor_frequency": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Processor frequency in MHz.\n\n Note that the actual CPU frequency might vary depending on current load and\n power conditions, especially on low-powered devices like phones and laptops." }, "screen_density": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Device screen density." }, "screen_dpi": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Screen density as dots-per-inch." }, "screen_height_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Height of the screen in pixels." }, "screen_resolution": { "description": "Device screen resolution.\n\n (e.g.: 800x600, 3040x1444)", "type": "string", "nullable": true }, "screen_width_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Width of the screen in pixels." }, "simulator": { "description": "Simulator/prod indicator.", "type": "boolean", "nullable": true }, "storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total storage size of the device in bytes." }, "supports_accelerometer": { "description": "Whether the accelerometer is available on the device.", "type": "boolean", "nullable": true }, "supports_audio": { "description": "Whether audio is available on the device.", "type": "boolean", "nullable": true }, "supports_gyroscope": { "description": "Whether the gyroscope is available on the device.", "type": "boolean", "nullable": true }, "supports_location_service": { "description": "Whether location support is available on the device.", "type": "boolean", "nullable": true }, "supports_vibration": { "description": "Whether vibration is available on the device.", "type": "boolean", "nullable": true }, "timezone": { "description": "Timezone of the device.", "type": "string", "nullable": true }, "usable_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is usable for the app in bytes." }, "uuid": { "description": "UUID of the device.", "type": "string", "format": "uuid", "nullable": true }, "type": { "type": "string", "enum": [ "device" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "GPU information.\n\n Example:\n\n ```json\n \"gpu\": {\n \"name\": \"AMD Radeon Pro 560\",\n \"vendor_name\": \"Apple\",\n \"memory_size\": 4096,\n \"api_type\": \"Metal\",\n \"multi_threaded_rendering\": true,\n \"version\": \"Metal\",\n \"npot_support\": \"Full\"\n }\n ```", "type": "object", "additionalProperties": true, "properties": { "api_type": { "description": "The device low-level API type.\n\n Examples: `\"Apple Metal\"` or `\"Direct3D11\"`", "type": "string", "nullable": true }, "graphics_shader_level": { "description": "Approximate \"shader capability\" level of the graphics device.\n\n For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown)", "type": "string", "nullable": true }, "id": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "The PCI identifier of the graphics device." }, "max_texture_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Largest size of a texture that is supported by the graphics hardware.\n\n For Example: 16384" }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The total GPU memory available in Megabytes." }, "multi_threaded_rendering": { "description": "Whether the GPU has multi-threaded rendering or not.", "type": "boolean", "nullable": true }, "name": { "description": "The name of the graphics device.", "type": "string", "nullable": true }, "npot_support": { "description": "The Non-Power-Of-Two support.", "type": "string", "nullable": true }, "supports_compute_shaders": { "description": "Whether compute shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_draw_call_instancing": { "description": "Whether GPU draw call instancing is supported.", "type": "boolean", "nullable": true }, "supports_geometry_shaders": { "description": "Whether geometry shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_ray_tracing": { "description": "Whether ray tracing is available on the device.", "type": "boolean", "nullable": true }, "vendor_id": { "description": "The PCI vendor identifier of the graphics device.", "type": "string", "nullable": true }, "vendor_name": { "description": "The vendor name as reported by the graphics device.", "type": "string", "nullable": true }, "version": { "description": "The Version of the graphics device.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "gpu" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Monitor information.", "type": "object", "additionalProperties": true, "properties": { "type": { "type": "string", "enum": [ "monitor" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Operating system information.\n\n OS context describes the operating system on which the event was created. In web contexts, this\n is the operating system of the browser (generally pulled from the User-Agent string).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Internal build number of the operating system.", "type": "string", "nullable": true }, "kernel_version": { "description": "Current kernel version.\n\n This is typically the entire output of the `uname` syscall.", "type": "string", "nullable": true }, "name": { "description": "Name of the operating system.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed operating system info.\n\n An unprocessed description string obtained by the operating system. For some well-known\n runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are\n not explicitly given.", "type": "string", "nullable": true }, "rooted": { "description": "Indicator if the OS is rooted (mobile mostly).", "type": "boolean", "nullable": true }, "version": { "description": "Version of the operating system.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "os" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "OpenTelemetry Context\n\n If an event has this context, it was generated from an OpenTelemetry signal (trace, metric, log).", "type": "object", "additionalProperties": true, "properties": { "attributes": { "description": "Attributes of the OpenTelemetry span that maps to a Sentry event.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "resource": { "description": "Information about an OpenTelemetry resource.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "type": { "type": "string", "enum": [ "otel" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Runtime information.\n\n Runtime context describes a runtime in more detail. Typically, this context is present in\n `contexts` multiple times if multiple runtimes are involved (for instance, if you have a\n JavaScript application running on top of JVM).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Application build string, if it is separate from the version.", "type": "string", "nullable": true }, "name": { "description": "Runtime name.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed runtime info.\n\n An unprocessed description string obtained by the runtime. For some well-known runtimes,\n Sentry will attempt to parse `name` and `version` from this string, if they are not\n explicitly given.", "type": "string", "nullable": true }, "version": { "description": "Runtime version string.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "runtime" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Trace context", "type": "object", "additionalProperties": true, "properties": { "client_sample_rate": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The client-side sample rate as reported in the envelope's `trace.sample_rate` header.\n\n The server takes this field from envelope headers and writes it back into the event. Clients\n should not ever send this value." }, "exclusive_time": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The amount of time in milliseconds spent in this transaction span,\n excluding its immediate child spans." }, "op": { "description": "Span type (see `OperationType` docs).", "type": "string", "nullable": true }, "origin": { "description": "The origin of the trace indicates what created the trace (see [OriginType] docs).", "type": "string", "nullable": true }, "parent_span_id": { "description": "The ID of the span enclosing this span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "sampled": { "description": "Track whether the trace connected to this event has been sampled entirely.\n\n This flag only applies to events with [`Error`] type that have an associated dynamic sampling context.", "type": "boolean", "nullable": true }, "span_id": { "description": "The ID of the span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "status": { "description": "Whether the trace failed or succeeded. Currently only used to indicate status of individual\n transactions.", "nullable": true, "type": "string", "enum": [ "ok", "cancelled", "unknown", "invalid_argument", "deadline_exceeded", "not_found", "already_exists", "permission_denied", "resource_exhausted", "failed_precondition", "aborted", "out_of_range", "unimplemented", "internal_error", "unavailable", "data_loss", "unauthenticated", null ] }, "trace_id": { "description": "The trace ID.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "type": { "type": "string", "enum": [ "trace" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "unity" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true } ] }, "description": "Contexts of the event, such as device, os, browser and runtime, keyed by alias" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the SDK that sent the event, such as sentry.python" }, "version": { "type": "string", "nullable": true, "description": "Version of the SDK" } }, "required": [ "name", "version" ], "nullable": true, "description": "SDK that sent the event" }, "context": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Additional data sent with the event in its extra field" }, "errors": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Type of the processing error, such as invalid_data or js_no_source" }, "message": { "type": "string", "description": "Human-readable message of the error" }, "data": { "type": "object", "description": "Details of the error, such as the name of the invalid field. Other keys depend on the error type", "properties": { "name": { "type": "string", "nullable": true, "description": "Affected key or path in the event" }, "message": { "type": "string", "description": "Details of the error from the processor that hit it" }, "url": { "type": "string", "description": "URL that couldn't be fetched, such as a source file" }, "image_path": { "type": "string", "description": "Path of the debug image the error is about" }, "image_name": { "type": "string", "description": "Name of the debug image the error is about" }, "image_uuid": { "type": "string", "description": "Debug ID of the image the error is about" }, "image_arch": { "type": "string", "description": "CPU architecture of the image the error is about" }, "symbolicator_type": { "type": "string", "description": "Error type Symbolicator reported, such as missing_source" }, "source": { "type": "string", "description": "Source file or URL the error is about" }, "sourcemap": { "type": "string", "description": "Source map the error is about" }, "row": { "type": "integer", "description": "Line of the location that couldn't be mapped" }, "column": { "type": "integer", "description": "Column of the location that couldn't be mapped" }, "sdk_time": { "type": "string", "description": "Time the SDK reported, for clock drift errors" }, "server_time": { "type": "string", "description": "Time the server received the event, for clock drift errors" } } } }, "required": [ "data", "message", "type" ] }, "description": "Errors Sentry found while processing the event" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "fingerprints": { "type": "array", "items": { "type": "string" }, "description": "Grouping hashes calculated for the event" }, "groupingConfig": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the grouping config, such as newstyle:2026-01-20" }, "enhancements": { "type": "string", "description": "Stack trace rules of the project, as an encoded string" } }, "required": [ "enhancements", "id" ], "description": "Grouping configuration used to group the event" }, "startTimestamp": { "type": "number", "format": "double", "description": "When the transaction started, as a Unix timestamp in seconds" }, "endTimestamp": { "type": "number", "format": "double", "description": "When the transaction ended, as a Unix timestamp in seconds" }, "measurements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] }, "nullable": true, "description": "Measurements recorded for the transaction, such as web vitals, keyed by name" }, "breakdowns": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] } }, "nullable": true, "description": "Span operation breakdowns for the transaction, keyed by breakdown name" }, "release": { "type": "object", "properties": { "id": { "type": "integer", "description": "Release ID" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the release was created (ISO 8601)" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "version": { "type": "string", "nullable": true, "description": "Version of the release" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" } }, "nullable": true, "description": "Release the event was sent with. Null when the event has no release" }, "userReport": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the feedback" }, "eventID": { "type": "string", "description": "ID of the event the feedback is attached to" }, "name": { "type": "string", "nullable": true, "description": "Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user who submitted the feedback. Falls back to the event user's email address" }, "comments": { "type": "string", "description": "Comments the user submitted" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the feedback was submitted (ISO 8601)" }, "user": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the user, as sent with the event" }, "username": { "type": "string", "nullable": true, "description": "Username sent with the event" }, "email": { "type": "string", "nullable": true, "description": "Email address sent with the event" }, "name": { "type": "string", "nullable": true, "description": "Display name of the user: the name, email address or username sent with the event, whichever is set first" }, "ipAddress": { "type": "string", "nullable": true, "description": "IP address sent with the event" }, "avatarUrl": { "type": "string", "nullable": true, "description": "Gravatar URL for the user's email address" } }, "required": [ "avatarUrl", "email", "id", "ipAddress", "name", "username" ], "nullable": true, "description": "User recorded on the feedback's event. Null when the event isn't found or has no user" }, "event": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the event the feedback is attached to" }, "eventID": { "type": "string", "description": "ID of the event the feedback is attached to" } }, "required": [ "eventID", "id" ], "description": "Event the feedback is attached to" } }, "required": [ "comments", "dateCreated", "email", "event", "eventID", "id", "name", "user" ], "nullable": true, "description": "User feedback submitted for the event. Null when there's none" }, "sdkUpdates": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggested updates for the SDK that sent the event" }, "resolvedWith": { "type": "array", "items": { "type": "string" }, "description": "How the event's stack frames were resolved during processing, such as which source map lookup method was used" }, "nextEventID": { "type": "string", "nullable": true, "description": "ID of the next event in the issue. Null for the latest event or when adjacentEvents is collapsed" }, "previousEventID": { "type": "string", "nullable": true, "description": "ID of the previous event in the issue. Null for the first event or when adjacentEvents is collapsed" }, "formatted": { "type": "object", "description": "The ``formatted`` field the mixin adds to a response when ``?llmFormat`` is requested.\n\n``content`` is text for the text formats and a serialized JSON object for ``json``, so the\nresponse shape is the same whichever format a caller asks for.", "properties": { "format": { "enum": [ "markdown", "xml", "json" ], "type": "string", "description": "Format of the content: markdown, xml or json" }, "content": { "type": "string", "description": "Response rendered in the requested format, as text" } }, "required": [ "content", "format" ] } }, "required": [ "_meta", "context", "contexts", "dateReceived", "dist", "entries", "errors", "eventID", "groupID", "id", "location", "message", "metadata", "nextEventID", "occurrence", "packages", "platform", "previousEventID", "projectID", "release", "resolvedWith", "sdk", "sdkUpdates", "size", "tags", "title", "type", "user", "userReport" ] }, "IssueIntegrationsResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the integration" }, "name": { "type": "string", "description": "Name of the integration, usually the connected account or workspace" }, "icon": { "type": "string", "nullable": true, "description": "URL of the connected account's icon" }, "domainName": { "type": "string", "nullable": true, "description": "Domain of the connected account, such as github.com/example-org" }, "accountType": { "type": "string", "nullable": true, "description": "Type of the connected account, such as Organization or User" }, "scopes": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Permission scopes granted to the integration" }, "outOfDate": { "type": "boolean", "nullable": true, "description": "Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model" }, "missingFeatures": { "type": "array", "items": { "type": "object", "description": "A feature the installation can no longer support, named by the permission\ntier it falls short of, so the update-permissions modal can list them.", "properties": { "key": { "type": "string", "description": "Key of the missing feature" }, "description": { "type": "string", "description": "Description of the missing feature" } }, "required": [ "description", "key" ] }, "nullable": true, "description": "Features the installation can't support because of missing permissions. Null for providers without a permissions model" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "description": "Integration provider details" }, "externalIssues": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the link between the issue and the external issue" }, "key": { "type": "string", "description": "Key of the external issue in the provider, such as PROJ-123" }, "url": { "type": "string", "description": "URL of the external issue" }, "title": { "type": "string", "nullable": true, "description": "Title of the external issue" }, "description": { "type": "string", "nullable": true, "description": "Description of the external issue" }, "displayName": { "type": "string", "description": "Name to show for the external issue, such as owner/repo#1. Empty when the integration doesn't set one" } }, "required": [ "description", "displayName", "id", "key", "title", "url" ] }, "description": "External issues of this integration linked to the issue" } }, "required": [ "accountType", "domainName", "externalIssues", "icon", "id", "missingFeatures", "name", "outOfDate", "provider", "scopes", "status" ] } }, "IssueLinkConflict": { "type": "object", "description": "DRF's standard error-body shape: `{\"detail\": str}`.\n\nUse in `Response[T] | Response[DetailResponse]` annotations on endpoints\nwhose inline error returns are exactly `Response({\"detail\": \"...\"}, status=4xx)`.\nEndpoints whose error bodies have richer or different shapes should\ndeclare their own local TypedDicts instead.", "properties": { "detail": { "type": "string" } }, "required": [ "detail" ] }, "LatestBaseSnapshotResponse": { "type": "object", "properties": { "head_artifact_id": { "type": "string", "description": "ID of the build the snapshot belongs to" }, "project_id": { "type": "string", "description": "ID of the project" }, "project_slug": { "type": "string", "description": "Slug of the project" }, "app_id": { "type": "string", "nullable": true, "description": "App identifier of the build" }, "image_count": { "type": "integer", "description": "Number of images in the snapshot" }, "images": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "description": "Content hash of the image" }, "display_name": { "type": "string", "nullable": true, "description": "Display name of the image" }, "group": { "type": "string", "nullable": true, "description": "Group the image belongs to" }, "image_file_name": { "type": "string", "description": "File name of the image, which identifies it within the snapshot" }, "width": { "type": "integer", "description": "Width of the image in pixels" }, "height": { "type": "integer", "description": "Height of the image in pixels" }, "canvas_theme": { "enum": [ "light", "dark", null ], "type": "string", "nullable": true, "description": "Theme the image was rendered with: light or dark" }, "image_url": { "type": "string", "description": "API URL to download the image" } } }, "description": "Images in the snapshot" }, "diff_threshold": { "type": "number", "format": "double", "nullable": true, "description": "Fraction of changed pixels, from 0 to 1, above which an image counts as changed. Images can override it" }, "date_added": { "type": "string", "format": "date-time", "description": "When the build was uploaded (ISO 8601)" }, "vcs_info": { "type": "object", "properties": { "head_sha": { "type": "string", "nullable": true, "description": "Commit SHA of the build" }, "base_sha": { "type": "string", "nullable": true, "description": "Commit SHA of the base. Empty or null for base snapshots" }, "head_ref": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the build" }, "base_ref": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the base" }, "head_repo_name": { "type": "string", "nullable": true, "description": "Repository name of the build" }, "pr_number": { "type": "integer", "nullable": true, "description": "Pull request number" } }, "description": "Version control details of the build" } } }, "LatestInstallableBuildResponse": { "type": "object", "properties": { "latestArtifact": { "type": "object", "properties": { "buildId": { "type": "string", "description": "ID of the build" }, "state": { "enum": [ "UPLOADING", "UPLOADED", "PROCESSED", "FAILED" ], "type": "string", "description": "State of the build" }, "appInfo": { "type": "object", "properties": { "appId": { "type": "string", "nullable": true, "description": "App identifier of the build" }, "name": { "type": "string", "nullable": true, "description": "App name" }, "version": { "type": "string", "nullable": true, "description": "Version of the build" }, "buildNumber": { "type": "integer", "nullable": true, "description": "Build number" }, "artifactType": { "enum": [ "XCARCHIVE", "AAB", "APK", null ], "type": "string", "nullable": true, "description": "Type of the build file" }, "dateAdded": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was uploaded (ISO 8601)" }, "dateBuilt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was built (ISO 8601)" } }, "required": [ "appId", "artifactType", "buildNumber", "dateAdded", "dateBuilt", "name", "version" ], "description": "App details of the build" }, "gitInfo": { "type": "object", "properties": { "headSha": { "type": "string", "nullable": true, "description": "Commit SHA of the build" }, "baseSha": { "type": "string", "nullable": true, "description": "Commit SHA of the base the build is compared against" }, "provider": { "type": "string", "nullable": true, "description": "Version control provider, such as github" }, "headRepoName": { "type": "string", "nullable": true, "description": "Repository name of the head commit" }, "baseRepoName": { "type": "string", "nullable": true, "description": "Repository name of the base commit" }, "headRef": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the head commit" }, "baseRef": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the base commit" }, "prNumber": { "type": "integer", "nullable": true, "description": "Pull request number" } }, "required": [ "baseRef", "baseRepoName", "baseSha", "headRef", "headRepoName", "headSha", "prNumber", "provider" ], "nullable": true, "description": "Version control details of the build. Null when the build has none" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the build, in uppercase" }, "projectId": { "type": "string", "description": "ID of the project the build belongs to" }, "projectSlug": { "type": "string", "description": "Slug of the project the build belongs to" }, "buildConfiguration": { "type": "string", "nullable": true, "description": "Name of the build configuration, such as Release" }, "isInstallable": { "type": "boolean", "description": "Whether the build can be installed" }, "installUrl": { "type": "string", "format": "uri", "nullable": true, "description": "URL to install the build. Null when the build isn't installable" }, "installUrlExpiresAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When installUrl expires (ISO 8601)" }, "downloadCount": { "type": "integer", "description": "Number of times the build was downloaded" }, "releaseNotes": { "type": "string", "nullable": true, "description": "Release notes uploaded with the build" }, "installGroups": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Install groups the build belongs to" }, "isCodeSignatureValid": { "type": "boolean", "nullable": true, "description": "Whether the build's code signature is valid. Only set for Apple builds" }, "profileName": { "type": "string", "nullable": true, "description": "Name of the provisioning profile. Only set for Apple builds" }, "codesigningType": { "type": "string", "nullable": true, "description": "Code signing type, such as development or app-store. Only set for Apple builds" } }, "required": [ "appInfo", "buildConfiguration", "buildId", "codesigningType", "downloadCount", "gitInfo", "installGroups", "installUrl", "installUrlExpiresAt", "isCodeSignatureValid", "isInstallable", "platform", "profileName", "projectId", "projectSlug", "releaseNotes", "state" ], "nullable": true, "description": "Latest installable build that matches the filters. Null when there's none" }, "currentArtifact": { "type": "object", "properties": { "buildId": { "type": "string", "description": "ID of the build" }, "state": { "enum": [ "UPLOADING", "UPLOADED", "PROCESSED", "FAILED" ], "type": "string", "description": "State of the build" }, "appInfo": { "type": "object", "properties": { "appId": { "type": "string", "nullable": true, "description": "App identifier of the build" }, "name": { "type": "string", "nullable": true, "description": "App name" }, "version": { "type": "string", "nullable": true, "description": "Version of the build" }, "buildNumber": { "type": "integer", "nullable": true, "description": "Build number" }, "artifactType": { "enum": [ "XCARCHIVE", "AAB", "APK", null ], "type": "string", "nullable": true, "description": "Type of the build file" }, "dateAdded": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was uploaded (ISO 8601)" }, "dateBuilt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the build was built (ISO 8601)" } }, "required": [ "appId", "artifactType", "buildNumber", "dateAdded", "dateBuilt", "name", "version" ], "description": "App details of the build" }, "gitInfo": { "type": "object", "properties": { "headSha": { "type": "string", "nullable": true, "description": "Commit SHA of the build" }, "baseSha": { "type": "string", "nullable": true, "description": "Commit SHA of the base the build is compared against" }, "provider": { "type": "string", "nullable": true, "description": "Version control provider, such as github" }, "headRepoName": { "type": "string", "nullable": true, "description": "Repository name of the head commit" }, "baseRepoName": { "type": "string", "nullable": true, "description": "Repository name of the base commit" }, "headRef": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the head commit" }, "baseRef": { "type": "string", "pattern": "^(?:(?!/)(?!.*/$)(?!.*\\.$)(?!.*//)(?!.*\\.\\.)(?!(?:.*/)?\\.)(?!.*\\.lock(?:/|$))(?!.*@\\{)(?!@$)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+)?$", "maxLength": 255, "nullable": true, "description": "Branch or ref of the base commit" }, "prNumber": { "type": "integer", "nullable": true, "description": "Pull request number" } }, "required": [ "baseRef", "baseRepoName", "baseSha", "headRef", "headRepoName", "headSha", "prNumber", "provider" ], "nullable": true, "description": "Version control details of the build. Null when the build has none" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the build, in uppercase" }, "projectId": { "type": "string", "description": "ID of the project the build belongs to" }, "projectSlug": { "type": "string", "description": "Slug of the project the build belongs to" }, "buildConfiguration": { "type": "string", "nullable": true, "description": "Name of the build configuration, such as Release" }, "isInstallable": { "type": "boolean", "description": "Whether the build can be installed" }, "installUrl": { "type": "string", "format": "uri", "nullable": true, "description": "URL to install the build. Null when the build isn't installable" }, "installUrlExpiresAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When installUrl expires (ISO 8601)" }, "downloadCount": { "type": "integer", "description": "Number of times the build was downloaded" }, "releaseNotes": { "type": "string", "nullable": true, "description": "Release notes uploaded with the build" }, "installGroups": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Install groups the build belongs to" }, "isCodeSignatureValid": { "type": "boolean", "nullable": true, "description": "Whether the build's code signature is valid. Only set for Apple builds" }, "profileName": { "type": "string", "nullable": true, "description": "Name of the provisioning profile. Only set for Apple builds" }, "codesigningType": { "type": "string", "nullable": true, "description": "Code signing type, such as development or app-store. Only set for Apple builds" } }, "required": [ "appInfo", "buildConfiguration", "buildId", "codesigningType", "downloadCount", "gitInfo", "installGroups", "installUrl", "installUrlExpiresAt", "isCodeSignatureValid", "isInstallable", "platform", "profileName", "projectId", "projectSlug", "releaseNotes", "state" ], "nullable": true, "description": "Build that matches the given buildVersion. Null when buildVersion isn't given or no build matches" } }, "required": [ "currentArtifact", "latestArtifact" ] }, "Layout": { "type": "object", "description": "Layout settings for the source. This is required for HTTP, GCS, and S3 sources.\n\n**`type`** ***(string)*** - The layout of the folder structure. The options are:\n- `native` - Platform-Specific (SymStore / GDB / LLVM)\n- `symstore` - Microsoft SymStore\n- `symstore_index2` - Microsoft SymStore (with index2.txt)\n- `ssqp` - Microsoft SSQP\n- `unified` - Unified Symbol Server Layout\n- `debuginfod` - debuginfod\n- `nnsymstore` - Nintendo Symbol Store\n\n**`casing`** ***(string)*** - The layout of the folder structure. The options are:\n- `default` - Default (mixed case)\n- `uppercase` - Uppercase\n- `lowercase` - Lowercase\n\n```json\n{\n \"layout\": {\n \"type\": \"native\"\n \"casing\": \"default\"\n }\n}\n```", "properties": { "type": { "enum": [ "native", "symstore", "symstore_index2", "ssqp", "unified", "debuginfod", "slashsymbols", "nnsymstore" ], "type": "string", "description": "The source's layout type.\n\n* `native`\n* `symstore`\n* `symstore_index2`\n* `ssqp`\n* `unified`\n* `debuginfod`\n* `slashsymbols`\n* `nnsymstore`" }, "casing": { "enum": [ "lowercase", "uppercase", "default" ], "type": "string", "description": "The source's casing rules.\n\n* `lowercase`\n* `uppercase`\n* `default`" } }, "required": [ "casing", "type" ] }, "LinkExternalIssueRequest": { "type": "object", "properties": { "externalIssue": { "type": "string", "description": "The identifier or full URL of the existing external issue to link. URL support depends on the selected integration." }, "repo": { "type": "string", "description": "The repository containing the external issue, in owner/name format. Required by GitHub, GitHub Enterprise, and Bitbucket integrations." }, "comment": { "type": "string", "description": "An optional comment to post to the external issue when linking, if supported by the integration." } }, "required": [ "externalIssue" ] }, "LinkedDashboard": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "field": { "type": "string" }, "dashboard_id": { "type": "string" } }, "required": [ "dashboard_id", "field" ] }, "ListAvailableActionResponse": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Type of the action" }, "handlerGroup": { "type": "string", "description": "Group the action belongs to, such as notification or ticket_creation" }, "configSchema": { "type": "object", "properties": { "$schema": { "type": "string", "description": "URI of the JSON Schema dialect" }, "type": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "JSON type or types the value has" }, "description": { "type": "string", "description": "What the value is" }, "properties": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "object", "description": "Same as the JsonSchemaDocument this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "boolean" } ] }, "description": "Schemas of the object's properties, by property name. false forbids the property" }, "required": { "type": "array", "items": { "type": "string" }, "description": "Properties the object must have" }, "additionalProperties": { "type": "boolean", "description": "Whether the object can have properties that aren't listed" }, "enum": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "boolean" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "description": "Values the value can be" }, "default": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } }, { "type": "object", "additionalProperties": { "type": "string" } }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Value used when none is given" }, "items": { "type": "object", "description": "Schema of the array's items" }, "allOf": { "type": "array", "items": { "type": "object", "description": "Same as the JsonSchemaDocument this is inside. Its fields are left out here so it doesn't repeat forever." }, "description": "Schemas that the value must all match" }, "if": { "type": "object", "description": "Schema that decides whether then applies" }, "then": { "type": "object", "description": "Schema the value must match when if matches" }, "pattern": { "type": "string", "description": "Regular expression the string must match" } }, "description": "JSON schema of the action's config" }, "dataSchema": { "type": "object", "properties": { "$schema": { "type": "string", "description": "URI of the JSON Schema dialect" }, "type": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "JSON type or types the value has" }, "description": { "type": "string", "description": "What the value is" }, "properties": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "object", "description": "Same as the JsonSchemaDocument this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "boolean" } ] }, "description": "Schemas of the object's properties, by property name. false forbids the property" }, "required": { "type": "array", "items": { "type": "string" }, "description": "Properties the object must have" }, "additionalProperties": { "type": "boolean", "description": "Whether the object can have properties that aren't listed" }, "enum": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "boolean" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "description": "Values the value can be" }, "default": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } }, { "type": "object", "additionalProperties": { "type": "string" } }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Value used when none is given" }, "items": { "type": "object", "description": "Schema of the array's items" }, "allOf": { "type": "array", "items": { "type": "object", "description": "Same as the JsonSchemaDocument this is inside. Its fields are left out here so it doesn't repeat forever." }, "description": "Schemas that the value must all match" }, "if": { "type": "object", "description": "Schema that decides whether then applies" }, "then": { "type": "object", "description": "Schema the value must match when if matches" }, "pattern": { "type": "string", "description": "Regular expression the string must match" } }, "description": "JSON schema of the action's data" }, "sentryApp": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the Sentry app" }, "name": { "type": "string", "description": "Name of the Sentry app" }, "installationId": { "type": "string", "description": "ID of the Sentry app installation" }, "installationUuid": { "type": "string", "format": "uuid", "description": "UUID of the Sentry app installation" }, "status": { "enum": [ "unpublished", "published", "internal", "publish_request_inprogress", "deletion_in_progress" ], "type": "string", "description": "Status of the Sentry app" }, "settings": { "type": "object", "required": [ "type", "uri", "required_fields" ], "properties": { "type": { "type": "string", "enum": [ "alert-rule-settings" ], "description": "Type of the element" }, "description": { "type": "string", "maxLength": 140, "minLength": 1, "description": "Text shown above the settings form" }, "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "required_fields": { "type": "array", "minItems": 1, "items": { "anyOf": [ { "type": "object", "required": [ "type", "name", "label" ], "properties": { "type": { "type": "string", "enum": [ "select" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "async": { "type": "boolean", "description": "Whether the field loads its options from uri as the user types" }, "skip_load_on_open": { "type": "boolean", "description": "Whether to skip loading the options from uri when the form opens" }, "multiple": { "type": "boolean", "description": "Whether more than one option can be selected" }, "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "options": { "type": "array", "minItems": 1, "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, each a two-item array" }, "depends_on": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Names of the fields that this field's options depend on" }, "choices": { "type": "array", "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, loaded from options or from uri. Each is a two-item array" }, "defaultValue": { "type": "string", "description": "Value selected by default, from the options loaded from uri" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "text" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "textarea" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } } ] }, "description": "Fields that the user must fill in" }, "optional_fields": { "type": "array", "minItems": 1, "items": { "anyOf": [ { "type": "object", "required": [ "type", "name", "label" ], "properties": { "type": { "type": "string", "enum": [ "select" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "async": { "type": "boolean", "description": "Whether the field loads its options from uri as the user types" }, "skip_load_on_open": { "type": "boolean", "description": "Whether to skip loading the options from uri when the form opens" }, "multiple": { "type": "boolean", "description": "Whether more than one option can be selected" }, "uri": { "type": "string", "format": "uri-reference", "pattern": "^\\/", "description": "Path on the integration's server that Sentry sends requests to" }, "options": { "type": "array", "minItems": 1, "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, each a two-item array" }, "depends_on": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Names of the fields that this field's options depend on" }, "choices": { "type": "array", "items": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } }, "description": "Options to choose from, loaded from options or from uri. Each is a two-item array" }, "defaultValue": { "type": "string", "description": "Value selected by default, from the options loaded from uri" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "text" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } }, { "type": "object", "required": [ "type", "label", "name" ], "properties": { "type": { "type": "string", "enum": [ "textarea" ], "description": "Type of the element" }, "label": { "type": "string", "description": "Label of the form field" }, "name": { "type": "string", "description": "Name of the form field, which keys its value in the submitted form" }, "default": { "type": "string", "enum": [ "issue.title", "issue.description" ], "description": "Issue field that prefills the field" } } } ] }, "description": "Fields that the user can fill in" } }, "description": "Settings form for the action, from the app's alert rule action component" }, "title": { "type": "string", "description": "Title of the app's alert rule action component" } }, "required": [ "id", "installationId", "installationUuid", "name", "status" ], "description": "Sentry app that provides the action. Only set for Sentry app actions" }, "integrations": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the integration" }, "name": { "type": "string", "description": "Name of the integration" }, "services": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the service" }, "name": { "type": "string", "description": "Name of the service" } }, "required": [ "id", "name" ] }, "description": "Services available in the integration, such as PagerDuty services" } }, "required": [ "id", "name" ] }, "description": "Integrations the action can use" }, "services": { "type": "array", "items": { "type": "object", "properties": { "slug": { "type": "string", "description": "Slug of the webhook service" }, "name": { "type": "string", "description": "Name of the webhook service" } }, "required": [ "name", "slug" ] }, "description": "Webhook services the action can send to" }, "disabledReason": { "enum": [ "plan" ], "type": "string", "description": "Why the action can't be used, such as plan. Omitted when it can be used" } }, "required": [ "configSchema", "dataSchema", "handlerGroup", "type" ] } }, "ListClientKeysResponse": { "type": "array", "items": { "type": "object", "description": "This represents a Sentry Project Client Key.", "properties": { "id": { "type": "string", "description": "ID of the client key, same as its public key" }, "name": { "type": "string", "description": "Name of the client key" }, "label": { "type": "string", "description": "Name of the client key, same as name" }, "public": { "type": "string", "nullable": true, "description": "Public key" }, "secret": { "type": "string", "nullable": true, "description": "Secret key" }, "projectId": { "type": "integer", "description": "ID of the project the key belongs to" }, "isActive": { "type": "boolean", "description": "Whether the client key accepts events" }, "rateLimit": { "type": "object", "properties": { "window": { "type": "integer", "description": "Rate limit window in seconds" }, "count": { "type": "integer", "description": "Number of events accepted per window" } }, "required": [ "count", "window" ], "nullable": true, "description": "Rate limit for events sent with the key. Null when there's none" }, "dsn": { "type": "object", "properties": { "secret": { "type": "string", "format": "uri", "description": "DSN that includes the secret key" }, "public": { "type": "string", "format": "uri", "description": "Public DSN to configure SDKs with" }, "csp": { "type": "string", "format": "uri", "description": "Endpoint for Content Security Policy reports" }, "security": { "type": "string", "format": "uri", "description": "Endpoint for security reports" }, "minidump": { "type": "string", "format": "uri", "description": "Endpoint for minidump crash reports" }, "nel": { "type": "string", "format": "uri", "description": "Endpoint for Network Error Logging reports" }, "unreal": { "type": "string", "format": "uri", "description": "Endpoint for Unreal Engine crash reports" }, "crons": { "type": "string", "format": "uri", "description": "Endpoint for cron monitor check-ins" }, "cdn": { "type": "string", "format": "uri", "description": "URL of the JavaScript SDK Loader script" }, "playstation": { "type": "string", "format": "uri", "description": "Endpoint for PlayStation crash reports" }, "integration": { "type": "string", "format": "uri", "description": "Base URL for integration endpoints, such as the OpenTelemetry endpoints" }, "otlp_traces": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for traces" }, "otlp_logs": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for logs" } }, "required": [ "cdn", "crons", "csp", "integration", "minidump", "nel", "otlp_logs", "otlp_traces", "playstation", "public", "secret", "security", "unreal" ], "description": "DSN and ingestion endpoints for the key" }, "browserSdkVersion": { "type": "string", "description": "JavaScript SDK version the Loader serves" }, "browserSdk": { "type": "object", "properties": { "choices": { "type": "array", "items": { "type": "array", "items": { "type": "string" } }, "description": "JavaScript SDK versions the Loader can serve, as [value, label] pairs" } }, "required": [ "choices" ], "description": "JavaScript SDK versions the Loader can serve" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the client key was created (ISO 8601)" }, "dynamicSdkLoaderOptions": { "type": "object", "properties": { "hasReplay": { "type": "boolean", "description": "Whether the Loader enables Session Replay" }, "hasPerformance": { "type": "boolean", "description": "Whether the Loader enables tracing" }, "hasDebug": { "type": "boolean", "description": "Whether the Loader loads the debug bundle" }, "hasFeedback": { "type": "boolean", "description": "Whether the Loader enables User Feedback" }, "hasLogsAndMetrics": { "type": "boolean", "description": "Whether the Loader enables logs and metrics" } }, "required": [ "hasDebug", "hasFeedback", "hasLogsAndMetrics", "hasPerformance", "hasReplay" ], "description": "Features the JavaScript SDK Loader enables" }, "useCase": { "type": "string", "description": "What the key is used for, such as user or profiling. Only included for superusers" } }, "required": [ "browserSdk", "browserSdkVersion", "dateCreated", "dsn", "dynamicSdkLoaderOptions", "id", "isActive", "label", "name", "projectId", "public", "rateLimit", "secret" ] } }, "ListDataForwarderResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data forwarder" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "isEnabled": { "type": "boolean", "description": "Whether the data forwarder is on" }, "enrollNewProjects": { "type": "boolean", "description": "Whether new projects are enrolled in the forwarder automatically" }, "enrolledProjects": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "platform", "slug" ] }, "description": "Projects enrolled in the forwarder" }, "provider": { "type": "string", "description": "Service the data is forwarded to: segment, sqs or splunk" }, "config": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Provider settings of the forwarder. Null without org:write access" }, "projectConfigs": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project's data forwarding configuration" }, "isEnabled": { "type": "boolean", "description": "Whether data forwarding is on for the project" }, "dataForwarderId": { "type": "string", "description": "ID of the data forwarder" }, "project": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "platform", "slug" ], "description": "Project the configuration applies to" }, "overrides": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Settings that override the forwarder's config for the project. Empty without project:write or org:write access" }, "effectiveConfig": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Forwarder config merged with the project's overrides. Empty without org:write access" }, "dateAdded": { "type": "string", "format": "date-time", "description": "When the project configuration was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the project configuration was last updated (ISO 8601)" } }, "required": [ "dataForwarderId", "dateAdded", "dateUpdated", "effectiveConfig", "id", "isEnabled", "overrides", "project" ] }, "description": "Configuration of each enrolled project" }, "dateAdded": { "type": "string", "format": "date-time", "description": "When the data forwarder was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the data forwarder was last updated (ISO 8601)" } }, "required": [ "config", "dateAdded", "dateUpdated", "enrollNewProjects", "enrolledProjects", "id", "isEnabled", "organizationId", "projectConfigs", "provider" ] } }, "ListDetectorSerializerResponse": { "type": "array", "items": { "type": "object", "properties": { "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor" }, "createdBy": { "type": "string", "nullable": true, "description": "ID of the user who created the monitor" }, "latestGroup": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" } }, "required": [ "culprit", "firstSeen", "id", "issueCategory", "issueType", "lastSeen", "level", "metadata", "numComments", "platform", "project", "shortId", "status", "substatus", "title", "type" ], "nullable": true, "description": "Latest issue the monitor created" }, "description": { "type": "string", "nullable": true, "description": "Description of the monitor" }, "id": { "type": "string", "description": "Monitor ID" }, "projectId": { "type": "string", "nullable": true, "description": "ID of the project the monitor belongs to" }, "name": { "type": "string", "description": "Monitor name" }, "type": { "type": "string", "description": "Type of the monitor, such as metric_issue or error" }, "workflowIds": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "IDs of the alerts connected to the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the monitor was last updated (ISO 8601)" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "enum": [ "snuba_query_subscription", "cron_monitor", "uptime_subscription" ], "type": "string", "description": "Type of the data source" }, "sourceId": { "type": "string", "description": "ID of the query subscription, cron monitor or uptime subscription" }, "queryObj": { "anyOf": [ { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ] }, { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] }, { "type": "object", "properties": { "url": { "type": "string", "description": "URL the check requests" }, "method": { "type": "string", "description": "HTTP method of the check request, such as GET" }, "body": { "type": "string", "nullable": true, "description": "Body of the check request. Null when it has none" }, "headers": { "type": "array", "items": { "type": "array", "items": { "type": "string" }, "minLength": 2, "maxLength": 2 }, "description": "Headers of the check request, each a name and value pair" }, "intervalSeconds": { "type": "integer", "description": "How often the check runs, in seconds" }, "timeoutMs": { "type": "integer", "description": "How long the check waits for a response, in milliseconds" }, "traceSampling": { "type": "boolean", "description": "Whether the check request samples a trace" }, "responseCaptureEnabled": { "type": "boolean", "description": "Whether failed checks capture the response body and headers" }, "assertion": { "description": "Assertion the response must pass. Null when the check has none", "type": "object", "properties": { "root": { "description": "All possible assertion operations", "anyOf": [ { "description": "The boolean AND operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "and" ], "description": "Operation, always and" }, "children": { "type": "array", "items": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." }, "description": "Operations that must all pass" } } }, { "description": "The boolean OR operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "or" ], "description": "Operation, always or" }, "children": { "type": "array", "items": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." }, "description": "Operations of which at least one must pass" } } }, { "description": "The negation operation", "type": "object", "properties": { "op": { "type": "string", "enum": [ "not" ], "description": "Operation, always not" }, "operand": { "type": "object", "description": "All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here." } } }, { "description": "The HTTP status code comparison operation", "type": "object", "properties": { "value": { "type": "integer", "description": "HTTP status code to compare the response status code against" }, "operator": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] } } }, { "description": "The JSONPath query operation", "type": "object", "properties": { "op": { "enum": [ "json_path" ], "description": "Operation, always json_path" }, "value": { "type": "string", "description": "JSONPath query to run on the response body" }, "operator": { "nullable": true, "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ], "type": "string" }, "operand": { "description": "An operand for comparison against json path values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "jsonpath_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the query result against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } }, { "type": "object", "nullable": true, "enum": [ null ] } ] } } }, { "description": "The HTTP header (key and value) comparison operation", "type": "object", "properties": { "key_op": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] }, "key_operand": { "description": "A operand for comparison against HTTP header keys and values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the header key or value against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } } ] }, "value_op": { "description": "The kind of comparison to make.", "enum": [ "always", "never", "less_than", "greater_than", "equals", "not_equals", null ] }, "value_operand": { "description": "A operand for comparison against HTTP header keys and values", "anyOf": [ { "description": "A glob pattern for matching", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "glob" ], "description": "Kind of operand, always glob" }, "pattern": { "description": "The actual glob pattern, as a string", "type": "object", "properties": { "value": { "type": "string", "description": "Glob pattern" } } } } }, { "description": "A literal value for comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "literal" ], "description": "Kind of operand, always literal" }, "value": { "type": "string", "description": "Value to compare the header key or value against" } } }, { "description": "A none operand for the comparison", "type": "object", "properties": { "header_op": { "type": "string", "enum": [ "none" ], "description": "Kind of operand, always none" } } } ] } } } ] } }, "nullable": true } }, "required": [ "assertion", "body", "headers", "intervalSeconds", "method", "responseCaptureEnabled", "timeoutMs", "traceSampling", "url" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The query subscription, cron monitor or uptime subscription, which depends on type. Null when it no longer exists" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "nullable": true, "description": "Data sources the monitor evaluates, such as a query subscription" }, "conditionGroup": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } }, "nullable": true, "description": "Conditions that decide the monitor's status" }, "config": { "anyOf": [ { "type": "object", "maxProperties": 0, "description": "Empty for monitor types without configuration" }, { "type": "object", "additionalProperties": false, "properties": { "sentry:fingerprintingRules": { "type": "string", "description": "Fingerprinting rules of the project" }, "sentry:resolveAge": { "type": "integer", "description": "Hours of inactivity after which the project's issues resolve. 0 to never" } } }, { "type": "object", "additionalProperties": false, "properties": { "organizationId": { "type": "integer", "description": "ID of the organization" } } }, { "description": "A representation of a metric detector config dict", "type": "object", "required": [ "detectionType" ], "additionalProperties": false, "properties": { "comparisonDelta": { "type": "integer", "enum": [ 300, 900, 3600, 86400, 604800, 2592000 ], "description": "For percent detection, how far back the compared window is, in seconds" }, "detectionType": { "type": "string", "enum": [ "static", "percent", "dynamic" ], "description": "How the monitor detects issues: static thresholds, percent change or dynamic anomalies" } } }, { "description": "Configuration for preprod static analysis detector", "type": "object", "required": [ "thresholdType", "measurement" ], "additionalProperties": false, "properties": { "thresholdType": { "type": "string", "enum": [ "absolute_diff", "absolute", "relative_diff" ], "description": "The type of threshold to apply" }, "measurement": { "type": "string", "enum": [ "install_size", "download_size" ], "description": "The measurement to track" }, "query": { "type": "string", "description": "Search query to filter which artifacts are monitored" } } }, { "description": "A representation of an uptime alert", "type": "object", "required": [ "mode", "environment", "recoveryThreshold", "downtimeThreshold" ], "additionalProperties": false, "properties": { "mode": { "type": "integer", "enum": [ 1, 2, 3 ], "description": "How the monitor was created: 1 manually, 2 auto-detected and onboarding, 3 auto-detected and active" }, "environment": { "type": "string", "nullable": true, "description": "Environment of the monitor. Null for none" }, "recoveryThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive successful checks required to mark monitor as recovered" }, "downtimeThreshold": { "type": "integer", "minimum": 1, "description": "Number of consecutive failed checks required to mark monitor as down" } } } ], "description": "Configuration of the monitor, which depends on its type" }, "enabled": { "type": "boolean", "description": "Whether the monitor is enabled" } }, "required": [ "conditionGroup", "config", "dataSources", "dateCreated", "dateUpdated", "enabled", "id", "name", "projectId", "type", "workflowIds" ] } }, "ListEventAttachmentsResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the attachment" }, "event_id": { "type": "string", "description": "ID of the event the attachment belongs to" }, "type": { "type": "string", "description": "Type of the attachment, such as event.attachment or event.minidump" }, "name": { "type": "string", "description": "File name of the attachment" }, "mimetype": { "type": "string", "nullable": true, "description": "MIME type of the attachment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the attachment was stored (ISO 8601)" }, "size": { "type": "integer", "description": "Size of the attachment in bytes" }, "headers": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Legacy field. Only contains Content-Type, which matches mimetype" }, "sha1": { "type": "string", "nullable": true, "description": "Legacy field, always null" } }, "required": [ "dateCreated", "event_id", "headers", "id", "mimetype", "name", "sha1", "size", "type" ] } }, "ListFlagLogsResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the audit log entry" }, "action": { "enum": [ "created", "deleted", "updated" ], "type": "string", "description": "What happened to the flag: created, deleted or updated" }, "createdAt": { "type": "string", "description": "When the change happened (ISO 8601)" }, "createdBy": { "type": "string", "nullable": true, "description": "Who made the change, such as an email address" }, "createdByType": { "enum": [ "email", "id", "name", null ], "type": "string", "nullable": true, "description": "Kind of value in createdBy: email, id or name" }, "flag": { "type": "string", "description": "Name of the flag" }, "provider": { "enum": [ "generic", "flagpole", "launchdarkly", "unleash", "statsig", null ], "type": "string", "nullable": true, "description": "Feature flag provider that sent the change: generic, flagpole, launchdarkly, unleash or statsig" }, "tags": { "type": "object", "additionalProperties": {}, "description": "Tags of the change, such as the environment" } }, "required": [ "action", "createdAt", "createdBy", "createdByType", "flag", "id", "provider", "tags" ] }, "description": "Audit log entries" } }, "required": [ "data" ] }, "ListMemberOnTeamResponse": { "type": "array", "items": { "type": "object", "properties": { "externalUsers": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested" }, "role": { "type": "string", "description": "Deprecated. Use orgRole" }, "roleName": { "type": "string", "description": "Deprecated. Name of the member's organization role" }, "id": { "type": "string", "description": "Organization member ID" }, "email": { "type": "string", "description": "Email address of the member's user, or the invited email address if they have no account yet" }, "name": { "type": "string", "description": "Display name of the member's user, or their email address if they have no account yet" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "description": "The member's user" }, "orgRole": { "type": "string", "description": "ID of the member's organization role" }, "pending": { "type": "boolean", "description": "Whether the member has no user account linked yet, as with an invite that hasn't been accepted" }, "expired": { "type": "boolean", "description": "Whether the member's invite has expired" }, "flags": { "type": "object", "properties": { "idp:provisioned": { "type": "boolean", "description": "Whether the member is provisioned and managed through the organization's identity provider (SCIM)" }, "idp:role-restricted": { "type": "boolean", "description": "Whether the member's organization role is set by the identity provider through SCIM" }, "sso:linked": { "type": "boolean", "description": "Whether the member has linked their account to the organization's SSO provider" }, "sso:invalid": { "type": "boolean", "description": "Whether the member's SSO link is invalid" }, "member-limit:restricted": { "type": "boolean", "description": "Whether the member is restricted by the plan's member limit" }, "partnership:restricted": { "type": "boolean", "description": "Whether the member is managed by an active partnership and can't be changed until it ends" } }, "required": [ "idp:provisioned", "idp:role-restricted", "member-limit:restricted", "partnership:restricted", "sso:invalid", "sso:linked" ], "description": "Member flags" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the member was added or invited" }, "inviteStatus": { "enum": [ "approved", "requested_to_be_invited", "requested_to_join", null ], "type": "string", "nullable": true, "description": "Invite status" }, "inviterName": { "type": "string", "nullable": true, "description": "Name of the user who invited the member, or null" }, "teamRole": { "type": "string", "nullable": true, "description": "ID of the member's team role, or null if the member has the minimum team role from their organization role" }, "teamSlug": { "type": "string", "description": "Slug of the team" } }, "required": [ "dateCreated", "email", "expired", "flags", "id", "inviteStatus", "inviterName", "name", "orgRole", "pending", "teamRole", "teamSlug", "user" ] } }, "ListOrgMembersResponse": { "type": "array", "items": { "type": "object", "properties": { "externalUsers": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested" }, "id": { "type": "string", "description": "Organization member ID" }, "email": { "type": "string", "description": "Email address of the member's user, or the invited email address if they have no account yet" }, "name": { "type": "string", "description": "Display name of the member's user, or their email address if they have no account yet" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "The member's user. Null for invited members without an account, or if the user can't be found" }, "orgRole": { "type": "string", "description": "ID of the member's organization role" }, "pending": { "type": "boolean", "description": "Whether the member has no user account linked yet, as with an invite that hasn't been accepted" }, "expired": { "type": "boolean", "description": "Whether the member's invite has expired" }, "flags": { "type": "object", "properties": { "idp:provisioned": { "type": "boolean", "description": "Whether the member is provisioned and managed through the organization's identity provider (SCIM)" }, "idp:role-restricted": { "type": "boolean", "description": "Whether the member's organization role is set by the identity provider through SCIM" }, "sso:linked": { "type": "boolean", "description": "Whether the member has linked their account to the organization's SSO provider" }, "sso:invalid": { "type": "boolean", "description": "Whether the member's SSO link is invalid" }, "member-limit:restricted": { "type": "boolean", "description": "Whether the member is restricted by the plan's member limit" }, "partnership:restricted": { "type": "boolean", "description": "Whether the member is managed by an active partnership and can't be changed until it ends" } }, "required": [ "idp:provisioned", "idp:role-restricted", "member-limit:restricted", "partnership:restricted", "sso:invalid", "sso:linked" ], "description": "Member flags" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the member was added or invited" }, "inviteStatus": { "enum": [ "approved", "requested_to_be_invited", "requested_to_join", null ], "type": "string", "nullable": true, "description": "Invite status" }, "inviterName": { "type": "string", "nullable": true, "description": "Name of the user who invited the member, or null" } }, "required": [ "dateCreated", "email", "expired", "flags", "id", "inviteStatus", "inviterName", "name", "orgRole", "pending", "user" ] } }, "ListOrgTeamResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Team ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Team slug, unique within the organization" }, "name": { "type": "string", "description": "Display name of the team" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the team was created (ISO 8601)" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of the team" }, "teamRole": { "type": "string", "nullable": true, "description": "The requesting user's role in the team" }, "flags": { "type": "object", "additionalProperties": { "type": "boolean" }, "description": "Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the team through their team role. Empty if the user has no access" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams" }, "isPending": { "type": "boolean", "description": "Whether the requesting user has a pending request to join the team" }, "memberCount": { "type": "integer", "description": "Number of members in the team" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Team avatar" }, "externalTeams": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Teams in external providers, such as Slack or GitHub, that are linked to this team" }, "organization": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ], "description": "Organization the team belongs to" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ] }, "description": "Projects the team has access to" } }, "required": [ "access", "avatar", "dateCreated", "flags", "hasAccess", "id", "isMember", "isPending", "memberCount", "name", "slug", "teamRole" ] } }, "ListOrganizationAIConversationsResponse": { "type": "array", "items": { "type": "object", "properties": { "endTimestamp": { "type": "integer", "description": "When the conversation's last AI span happened, as a Unix timestamp in milliseconds" }, "errors": { "type": "integer", "description": "Number of spans whose status isn't ok, cancelled or unknown" }, "generationDuration": { "type": "number", "format": "double", "description": "Total duration of the conversation's LLM calls in milliseconds" }, "inputTokens": { "type": "integer", "description": "Number of input tokens used by LLM calls" }, "llmCalls": { "type": "integer", "description": "Number of LLM calls" }, "outputTokens": { "type": "integer", "description": "Number of output tokens used by LLM calls" }, "startTimestamp": { "type": "integer", "description": "When the conversation's first AI span happened, as a Unix timestamp in milliseconds" }, "toolCalls": { "type": "integer", "description": "Number of tool calls" }, "toolErrors": { "type": "integer", "description": "Number of failed tool calls" }, "toolNames": { "type": "array", "items": { "type": "string" }, "description": "Names of the tools called, sorted" }, "totalCost": { "type": "number", "format": "double", "description": "Total cost of LLM calls" }, "totalTokens": { "type": "integer", "description": "Total number of tokens used by LLM calls" }, "conversationId": { "type": "string", "description": "ID of the conversation" }, "timeSpan": { "type": "number", "format": "double", "description": "Elapsed time between the first and last AI spans in milliseconds" }, "title": { "type": "string", "nullable": true, "description": "Stored title of the conversation. Null when it has none yet" }, "projectId": { "type": "integer", "nullable": true, "description": "ID of the project the conversation belongs to" }, "flow": { "type": "array", "items": { "type": "string" }, "description": "Names of the agents in the conversation" }, "traceCount": { "type": "integer", "description": "Number of traces in the conversation" }, "traceIds": { "type": "array", "items": { "type": "string" }, "description": "IDs of the traces in the conversation" }, "firstInput": { "type": "string", "nullable": true, "description": "First input message of the conversation" }, "lastOutput": { "type": "string", "nullable": true, "description": "Last output message of the conversation" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID of the user who started the conversation" }, "email": { "type": "string", "nullable": true, "description": "Email of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" } }, "required": [ "email", "id", "ip_address", "username" ], "nullable": true, "description": "User who started the conversation" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "description": "Slug of the project" } }, "required": [ "id", "name", "slug" ] }, "description": "Projects the conversation's spans belong to" }, "webUrl": { "type": "string", "format": "uri", "description": "URL of the conversation in Sentry" } }, "required": [ "conversationId", "endTimestamp", "errors", "firstInput", "flow", "generationDuration", "inputTokens", "lastOutput", "llmCalls", "outputTokens", "projectId", "projects", "startTimestamp", "timeSpan", "title", "toolCalls", "toolErrors", "toolNames", "totalCost", "totalTokens", "traceCount", "traceIds", "user", "webUrl" ] } }, "ListOrganizationClientKeysResponse": { "type": "array", "items": { "type": "object", "description": "This represents a Sentry Project Client Key.", "properties": { "id": { "type": "string", "description": "ID of the client key, same as its public key" }, "name": { "type": "string", "description": "Name of the client key" }, "label": { "type": "string", "description": "Name of the client key, same as name" }, "public": { "type": "string", "nullable": true, "description": "Public key" }, "secret": { "type": "string", "nullable": true, "description": "Secret key" }, "projectId": { "type": "integer", "description": "ID of the project the key belongs to" }, "isActive": { "type": "boolean", "description": "Whether the client key accepts events" }, "rateLimit": { "type": "object", "properties": { "window": { "type": "integer", "description": "Rate limit window in seconds" }, "count": { "type": "integer", "description": "Number of events accepted per window" } }, "required": [ "count", "window" ], "nullable": true, "description": "Rate limit for events sent with the key. Null when there's none" }, "dsn": { "type": "object", "properties": { "secret": { "type": "string", "format": "uri", "description": "DSN that includes the secret key" }, "public": { "type": "string", "format": "uri", "description": "Public DSN to configure SDKs with" }, "csp": { "type": "string", "format": "uri", "description": "Endpoint for Content Security Policy reports" }, "security": { "type": "string", "format": "uri", "description": "Endpoint for security reports" }, "minidump": { "type": "string", "format": "uri", "description": "Endpoint for minidump crash reports" }, "nel": { "type": "string", "format": "uri", "description": "Endpoint for Network Error Logging reports" }, "unreal": { "type": "string", "format": "uri", "description": "Endpoint for Unreal Engine crash reports" }, "crons": { "type": "string", "format": "uri", "description": "Endpoint for cron monitor check-ins" }, "cdn": { "type": "string", "format": "uri", "description": "URL of the JavaScript SDK Loader script" }, "playstation": { "type": "string", "format": "uri", "description": "Endpoint for PlayStation crash reports" }, "integration": { "type": "string", "format": "uri", "description": "Base URL for integration endpoints, such as the OpenTelemetry endpoints" }, "otlp_traces": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for traces" }, "otlp_logs": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for logs" } }, "required": [ "cdn", "crons", "csp", "integration", "minidump", "nel", "otlp_logs", "otlp_traces", "playstation", "public", "secret", "security", "unreal" ], "description": "DSN and ingestion endpoints for the key" }, "browserSdkVersion": { "type": "string", "description": "JavaScript SDK version the Loader serves" }, "browserSdk": { "type": "object", "properties": { "choices": { "type": "array", "items": { "type": "array", "items": { "type": "string" } }, "description": "JavaScript SDK versions the Loader can serve, as [value, label] pairs" } }, "required": [ "choices" ], "description": "JavaScript SDK versions the Loader can serve" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the client key was created (ISO 8601)" }, "dynamicSdkLoaderOptions": { "type": "object", "properties": { "hasReplay": { "type": "boolean", "description": "Whether the Loader enables Session Replay" }, "hasPerformance": { "type": "boolean", "description": "Whether the Loader enables tracing" }, "hasDebug": { "type": "boolean", "description": "Whether the Loader loads the debug bundle" }, "hasFeedback": { "type": "boolean", "description": "Whether the Loader enables User Feedback" }, "hasLogsAndMetrics": { "type": "boolean", "description": "Whether the Loader enables logs and metrics" } }, "required": [ "hasDebug", "hasFeedback", "hasLogsAndMetrics", "hasPerformance", "hasReplay" ], "description": "Features the JavaScript SDK Loader enables" }, "useCase": { "type": "string", "description": "What the key is used for, such as user or profiling. Only included for superusers" } }, "required": [ "browserSdk", "browserSdkVersion", "dateCreated", "dsn", "dynamicSdkLoaderOptions", "id", "isActive", "label", "name", "projectId", "public", "rateLimit", "secret" ] } }, "ListOrganizationCodeMappingsResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the code mapping" }, "projectId": { "type": "string", "description": "ID of the project" }, "projectSlug": { "type": "string", "description": "Slug of the project" }, "repoId": { "type": "string", "description": "ID of the repository" }, "repoName": { "type": "string", "description": "Name of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "nullable": true, "description": "Provider of the repository's integration" }, "stackRoot": { "type": "string", "description": "Stack trace path prefix that the mapping replaces" }, "sourceRoot": { "type": "string", "description": "Repository path prefix that replaces the stack root" }, "defaultBranch": { "type": "string", "nullable": true, "description": "Branch to link source files on" }, "automaticallyGenerated": { "type": "boolean", "description": "Whether Sentry created the mapping automatically" }, "hasCodeOwner": { "type": "boolean", "description": "Whether the mapping has a CODEOWNERS file linked" } }, "required": [ "automaticallyGenerated", "defaultBranch", "hasCodeOwner", "id", "integrationId", "projectId", "projectSlug", "provider", "repoId", "repoName", "sourceRoot", "stackRoot" ] } }, "ListOrganizationIntegrationResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the integration" }, "name": { "type": "string", "description": "Name of the integration, usually the connected account or workspace" }, "icon": { "type": "string", "nullable": true, "description": "URL of the connected account's icon" }, "domainName": { "type": "string", "nullable": true, "description": "Domain of the connected account, such as github.com/example-org" }, "accountType": { "type": "string", "nullable": true, "description": "Type of the connected account, such as Organization or User" }, "scopes": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Permission scopes granted to the integration" }, "outOfDate": { "type": "boolean", "nullable": true, "description": "Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model" }, "missingFeatures": { "type": "array", "items": { "type": "object", "description": "A feature the installation can no longer support, named by the permission\ntier it falls short of, so the update-permissions modal can list them.", "properties": { "key": { "type": "string", "description": "Key of the missing feature" }, "description": { "type": "string", "description": "Description of the missing feature" } }, "required": [ "description", "key" ] }, "nullable": true, "description": "Features the installation can't support because of missing permissions. Null for providers without a permissions model" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "description": "Integration provider details" }, "configOrganization": { "description": "Organization-level configuration fields of the integration" }, "configData": { "description": "Configuration values the organization set for the integration" }, "externalId": { "type": "string", "description": "ID of the connected account in the provider" }, "organizationId": { "type": "integer", "description": "ID of the organization the integration is installed in" }, "organizationIntegrationStatus": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the integration in this organization" }, "gracePeriodEnd": { "type": "string", "format": "date-time", "nullable": true, "description": "When the integration's grace period ends (ISO 8601). Null when there's no grace period" } }, "required": [ "accountType", "configData", "configOrganization", "domainName", "externalId", "gracePeriodEnd", "icon", "id", "missingFeatures", "name", "organizationId", "organizationIntegrationStatus", "outOfDate", "provider", "scopes", "status" ] } }, "ListOrganizationMemberResponse": { "type": "array", "items": { "type": "object", "properties": { "externalUsers": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested" }, "id": { "type": "string", "description": "Organization member ID" }, "email": { "type": "string", "description": "Email address of the member's user, or the invited email address if they have no account yet" }, "name": { "type": "string", "description": "Display name of the member's user, or their email address if they have no account yet" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "The member's user. Null for invited members without an account, or if the user can't be found" }, "orgRole": { "type": "string", "description": "ID of the member's organization role" }, "pending": { "type": "boolean", "description": "Whether the member has no user account linked yet, as with an invite that hasn't been accepted" }, "expired": { "type": "boolean", "description": "Whether the member's invite has expired" }, "flags": { "type": "object", "properties": { "idp:provisioned": { "type": "boolean", "description": "Whether the member is provisioned and managed through the organization's identity provider (SCIM)" }, "idp:role-restricted": { "type": "boolean", "description": "Whether the member's organization role is set by the identity provider through SCIM" }, "sso:linked": { "type": "boolean", "description": "Whether the member has linked their account to the organization's SSO provider" }, "sso:invalid": { "type": "boolean", "description": "Whether the member's SSO link is invalid" }, "member-limit:restricted": { "type": "boolean", "description": "Whether the member is restricted by the plan's member limit" }, "partnership:restricted": { "type": "boolean", "description": "Whether the member is managed by an active partnership and can't be changed until it ends" } }, "required": [ "idp:provisioned", "idp:role-restricted", "member-limit:restricted", "partnership:restricted", "sso:invalid", "sso:linked" ], "description": "Member flags" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the member was added or invited" }, "inviteStatus": { "enum": [ "approved", "requested_to_be_invited", "requested_to_join", null ], "type": "string", "nullable": true, "description": "Invite status" }, "inviterName": { "type": "string", "nullable": true, "description": "Name of the user who invited the member, or null" } }, "required": [ "dateCreated", "email", "expired", "flags", "id", "inviteStatus", "inviterName", "name", "orgRole", "pending", "user" ] } }, "ListOrganizationReleaseCommitsResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" }, "releases": { "type": "array", "items": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" }, "shortVersion": { "type": "string", "description": "Short version of the release" }, "ref": { "type": "string", "nullable": true, "description": "Commit ref of the release" }, "url": { "type": "string", "nullable": true, "description": "URL of the release" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the release was created (ISO 8601)" } }, "required": [ "dateCreated", "dateReleased", "ref", "shortVersion", "url", "version" ] }, "description": "Releases that contain the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "releases", "suspectCommitType" ] } }, "ListOrganizationReleasesResponse": { "type": "array", "items": { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release started (ISO 8601)" }, "owner": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "Release owner" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its first event (ISO 8601)" }, "lastEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its most recent event (ISO 8601)" }, "currentProjectMeta": { "type": "object", "properties": { "sessionsLowerBound": { "type": "string", "nullable": true, "description": "Start of the release's sessions in the project (ISO 8601)" }, "sessionsUpperBound": { "type": "string", "nullable": true, "description": "End of the release's sessions in the project (ISO 8601)" }, "nextReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the next release in the project" }, "prevReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the previous release in the project" }, "firstReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the first release in the project" }, "lastReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the latest release in the project" } }, "nullable": true, "description": "Session bounds and neighboring release versions in the current project, when a project is requested" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "adoptionStages": { "type": "object", "additionalProperties": { "type": "object", "properties": { "stage": { "enum": [ "adopted", "low_adoption", "replaced" ], "type": "string", "description": "Adoption stage of the release" }, "adopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was adopted (ISO 8601)" }, "unadopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release stopped being adopted (ISO 8601)" } }, "required": [ "adopted", "stage", "unadopted" ] }, "nullable": true, "description": "Adoption stage of the release in each project, keyed by project slug" }, "id": { "type": "integer", "description": "Release ID" }, "version": { "type": "string", "description": "Version of the release" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "shortVersion": { "type": "string", "description": "Shortened release version" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "authors": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] } ] }, "description": "Authors of the release's commits" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "healthData": { "type": "object", "properties": { "durationP50": { "type": "number", "format": "double", "nullable": true, "description": "Median session duration in seconds" }, "durationP90": { "type": "number", "format": "double", "nullable": true, "description": "90th percentile session duration in seconds" }, "crashFreeUsers": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of users who didn't experience a crash" }, "crashFreeSessions": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of sessions that didn't crash" }, "totalUsers": { "type": "integer", "nullable": true, "description": "Total number of users in the release" }, "totalUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the release over the last 24 hours" }, "totalProjectUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the project over the last 24 hours" }, "totalSessions": { "type": "integer", "nullable": true, "description": "Total number of sessions in the release" }, "totalSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the release over the last 24 hours" }, "totalProjectSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the project over the last 24 hours" }, "adoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's users over the last 24 hours that were on the release" }, "sessionsAdoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's sessions over the last 24 hours that were on the release" }, "sessionsCrashed": { "type": "integer", "description": "Number of crashed sessions" }, "sessionsErrored": { "type": "integer", "description": "Number of sessions with errors" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "description": "Session or user counts over time, keyed by stats period" } }, "required": [ "hasHealthData", "sessionsCrashed", "sessionsErrored", "stats" ], "nullable": true, "description": "Release health data for the project. Only included when health data is requested" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released in the project (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When work on the release started (ISO 8601)" }, "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Platforms of the project" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data in the project" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release in the project" } }, "required": [ "hasHealthData", "id", "name", "newGroups", "platform", "platforms", "slug" ] }, "description": "Projects in the release" } }, "required": [ "authors", "commitCount", "data", "deployCount", "id", "newGroups", "projects", "shortVersion", "status", "version", "versionInfo" ] } }, "ListOrganizationRepositoriesResponse": { "type": "array", "items": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ] } }, "ListOrganizationTagsResponse": { "type": "array", "items": { "type": "object", "properties": { "uniqueValues": { "type": "integer", "nullable": true, "description": "Number of distinct values seen for the tag key" }, "totalValues": { "type": "integer", "nullable": true, "description": "Number of events counted for the tag key. For an issue tag, this is the issue's retained event count, including events without the tag" }, "topValues": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "nullable": true, "description": "Search query that matches events with the tag value. Only set for the user tag" }, "key": { "type": "string", "description": "Tag key, with the `sentry:` prefix removed from built-in keys" }, "name": { "type": "string", "nullable": true, "description": "Display label of the tag value. For the user tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed" }, "value": { "type": "string", "nullable": true, "description": "Tag value" }, "count": { "type": "integer", "nullable": true, "description": "Number of events with the tag value. Null for an empty value" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the tag value was last seen (ISO 8601). Null for an empty value" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the tag value was first seen (ISO 8601). Null for an empty value" } }, "required": [ "count", "firstSeen", "key", "lastSeen", "name", "value" ] }, "nullable": true, "description": "Most frequent values of the tag key, ordered by count" }, "key": { "type": "string", "description": "Tag key, with the `sentry:` prefix removed from built-in keys" }, "name": { "type": "string", "description": "Display label of the tag key" } }, "required": [ "key", "name" ] } }, "ListOrganizationTraceMetricsResponse": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the metric" }, "type": { "enum": [ "counter", "gauge", "distribution" ], "type": "string", "description": "Type of the metric: counter, gauge or distribution" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the metric. Null when it has none" }, "count": { "type": "number", "format": "double", "description": "Number of data points of the metric in the time range" }, "lastSeen": { "type": "number", "format": "double", "nullable": true, "description": "When the metric was last seen, as a Unix timestamp. Null when not known" }, "context": { "type": "object", "properties": { "brief": { "type": "string", "description": "Short description of the metric" }, "details": { "type": "array", "items": { "type": "string" }, "description": "Longer notes about the metric" } }, "description": "Description of the metric. Only set when expand includes context" } }, "required": [ "count", "lastSeen", "name", "type", "unit" ] } }, "ListOrganizations": { "type": "array", "items": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ] } }, "ListProjectDebugFilesResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the debug file" }, "uuid": { "type": "string", "description": "Debug ID without the age suffix, as a UUID" }, "debugId": { "type": "string", "description": "Debug ID of the file" }, "codeId": { "type": "string", "nullable": true, "description": "Code ID of the file, such as the GNU build ID. Null when the file has none" }, "cpuName": { "type": "string", "description": "CPU architecture of the file, such as x86_64 or arm64" }, "objectName": { "type": "string", "description": "Name of the object file" }, "symbolType": { "type": "string", "description": "Format of the file, such as macho, elf, pe, pdb, breakpad or proguard" }, "headers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "HTTP headers to download the file with, such as Content-Type" }, "size": { "type": "integer", "description": "Size of the file in bytes" }, "sha1": { "type": "string", "description": "SHA-1 checksum of the file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the file was uploaded (ISO 8601)" }, "data": { "type": "object", "description": "Extra data about the file, such as its features. Empty when not known", "properties": { "type": { "type": "string", "description": "Kind of the object, such as executable, debug companion or library. Left out for mapping files" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Debug features the file provides, such as symtab, debug, unwind, sources or mapping" } } } }, "required": [ "codeId", "cpuName", "data", "dateCreated", "debugId", "headers", "id", "objectName", "sha1", "size", "symbolType", "uuid" ] } }, "ListProjectEnvironments": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the environment" }, "name": { "type": "string", "description": "Name of the environment" }, "isHidden": { "type": "boolean", "description": "Whether the environment is hidden in the project" } }, "required": [ "id", "isHidden", "name" ] } }, "ListProjectReleaseCommitsResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" }, "releases": { "type": "array", "items": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" }, "shortVersion": { "type": "string", "description": "Short version of the release" }, "ref": { "type": "string", "nullable": true, "description": "Commit ref of the release" }, "url": { "type": "string", "nullable": true, "description": "URL of the release" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the release was created (ISO 8601)" } }, "required": [ "dateCreated", "dateReleased", "ref", "shortVersion", "url", "version" ] }, "description": "Releases that contain the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "releases", "suspectCommitType" ] } }, "ListProjectReleasesResponse": { "type": "array", "items": { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release started (ISO 8601)" }, "owner": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "Release owner" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its first event (ISO 8601)" }, "lastEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its most recent event (ISO 8601)" }, "currentProjectMeta": { "type": "object", "properties": { "sessionsLowerBound": { "type": "string", "nullable": true, "description": "Start of the release's sessions in the project (ISO 8601)" }, "sessionsUpperBound": { "type": "string", "nullable": true, "description": "End of the release's sessions in the project (ISO 8601)" }, "nextReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the next release in the project" }, "prevReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the previous release in the project" }, "firstReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the first release in the project" }, "lastReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the latest release in the project" } }, "nullable": true, "description": "Session bounds and neighboring release versions in the current project, when a project is requested" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "adoptionStages": { "type": "object", "additionalProperties": { "type": "object", "properties": { "stage": { "enum": [ "adopted", "low_adoption", "replaced" ], "type": "string", "description": "Adoption stage of the release" }, "adopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was adopted (ISO 8601)" }, "unadopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release stopped being adopted (ISO 8601)" } }, "required": [ "adopted", "stage", "unadopted" ] }, "nullable": true, "description": "Adoption stage of the release in each project, keyed by project slug" }, "id": { "type": "integer", "description": "Release ID" }, "version": { "type": "string", "description": "Version of the release" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "shortVersion": { "type": "string", "description": "Shortened release version" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "authors": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] } ] }, "description": "Authors of the release's commits" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "healthData": { "type": "object", "properties": { "durationP50": { "type": "number", "format": "double", "nullable": true, "description": "Median session duration in seconds" }, "durationP90": { "type": "number", "format": "double", "nullable": true, "description": "90th percentile session duration in seconds" }, "crashFreeUsers": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of users who didn't experience a crash" }, "crashFreeSessions": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of sessions that didn't crash" }, "totalUsers": { "type": "integer", "nullable": true, "description": "Total number of users in the release" }, "totalUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the release over the last 24 hours" }, "totalProjectUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the project over the last 24 hours" }, "totalSessions": { "type": "integer", "nullable": true, "description": "Total number of sessions in the release" }, "totalSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the release over the last 24 hours" }, "totalProjectSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the project over the last 24 hours" }, "adoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's users over the last 24 hours that were on the release" }, "sessionsAdoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's sessions over the last 24 hours that were on the release" }, "sessionsCrashed": { "type": "integer", "description": "Number of crashed sessions" }, "sessionsErrored": { "type": "integer", "description": "Number of sessions with errors" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "description": "Session or user counts over time, keyed by stats period" } }, "required": [ "hasHealthData", "sessionsCrashed", "sessionsErrored", "stats" ], "nullable": true, "description": "Release health data for the project. Only included when health data is requested" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released in the project (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When work on the release started (ISO 8601)" }, "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Platforms of the project" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data in the project" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release in the project" } }, "required": [ "hasHealthData", "id", "name", "newGroups", "platform", "platforms", "slug" ] }, "description": "Projects in the release" } }, "required": [ "authors", "commitCount", "data", "deployCount", "id", "newGroups", "projects", "shortVersion", "status", "version", "versionInfo" ] } }, "ListProjectUserFeedbackResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the feedback" }, "eventID": { "type": "string", "description": "ID of the event the feedback is attached to" }, "name": { "type": "string", "nullable": true, "description": "Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user who submitted the feedback. Falls back to the event user's email address" }, "comments": { "type": "string", "description": "Comments the user submitted" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the feedback was submitted (ISO 8601)" }, "user": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the user, as sent with the event" }, "username": { "type": "string", "nullable": true, "description": "Username sent with the event" }, "email": { "type": "string", "nullable": true, "description": "Email address sent with the event" }, "name": { "type": "string", "nullable": true, "description": "Display name of the user: the name, email address or username sent with the event, whichever is set first" }, "ipAddress": { "type": "string", "nullable": true, "description": "IP address sent with the event" }, "avatarUrl": { "type": "string", "nullable": true, "description": "Gravatar URL for the user's email address" } }, "required": [ "avatarUrl", "email", "id", "ipAddress", "name", "username" ], "nullable": true, "description": "User recorded on the feedback's event. Null when the event isn't found or has no user" }, "event": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the event the feedback is attached to" }, "eventID": { "type": "string", "description": "ID of the event the feedback is attached to" } }, "required": [ "eventID", "id" ], "description": "Event the feedback is attached to" }, "issue": { "type": "object", "properties": { "isUnhandled": { "type": "boolean", "description": "Whether the issue includes unhandled events" }, "count": { "type": "string", "description": "Total number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "derivedData": { "type": "object", "properties": { "blocker": { "type": "string", "description": "Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr" }, "progress": { "type": "string", "description": "How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied" }, "status": { "type": "string", "description": "Status of the issue from its action log: open or closed" }, "viewCount": { "type": "integer", "description": "Number of times the issue was viewed" }, "hasOpenFixPr": { "type": "boolean", "description": "Whether an open pull request is linked to the issue" }, "isAssigned": { "type": "boolean", "description": "Whether the issue has an assignee" }, "hasRootCause": { "type": "boolean", "description": "Whether a root cause was found for the issue" }, "lastCompletedAutofixStep": { "type": "string", "description": "Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration" }, "lastProgressedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue's progress last advanced (ISO 8601)" }, "impact": { "type": "object", "properties": { "score": { "type": "number", "format": "double", "nullable": true, "description": "Estimated per-occurrence impact on the end user's capability from 0 to 100" }, "level": { "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "type": "string", "nullable": true, "description": "Impact level derived from the assessment score" }, "description": { "type": "string", "description": "Human-readable description of the capability affected by the issue" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string", "description": "Stable identifier for the evidence supporting this claim" }, "claim": { "type": "string", "description": "Concise explanation of what the cited evidence establishes" }, "source": { "type": "string", "description": "The category of evidence cited, such as an event, trace, replay, or log" } }, "required": [ "claim", "reference", "source" ] }, "description": "Evidence-backed claims supporting the impact assessment" }, "sourceEventId": { "type": "string", "description": "ID of the issue event used to generate the impact assessment" } }, "required": [ "citations", "description", "level", "score", "sourceEventId" ], "nullable": true, "description": "The issue's impact assessment, or null when no assessment is available" } }, "required": [ "blocker", "hasOpenFixPr", "hasRootCause", "isAssigned", "lastCompletedAutofixStep", "lastProgressedAt", "progress", "status", "viewCount" ], "description": "Additional data derived for the issue. Only included when requested with expand" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the issue" }, "shareId": { "type": "string", "nullable": true, "description": "ID used in the issue's public share URL. Null when the issue isn't shared" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "permalink": { "type": "string", "format": "uri", "description": "URL of the issue in Sentry" }, "logger": { "type": "string", "nullable": true, "description": "Logger of the issue's events" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "statusDetails": { "type": "object", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored" }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored (ISO 8601)" }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored" }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount" }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount" }, "actor": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who ignored or resolved the issue" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in" }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in" }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed" }, "info": { "type": "object", "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)" }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started" }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum" } }, "required": [ "dateCreated", "syncCount", "totalEvents" ], "nullable": true, "description": "Reprocessing progress details" } }, "description": "Details of the issue's status, such as when an ignore expires or which release resolves it" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "priority": { "enum": [ "low", "medium", "high", null ], "type": "string", "nullable": true, "description": "Priority of the issue: high, medium or low" }, "priorityLockedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the priority was last set manually, which stops automatic priority updates (ISO 8601)" }, "seerFixabilityScore": { "type": "number", "format": "double", "nullable": true, "description": "Seer's score for how likely the issue is to be fixable" }, "seerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When Seer Autofix was last triggered for the issue (ISO 8601)" }, "seerExplorerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601)" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "User or team the issue is assigned to" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "nullable": true, "description": "Why the requesting user is subscribed to the issue" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred" }, "annotations": { "type": "array", "items": { "type": "object", "properties": { "displayName": { "type": "string", "description": "Display name of the linked external issue" }, "url": { "type": "string", "description": "URL of the linked external issue" } }, "required": [ "displayName", "url" ] }, "description": "External issues linked to the issue" } }, "required": [ "annotations", "assignedTo", "culprit", "hasSeen", "id", "isBookmarked", "isPublic", "isSubscribed", "issueCategory", "issueType", "level", "logger", "metadata", "numComments", "permalink", "platform", "priority", "priorityLockedAt", "project", "seerAutofixLastTriggered", "seerExplorerAutofixLastTriggered", "seerFixabilityScore", "shareId", "shortId", "status", "statusDetails", "subscriptionDetails", "substatus", "title", "type" ], "nullable": true, "description": "Issue the feedback's event belongs to. Null when the feedback isn't linked to an issue" } }, "required": [ "comments", "dateCreated", "email", "event", "eventID", "id", "issue", "name", "user" ] } }, "ListProjectUsersResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID of the legacy EventUser record. Null for users built from events" }, "tagValue": { "type": "string", "nullable": true, "description": "Value of the user tag that matches the user, such as id:123 or email:jane@example.com" }, "identifier": { "anyOf": [ { "type": "integer" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "ID the SDK sent for the user" }, "username": { "type": "string", "nullable": true, "description": "Username the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address the SDK sent for the user" }, "name": { "type": "string", "nullable": true, "description": "Display name of the user" }, "ipAddress": { "type": "string", "nullable": true, "description": "IP address of the user" }, "avatarUrl": { "type": "string", "description": "Gravatar URL of the user's email address" }, "hash": { "type": "string", "nullable": true, "description": "MD5 hash of the first set user attribute: id, username, email or IP address" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "Legacy field, always null" } }, "required": [ "avatarUrl", "dateCreated", "email", "hash", "id", "identifier", "ipAddress", "name", "tagValue", "username" ] } }, "ListReleaseFiles": { "type": "array", "items": { "type": "object", "properties": { "id": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "binary" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name" }, "name": { "type": "string", "description": "Name of the file, usually its URL" }, "dist": { "type": "string", "nullable": true, "description": "Name of the distribution the file belongs to" }, "headers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "HTTP headers stored with the file, such as Content-Type and Sourcemap" }, "size": { "type": "integer", "nullable": true, "description": "Size of the file in bytes" }, "sha1": { "type": "string", "nullable": true, "description": "SHA-1 checksum of the file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the file was uploaded (ISO 8601)" } }, "required": [ "dateCreated", "dist", "headers", "id", "name", "sha1", "size" ] } }, "ListReleaseSetupSteps": { "type": "array", "items": { "type": "object", "properties": { "step": { "enum": [ "tag", "repo", "commit", "deploy" ], "type": "string", "description": "Setup step: tag, repo, commit or deploy" }, "complete": { "type": "boolean", "description": "Whether the project completed the step" } }, "required": [ "complete", "step" ] } }, "ListReplayClicks": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "node_id": { "type": "integer", "description": "RRWeb DOM node ID of the clicked element" }, "timestamp": { "type": "string", "format": "date-time", "description": "When the element was clicked" } }, "required": [ "node_id", "timestamp" ] }, "description": "Clicks that match the query, in time order" } }, "required": [ "data" ] }, "ListReplayDeletionJobs": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the deletion job" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the job was created" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the job was last updated" }, "rangeStart": { "type": "string", "format": "date-time", "description": "Earliest UTC timestamp in the deletion range" }, "rangeEnd": { "type": "string", "format": "date-time", "description": "Latest UTC timestamp in the deletion range" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments of the replays to delete. Empty means all environments" }, "status": { "type": "string", "description": "Status of the job: `pending`, `in-progress`, `completed` or `failed`" }, "query": { "type": "string", "description": "Search query that matches the replays to delete" }, "countDeleted": { "type": "integer", "description": "Number of replays the job has deleted" } }, "required": [ "countDeleted", "dateCreated", "dateUpdated", "environments", "id", "query", "rangeEnd", "rangeStart", "status" ] }, "description": "Deletion jobs of the project" } }, "required": [ "data" ] }, "ListReplayRecordingSegments": { "type": "array", "items": { "type": "array", "items": { "type": "object", "additionalProperties": {} } } }, "ListReplays": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Replay ID" }, "project_id": { "type": "string", "description": "ID of the project the replay belongs to" }, "trace_ids": { "type": "array", "items": { "type": "string" }, "description": "IDs of traces linked to the replay" }, "error_ids": { "type": "array", "items": { "type": "string" }, "description": "IDs of errors linked to the replay" }, "environment": { "type": "string", "nullable": true, "description": "Environment of the replay" }, "tags": { "anyOf": [ { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, { "type": "array", "items": { "type": "string" } } ], "description": "Replay tags" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "ip": { "type": "string", "nullable": true, "description": "IP address of the user" }, "display_name": { "type": "string", "nullable": true, "description": "Name to display for the user: the username, email, ID or IP address, whichever is set first" }, "geo": { "type": "object", "properties": { "city": { "type": "string", "nullable": true, "description": "City of the user" }, "country_code": { "type": "string", "nullable": true, "description": "Country code of the user" }, "region": { "type": "string", "nullable": true, "description": "Region of the user" }, "subdivision": { "type": "string", "nullable": true, "description": "Subdivision of the user's country, such as a state or province" } }, "description": "Geographic location of the user" } }, "description": "User metadata" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the SDK that recorded the replay" }, "version": { "type": "string", "nullable": true, "description": "Version of the SDK that recorded the replay" } }, "description": "SDK metadata" }, "os": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the operating system" }, "version": { "type": "string", "nullable": true, "description": "Version of the operating system" } }, "description": "Operating system metadata" }, "browser": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the browser" }, "version": { "type": "string", "nullable": true, "description": "Version of the browser" } }, "description": "Browser metadata" }, "device": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the device" }, "brand": { "type": "string", "nullable": true, "description": "Brand of the device" }, "model": { "type": "string", "nullable": true, "description": "Model of the device" }, "family": { "type": "string", "nullable": true, "description": "Family of the device" } }, "description": "Device metadata" }, "ota_updates": { "type": "object", "properties": { "channel": { "type": "string", "nullable": true, "description": "Channel of the over-the-air update" }, "runtime_version": { "type": "string", "nullable": true, "description": "Runtime version of the over-the-air update" }, "update_id": { "type": "string", "nullable": true, "description": "ID of the over-the-air update" } }, "description": "Over-the-air update metadata" }, "is_archived": { "type": "boolean", "nullable": true, "description": "Whether the replay is archived" }, "urls": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "URLs visited during the replay" }, "segment_names": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Names of the replay's segments" }, "clicks": { "type": "array", "items": { "type": "object", "properties": { "click.alt": { "type": "string", "nullable": true, "description": "Alt text of the clicked element" }, "click.label": { "type": "string", "nullable": true, "description": "ARIA label of the clicked element" }, "click.classes": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "CSS classes of the clicked element" }, "click.component_name": { "type": "string", "nullable": true, "description": "Name of the frontend component that was clicked" }, "click.id": { "type": "string", "nullable": true, "description": "ID of the clicked element" }, "click.role": { "type": "string", "nullable": true, "description": "Role of the clicked element" }, "click.tag": { "type": "string", "nullable": true, "description": "HTML tag of the clicked element" }, "click.testid": { "type": "string", "nullable": true, "description": "Test ID of the clicked element" }, "click.text": { "type": "string", "nullable": true, "description": "Text of the clicked element" }, "click.title": { "type": "string", "nullable": true, "description": "Title of the clicked element" } }, "required": [ "click.alt", "click.classes", "click.component_name", "click.id", "click.label", "click.role", "click.tag", "click.testid", "click.text", "click.title" ] }, "description": "Clicks recorded during the replay, one object per click" }, "count_dead_clicks": { "type": "integer", "nullable": true, "description": "Number of dead clicks" }, "count_rage_clicks": { "type": "integer", "nullable": true, "description": "Number of rage clicks" }, "count_errors": { "type": "integer", "nullable": true, "description": "Number of errors linked to the replay" }, "duration": { "type": "integer", "nullable": true, "description": "Replay duration in seconds" }, "finished_at": { "type": "string", "nullable": true, "description": "When the replay finished (ISO 8601)" }, "started_at": { "type": "string", "nullable": true, "description": "When the replay started (ISO 8601)" }, "activity": { "type": "integer", "nullable": true, "description": "Replay activity score" }, "count_urls": { "type": "integer", "nullable": true, "description": "Number of URLs visited during the replay" }, "replay_type": { "type": "string", "description": "Recording mode of the replay, such as session or buffer" }, "count_segments": { "type": "integer", "nullable": true, "description": "Number of recording segments" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the replay" }, "releases": { "type": "array", "items": { "type": "string" }, "description": "Releases associated with the replay" }, "dist": { "type": "string", "nullable": true, "description": "Distribution of the replay" }, "count_warnings": { "type": "integer", "nullable": true, "description": "Number of warning events linked to the replay" }, "count_infos": { "type": "integer", "nullable": true, "description": "Number of info events linked to the replay" }, "has_viewed": { "type": "boolean", "description": "Whether the requesting user has viewed the replay" } } }, "description": "Replays that match the query" } }, "required": [ "data" ] }, "ListSelectors": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "count_dead_clicks": { "type": "integer", "description": "Number of dead clicks on the element" }, "count_rage_clicks": { "type": "integer", "description": "Number of rage clicks on the element" }, "dom_element": { "type": "string", "description": "CSS selector of the element, built from its tag, ID and classes" }, "element": { "type": "object", "properties": { "alt": { "type": "string", "description": "`alt` attribute of the element" }, "aria_label": { "type": "string", "description": "`aria-label` attribute of the element" }, "class": { "type": "array", "items": { "type": "string" }, "description": "CSS classes of the element" }, "component_name": { "type": "string", "description": "`data-sentry-component` attribute of the element" }, "id": { "type": "string", "description": "`id` attribute of the element" }, "role": { "type": "string", "description": "`role` attribute of the element" }, "tag": { "type": "string", "description": "HTML tag of the element" }, "testid": { "type": "string", "description": "`data-testid` attribute of the element" }, "title": { "type": "string", "description": "`title` attribute of the element" } }, "required": [ "alt", "aria_label", "class", "component_name", "id", "role", "tag", "testid", "title" ], "description": "Attributes of the clicked element" }, "project_id": { "type": "string", "description": "ID of the project the clicks were recorded in" } } }, "description": "Selectors of clicked elements that match the query" } }, "required": [ "data" ] }, "ListTeamProjectResponse": { "type": "array", "items": { "type": "object", "properties": { "latestDeploys": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed" }, "options": { "type": "object", "additionalProperties": {}, "description": "Requested project options, keyed by option name. Only included when options are requested" }, "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "nullable": true, "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms seen in the project's events" }, "hasUserReports": { "type": "boolean", "description": "Whether the project has received user reports" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments seen in the project's events" }, "latestRelease": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ], "nullable": true, "description": "Latest release of the project" } }, "required": [ "access", "dateCreated", "environments", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "hasUserReports", "id", "isBookmarked", "isMember", "latestRelease", "name", "platform", "platforms", "slug", "team", "teams" ] } }, "ListTraceItemAttributesResponse": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "description": "Key to use when querying the attribute" }, "name": { "type": "string", "description": "Display name of the attribute" }, "secondaryAliases": { "type": "array", "items": { "type": "string" }, "description": "Other names the attribute can be queried by" }, "attributeSource": { "type": "object", "properties": { "source_type": { "enum": [ "sentry", "user" ], "type": "string", "description": "Who set the attribute: `sentry` for attributes Sentry defines, or `user` for custom attributes" }, "is_transformed_alias": { "type": "boolean", "description": "Whether the attribute name is an alias Sentry maps to an internal column" } }, "required": [ "source_type" ], "description": "Where the attribute comes from" }, "attributeType": { "enum": [ "string", "number", "boolean", "array" ], "type": "string", "description": "Type of the attribute: `string`, `number`, `boolean` or `array`" }, "context": { "type": "object", "description": "Additional, mostly-static metadata about an attribute.\n\nWhen ``expand=context`` is requested, context is attached to every attribute.\nMetadata comes from the sentry conventions, Sentry's own column definitions,\nor user-authored context (gated behind ``data-browsing-attribute-context``),\nin that precedence order. Only the fields available are included, so an\nattribute with no metadata gets an empty context.", "properties": { "isConvention": { "type": "boolean", "description": "Whether this context comes from a known Sentry convention" }, "isCustom": { "type": "boolean", "description": "Whether this context was written by a user" }, "brief": { "type": "string", "description": "Short description of the attribute" }, "isDeprecated": { "type": "boolean", "description": "Whether the convention is deprecated" }, "details": { "type": "array", "items": { "type": "string" }, "description": "Longer notes about the attribute, such as caveats" }, "examples": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "boolean" } ] }, "description": "Example values for the attribute" }, "replacementAttribute": { "type": "string", "description": "Attribute that replaces this one, when it is deprecated" }, "isInOtel": { "type": "boolean", "description": "Whether this Sentry convention is part of the OpenTelemetry semantic conventions. Present (and true) only for such conventions; OpenTelemetry attributes that aren't Sentry conventions are never marked" }, "unit": { "enum": [ "byte", "currency", "millisecond", "percentage", "second" ], "type": "string", "description": "Unit of a number attribute, from the dataset's Sentry-defined attributes or from Sentry conventions, which apply in every dataset" } } } }, "required": [ "attributeSource", "attributeType", "key", "name" ] } }, "ListWorkflow": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Workflow ID" }, "name": { "type": "string", "description": "Workflow name" }, "type": { "type": "string", "description": "Type of the workflow, such as alert" }, "organizationId": { "type": "string", "description": "ID of the organization the workflow belongs to" }, "createdBy": { "type": "string", "nullable": true, "description": "ID of the user who created the workflow" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the workflow was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the workflow was last updated (ISO 8601)" }, "triggers": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } }, "nullable": true, "description": "Conditions on which the workflow triggers" }, "actionFilters": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } } }, "nullable": true, "description": "Filters to run before actions fire, each with the actions to fire" }, "environment": { "type": "string", "nullable": true, "description": "Name of the environment the workflow is limited to. Null for all environments" }, "config": { "type": "object", "additionalProperties": false, "properties": { "frequency": { "description": "How often the workflow should fire for a Group (minutes)", "type": "integer", "minimum": 0 } }, "description": "Configuration of the workflow, such as frequency in minutes" }, "detectorIds": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "IDs of the monitors connected to the workflow" }, "enabled": { "type": "boolean", "description": "Whether the workflow is enabled" }, "lastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the workflow last fired (ISO 8601)" }, "owner": { "type": "string", "nullable": true, "description": "Team or user that owns the workflow, such as user:123 or team:456" } }, "required": [ "actionFilters", "config", "createdBy", "dateCreated", "dateUpdated", "detectorIds", "enabled", "environment", "id", "lastTriggered", "name", "organizationId", "owner", "triggers", "type" ] } }, "MappingItem": { "type": "object", "properties": { "stack_root": { "type": "string", "description": "The path prefix to strip from matching stack frame filenames before adding sourceRoot.", "pattern": "^[^\\s'\\\"]+$" }, "source_root": { "type": "string", "description": "The repository path prefix that replaces stackRoot. For example, /app/pkg/file.py with stackRoot=/app/ and sourceRoot=src/ resolves to src/pkg/file.py.", "pattern": "^[^\\s'\\\"]+$" } }, "required": [ "source_root", "stack_root" ] }, "MetricIssueConditionGroupValidator": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logic_type": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": {} } }, "required": [ "conditions", "logic_type" ] }, "Monitor": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] }, "MonitorDataSourceValidator": { "type": "object", "description": "Data source validator for cron monitors.\n\nThis handles creating/updating the Monitor when a detector is created/updated.", "properties": { "name": { "type": "string", "description": "Name of the monitor. Used for notifications.", "maxLength": 128 }, "slug": { "type": "string", "description": "Uniquely identifies your monitor within your organization.", "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "status": { "type": "string" }, "owner": { "type": "string", "nullable": true }, "is_muted": { "type": "boolean" }, "config": { "type": "object", "additionalProperties": {} } }, "required": [ "config" ] }, "MonitorList": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the monitor" }, "name": { "type": "string", "description": "Name of the monitor" }, "slug": { "type": "string", "description": "Slug that identifies the monitor in the organization" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the monitor. Disabled monitors don't accept check-ins" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted in all of the monitor's environments" }, "isUpserting": { "type": "boolean", "description": "Whether the most recent check-in was an upsert check-in" }, "config": { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Type of schedule: crontab or interval" }, "schedule": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "integer" }, { "enum": [ "year", "month", "week", "day", "hour", "minute" ], "type": "string" } ] }, "minLength": 2, "maxLength": 2 } ], "description": "Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, \"day\"]" }, "checkin_margin": { "type": "integer", "nullable": true, "description": "How long in minutes after the expected check-in time to wait before the check-in counts as missed" }, "max_runtime": { "type": "integer", "nullable": true, "description": "How long in minutes a check-in can stay in progress before it counts as failed" }, "timezone": { "type": "string", "nullable": true, "description": "Timezone the schedule is evaluated in, as a tz database name" }, "failure_issue_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive missed or failed check-ins before an issue is created" }, "recovery_threshold": { "type": "integer", "nullable": true, "description": "Number of consecutive successful check-ins before the issue is resolved" }, "alert_rule_id": { "type": "integer", "nullable": true, "description": "ID of the alert rule linked to the monitor" } }, "required": [ "alert_rule_id", "checkin_margin", "failure_issue_threshold", "max_runtime", "recovery_threshold", "schedule", "schedule_type", "timezone" ], "description": "Configuration of the monitor" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the monitor belongs to" }, "environments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the environment" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress", "ok", "error" ], "type": "string", "description": "Status of the monitor in the environment" }, "isMuted": { "type": "boolean", "description": "Whether incidents are muted for the monitor in the environment" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the monitor was created (ISO 8601)" }, "lastCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the most recent check-in was received, not counting missed check-ins (ISO 8601)" }, "nextCheckIn": { "type": "string", "format": "date-time", "nullable": true, "description": "When the next check-in is expected (ISO 8601)" }, "nextCheckInLatest": { "type": "string", "format": "date-time", "nullable": true, "description": "Latest time the next check-in can arrive before it counts as missed (ISO 8601)" }, "activeIncident": { "type": "object", "properties": { "startingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident started (ISO 8601)" }, "resolvingTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the incident was resolved (ISO 8601)" }, "brokenNotice": { "type": "object", "properties": { "userNotifiedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When users were notified that the monitor environment looks broken (ISO 8601)" }, "environmentMutedTimestamp": { "type": "string", "format": "date-time", "nullable": true, "description": "When the broken monitor environment was muted (ISO 8601)" } }, "required": [ "environmentMutedTimestamp", "userNotifiedTimestamp" ], "nullable": true, "description": "Details of the broken monitor notice for the incident. Null when there's none" } }, "required": [ "brokenNotice", "resolvingTimestamp", "startingTimestamp" ], "nullable": true, "description": "Unresolved incident for the monitor in the environment. Null when there's none" } }, "required": [ "activeIncident", "dateCreated", "isMuted", "lastCheckIn", "name", "nextCheckIn", "nextCheckInLatest", "status" ] }, "description": "Environments the monitor has received check-ins for" }, "owner": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "Team or user that owns the monitor. Null when there's no owner" } }, "required": [ "config", "dateCreated", "environments", "id", "isMuted", "isUpserting", "name", "owner", "project", "slug", "status" ] } }, "MonitorValidator": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "project": { "type": "string", "description": "The project ID or slug to associate the monitor to." }, "name": { "type": "string", "description": "Name of the monitor. Used for notifications. If not set the slug will be derived from your monitor name.", "maxLength": 128 }, "config": { "allOf": [ { "type": "object", "properties": { "schedule_type": { "enum": [ "crontab", "interval" ], "type": "string", "description": "Currently supports \"crontab\" or \"interval\"\n\n* `crontab`\n* `interval`" }, "schedule": { "description": "Varies depending on the schedule_type. Is either a crontab string, or a 2 element tuple for intervals (e.g. [1, 'day'])" }, "checkin_margin": { "type": "integer", "maximum": 40320, "minimum": 1, "nullable": true, "description": "How long (in minutes) after the expected checkin time will we wait until we consider the checkin to have been missed." }, "max_runtime": { "type": "integer", "maximum": 10080, "minimum": 1, "nullable": true, "description": "How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed. Maximum 10080 (7 days)." }, "timezone": { "enum": [ "Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Asmera", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Timbuktu", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/ComodRivadavia", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Atka", "America/Bahia", "America/Bahia_Banderas", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Buenos_Aires", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Catamarca", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Coral_Harbour", "America/Cordoba", "America/Costa_Rica", "America/Coyhaique", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson", "America/Dawson_Creek", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Ensenada", "America/Fort_Nelson", "America/Fort_Wayne", "America/Fortaleza", "America/Glace_Bay", "America/Godthab", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Indianapolis", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Jujuy", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Knox_IN", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Louisville", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Mendoza", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montreal", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nipigon", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Pangnirtung", "America/Paramaribo", "America/Phoenix", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Acre", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rainy_River", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Rosario", "America/Santa_Isabel", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Shiprock", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Thunder_Bay", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Virgin", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "America/Yellowknife", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/South_Pole", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Ashkhabad", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Calcutta", "Asia/Chita", "Asia/Choibalsan", "Asia/Chongqing", "Asia/Chungking", "Asia/Colombo", "Asia/Dacca", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Harbin", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Istanbul", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kashgar", "Asia/Kathmandu", "Asia/Katmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macao", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Rangoon", "Asia/Riyadh", "Asia/Saigon", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Tel_Aviv", "Asia/Thimbu", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ujung_Pandang", "Asia/Ulaanbaatar", "Asia/Ulan_Bator", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faeroe", "Atlantic/Faroe", "Atlantic/Jan_Mayen", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/ACT", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Canberra", "Australia/Currie", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/LHI", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/NSW", "Australia/North", "Australia/Perth", "Australia/Queensland", "Australia/South", "Australia/Sydney", "Australia/Tasmania", "Australia/Victoria", "Australia/West", "Australia/Yancowinna", "Brazil/Acre", "Brazil/DeNoronha", "Brazil/East", "Brazil/West", "CET", "CST6CDT", "Canada/Atlantic", "Canada/Central", "Canada/Eastern", "Canada/Mountain", "Canada/Newfoundland", "Canada/Pacific", "Canada/Saskatchewan", "Canada/Yukon", "Chile/Continental", "Chile/EasterIsland", "Cuba", "EET", "EST", "EST5EDT", "Egypt", "Eire", "Etc/GMT", "Etc/GMT+0", "Etc/GMT+1", "Etc/GMT+10", "Etc/GMT+11", "Etc/GMT+12", "Etc/GMT+2", "Etc/GMT+3", "Etc/GMT+4", "Etc/GMT+5", "Etc/GMT+6", "Etc/GMT+7", "Etc/GMT+8", "Etc/GMT+9", "Etc/GMT-0", "Etc/GMT-1", "Etc/GMT-10", "Etc/GMT-11", "Etc/GMT-12", "Etc/GMT-13", "Etc/GMT-14", "Etc/GMT-2", "Etc/GMT-3", "Etc/GMT-4", "Etc/GMT-5", "Etc/GMT-6", "Etc/GMT-7", "Etc/GMT-8", "Etc/GMT-9", "Etc/GMT0", "Etc/Greenwich", "Etc/UCT", "Etc/UTC", "Etc/Universal", "Etc/Zulu", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belfast", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kiev", "Europe/Kirov", "Europe/Kyiv", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Nicosia", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Tiraspol", "Europe/Ulyanovsk", "Europe/Uzhgorod", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zaporozhye", "Europe/Zurich", "GB", "GB-Eire", "GMT", "GMT+0", "GMT-0", "GMT0", "Greenwich", "HST", "Hongkong", "Iceland", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Iran", "Israel", "Jamaica", "Japan", "Kwajalein", "Libya", "MET", "MST", "MST7MDT", "Mexico/BajaNorte", "Mexico/BajaSur", "Mexico/General", "NZ", "NZ-CHAT", "Navajo", "PRC", "PST8PDT", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Enderbury", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Johnston", "Pacific/Kanton", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Ponape", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Samoa", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Truk", "Pacific/Wake", "Pacific/Wallis", "Pacific/Yap", "Poland", "Portugal", "ROC", "ROK", "Singapore", "Turkey", "UCT", "US/Alaska", "US/Aleutian", "US/Arizona", "US/Central", "US/East-Indiana", "US/Eastern", "US/Hawaii", "US/Indiana-Starke", "US/Michigan", "US/Mountain", "US/Pacific", "US/Samoa", "UTC", "Universal", "W-SU", "WET", "Zulu", "localtime", "" ], "type": "string", "description": "tz database style timezone string\n\n* `Africa/Abidjan`\n* `Africa/Accra`\n* `Africa/Addis_Ababa`\n* `Africa/Algiers`\n* `Africa/Asmara`\n* `Africa/Asmera`\n* `Africa/Bamako`\n* `Africa/Bangui`\n* `Africa/Banjul`\n* `Africa/Bissau`\n* `Africa/Blantyre`\n* `Africa/Brazzaville`\n* `Africa/Bujumbura`\n* `Africa/Cairo`\n* `Africa/Casablanca`\n* `Africa/Ceuta`\n* `Africa/Conakry`\n* `Africa/Dakar`\n* `Africa/Dar_es_Salaam`\n* `Africa/Djibouti`\n* `Africa/Douala`\n* `Africa/El_Aaiun`\n* `Africa/Freetown`\n* `Africa/Gaborone`\n* `Africa/Harare`\n* `Africa/Johannesburg`\n* `Africa/Juba`\n* `Africa/Kampala`\n* `Africa/Khartoum`\n* `Africa/Kigali`\n* `Africa/Kinshasa`\n* `Africa/Lagos`\n* `Africa/Libreville`\n* `Africa/Lome`\n* `Africa/Luanda`\n* `Africa/Lubumbashi`\n* `Africa/Lusaka`\n* `Africa/Malabo`\n* `Africa/Maputo`\n* `Africa/Maseru`\n* `Africa/Mbabane`\n* `Africa/Mogadishu`\n* `Africa/Monrovia`\n* `Africa/Nairobi`\n* `Africa/Ndjamena`\n* `Africa/Niamey`\n* `Africa/Nouakchott`\n* `Africa/Ouagadougou`\n* `Africa/Porto-Novo`\n* `Africa/Sao_Tome`\n* `Africa/Timbuktu`\n* `Africa/Tripoli`\n* `Africa/Tunis`\n* `Africa/Windhoek`\n* `America/Adak`\n* `America/Anchorage`\n* `America/Anguilla`\n* `America/Antigua`\n* `America/Araguaina`\n* `America/Argentina/Buenos_Aires`\n* `America/Argentina/Catamarca`\n* `America/Argentina/ComodRivadavia`\n* `America/Argentina/Cordoba`\n* `America/Argentina/Jujuy`\n* `America/Argentina/La_Rioja`\n* `America/Argentina/Mendoza`\n* `America/Argentina/Rio_Gallegos`\n* `America/Argentina/Salta`\n* `America/Argentina/San_Juan`\n* `America/Argentina/San_Luis`\n* `America/Argentina/Tucuman`\n* `America/Argentina/Ushuaia`\n* `America/Aruba`\n* `America/Asuncion`\n* `America/Atikokan`\n* `America/Atka`\n* `America/Bahia`\n* `America/Bahia_Banderas`\n* `America/Barbados`\n* `America/Belem`\n* `America/Belize`\n* `America/Blanc-Sablon`\n* `America/Boa_Vista`\n* `America/Bogota`\n* `America/Boise`\n* `America/Buenos_Aires`\n* `America/Cambridge_Bay`\n* `America/Campo_Grande`\n* `America/Cancun`\n* `America/Caracas`\n* `America/Catamarca`\n* `America/Cayenne`\n* `America/Cayman`\n* `America/Chicago`\n* `America/Chihuahua`\n* `America/Ciudad_Juarez`\n* `America/Coral_Harbour`\n* `America/Cordoba`\n* `America/Costa_Rica`\n* `America/Coyhaique`\n* `America/Creston`\n* `America/Cuiaba`\n* `America/Curacao`\n* `America/Danmarkshavn`\n* `America/Dawson`\n* `America/Dawson_Creek`\n* `America/Denver`\n* `America/Detroit`\n* `America/Dominica`\n* `America/Edmonton`\n* `America/Eirunepe`\n* `America/El_Salvador`\n* `America/Ensenada`\n* `America/Fort_Nelson`\n* `America/Fort_Wayne`\n* `America/Fortaleza`\n* `America/Glace_Bay`\n* `America/Godthab`\n* `America/Goose_Bay`\n* `America/Grand_Turk`\n* `America/Grenada`\n* `America/Guadeloupe`\n* `America/Guatemala`\n* `America/Guayaquil`\n* `America/Guyana`\n* `America/Halifax`\n* `America/Havana`\n* `America/Hermosillo`\n* `America/Indiana/Indianapolis`\n* `America/Indiana/Knox`\n* `America/Indiana/Marengo`\n* `America/Indiana/Petersburg`\n* `America/Indiana/Tell_City`\n* `America/Indiana/Vevay`\n* `America/Indiana/Vincennes`\n* `America/Indiana/Winamac`\n* `America/Indianapolis`\n* `America/Inuvik`\n* `America/Iqaluit`\n* `America/Jamaica`\n* `America/Jujuy`\n* `America/Juneau`\n* `America/Kentucky/Louisville`\n* `America/Kentucky/Monticello`\n* `America/Knox_IN`\n* `America/Kralendijk`\n* `America/La_Paz`\n* `America/Lima`\n* `America/Los_Angeles`\n* `America/Louisville`\n* `America/Lower_Princes`\n* `America/Maceio`\n* `America/Managua`\n* `America/Manaus`\n* `America/Marigot`\n* `America/Martinique`\n* `America/Matamoros`\n* `America/Mazatlan`\n* `America/Mendoza`\n* `America/Menominee`\n* `America/Merida`\n* `America/Metlakatla`\n* `America/Mexico_City`\n* `America/Miquelon`\n* `America/Moncton`\n* `America/Monterrey`\n* `America/Montevideo`\n* `America/Montreal`\n* `America/Montserrat`\n* `America/Nassau`\n* `America/New_York`\n* `America/Nipigon`\n* `America/Nome`\n* `America/Noronha`\n* `America/North_Dakota/Beulah`\n* `America/North_Dakota/Center`\n* `America/North_Dakota/New_Salem`\n* `America/Nuuk`\n* `America/Ojinaga`\n* `America/Panama`\n* `America/Pangnirtung`\n* `America/Paramaribo`\n* `America/Phoenix`\n* `America/Port-au-Prince`\n* `America/Port_of_Spain`\n* `America/Porto_Acre`\n* `America/Porto_Velho`\n* `America/Puerto_Rico`\n* `America/Punta_Arenas`\n* `America/Rainy_River`\n* `America/Rankin_Inlet`\n* `America/Recife`\n* `America/Regina`\n* `America/Resolute`\n* `America/Rio_Branco`\n* `America/Rosario`\n* `America/Santa_Isabel`\n* `America/Santarem`\n* `America/Santiago`\n* `America/Santo_Domingo`\n* `America/Sao_Paulo`\n* `America/Scoresbysund`\n* `America/Shiprock`\n* `America/Sitka`\n* `America/St_Barthelemy`\n* `America/St_Johns`\n* `America/St_Kitts`\n* `America/St_Lucia`\n* `America/St_Thomas`\n* `America/St_Vincent`\n* `America/Swift_Current`\n* `America/Tegucigalpa`\n* `America/Thule`\n* `America/Thunder_Bay`\n* `America/Tijuana`\n* `America/Toronto`\n* `America/Tortola`\n* `America/Vancouver`\n* `America/Virgin`\n* `America/Whitehorse`\n* `America/Winnipeg`\n* `America/Yakutat`\n* `America/Yellowknife`\n* `Antarctica/Casey`\n* `Antarctica/Davis`\n* `Antarctica/DumontDUrville`\n* `Antarctica/Macquarie`\n* `Antarctica/Mawson`\n* `Antarctica/McMurdo`\n* `Antarctica/Palmer`\n* `Antarctica/Rothera`\n* `Antarctica/South_Pole`\n* `Antarctica/Syowa`\n* `Antarctica/Troll`\n* `Antarctica/Vostok`\n* `Arctic/Longyearbyen`\n* `Asia/Aden`\n* `Asia/Almaty`\n* `Asia/Amman`\n* `Asia/Anadyr`\n* `Asia/Aqtau`\n* `Asia/Aqtobe`\n* `Asia/Ashgabat`\n* `Asia/Ashkhabad`\n* `Asia/Atyrau`\n* `Asia/Baghdad`\n* `Asia/Bahrain`\n* `Asia/Baku`\n* `Asia/Bangkok`\n* `Asia/Barnaul`\n* `Asia/Beirut`\n* `Asia/Bishkek`\n* `Asia/Brunei`\n* `Asia/Calcutta`\n* `Asia/Chita`\n* `Asia/Choibalsan`\n* `Asia/Chongqing`\n* `Asia/Chungking`\n* `Asia/Colombo`\n* `Asia/Dacca`\n* `Asia/Damascus`\n* `Asia/Dhaka`\n* `Asia/Dili`\n* `Asia/Dubai`\n* `Asia/Dushanbe`\n* `Asia/Famagusta`\n* `Asia/Gaza`\n* `Asia/Harbin`\n* `Asia/Hebron`\n* `Asia/Ho_Chi_Minh`\n* `Asia/Hong_Kong`\n* `Asia/Hovd`\n* `Asia/Irkutsk`\n* `Asia/Istanbul`\n* `Asia/Jakarta`\n* `Asia/Jayapura`\n* `Asia/Jerusalem`\n* `Asia/Kabul`\n* `Asia/Kamchatka`\n* `Asia/Karachi`\n* `Asia/Kashgar`\n* `Asia/Kathmandu`\n* `Asia/Katmandu`\n* `Asia/Khandyga`\n* `Asia/Kolkata`\n* `Asia/Krasnoyarsk`\n* `Asia/Kuala_Lumpur`\n* `Asia/Kuching`\n* `Asia/Kuwait`\n* `Asia/Macao`\n* `Asia/Macau`\n* `Asia/Magadan`\n* `Asia/Makassar`\n* `Asia/Manila`\n* `Asia/Muscat`\n* `Asia/Nicosia`\n* `Asia/Novokuznetsk`\n* `Asia/Novosibirsk`\n* `Asia/Omsk`\n* `Asia/Oral`\n* `Asia/Phnom_Penh`\n* `Asia/Pontianak`\n* `Asia/Pyongyang`\n* `Asia/Qatar`\n* `Asia/Qostanay`\n* `Asia/Qyzylorda`\n* `Asia/Rangoon`\n* `Asia/Riyadh`\n* `Asia/Saigon`\n* `Asia/Sakhalin`\n* `Asia/Samarkand`\n* `Asia/Seoul`\n* `Asia/Shanghai`\n* `Asia/Singapore`\n* `Asia/Srednekolymsk`\n* `Asia/Taipei`\n* `Asia/Tashkent`\n* `Asia/Tbilisi`\n* `Asia/Tehran`\n* `Asia/Tel_Aviv`\n* `Asia/Thimbu`\n* `Asia/Thimphu`\n* `Asia/Tokyo`\n* `Asia/Tomsk`\n* `Asia/Ujung_Pandang`\n* `Asia/Ulaanbaatar`\n* `Asia/Ulan_Bator`\n* `Asia/Urumqi`\n* `Asia/Ust-Nera`\n* `Asia/Vientiane`\n* `Asia/Vladivostok`\n* `Asia/Yakutsk`\n* `Asia/Yangon`\n* `Asia/Yekaterinburg`\n* `Asia/Yerevan`\n* `Atlantic/Azores`\n* `Atlantic/Bermuda`\n* `Atlantic/Canary`\n* `Atlantic/Cape_Verde`\n* `Atlantic/Faeroe`\n* `Atlantic/Faroe`\n* `Atlantic/Jan_Mayen`\n* `Atlantic/Madeira`\n* `Atlantic/Reykjavik`\n* `Atlantic/South_Georgia`\n* `Atlantic/St_Helena`\n* `Atlantic/Stanley`\n* `Australia/ACT`\n* `Australia/Adelaide`\n* `Australia/Brisbane`\n* `Australia/Broken_Hill`\n* `Australia/Canberra`\n* `Australia/Currie`\n* `Australia/Darwin`\n* `Australia/Eucla`\n* `Australia/Hobart`\n* `Australia/LHI`\n* `Australia/Lindeman`\n* `Australia/Lord_Howe`\n* `Australia/Melbourne`\n* `Australia/NSW`\n* `Australia/North`\n* `Australia/Perth`\n* `Australia/Queensland`\n* `Australia/South`\n* `Australia/Sydney`\n* `Australia/Tasmania`\n* `Australia/Victoria`\n* `Australia/West`\n* `Australia/Yancowinna`\n* `Brazil/Acre`\n* `Brazil/DeNoronha`\n* `Brazil/East`\n* `Brazil/West`\n* `CET`\n* `CST6CDT`\n* `Canada/Atlantic`\n* `Canada/Central`\n* `Canada/Eastern`\n* `Canada/Mountain`\n* `Canada/Newfoundland`\n* `Canada/Pacific`\n* `Canada/Saskatchewan`\n* `Canada/Yukon`\n* `Chile/Continental`\n* `Chile/EasterIsland`\n* `Cuba`\n* `EET`\n* `EST`\n* `EST5EDT`\n* `Egypt`\n* `Eire`\n* `Etc/GMT`\n* `Etc/GMT+0`\n* `Etc/GMT+1`\n* `Etc/GMT+10`\n* `Etc/GMT+11`\n* `Etc/GMT+12`\n* `Etc/GMT+2`\n* `Etc/GMT+3`\n* `Etc/GMT+4`\n* `Etc/GMT+5`\n* `Etc/GMT+6`\n* `Etc/GMT+7`\n* `Etc/GMT+8`\n* `Etc/GMT+9`\n* `Etc/GMT-0`\n* `Etc/GMT-1`\n* `Etc/GMT-10`\n* `Etc/GMT-11`\n* `Etc/GMT-12`\n* `Etc/GMT-13`\n* `Etc/GMT-14`\n* `Etc/GMT-2`\n* `Etc/GMT-3`\n* `Etc/GMT-4`\n* `Etc/GMT-5`\n* `Etc/GMT-6`\n* `Etc/GMT-7`\n* `Etc/GMT-8`\n* `Etc/GMT-9`\n* `Etc/GMT0`\n* `Etc/Greenwich`\n* `Etc/UCT`\n* `Etc/UTC`\n* `Etc/Universal`\n* `Etc/Zulu`\n* `Europe/Amsterdam`\n* `Europe/Andorra`\n* `Europe/Astrakhan`\n* `Europe/Athens`\n* `Europe/Belfast`\n* `Europe/Belgrade`\n* `Europe/Berlin`\n* `Europe/Bratislava`\n* `Europe/Brussels`\n* `Europe/Bucharest`\n* `Europe/Budapest`\n* `Europe/Busingen`\n* `Europe/Chisinau`\n* `Europe/Copenhagen`\n* `Europe/Dublin`\n* `Europe/Gibraltar`\n* `Europe/Guernsey`\n* `Europe/Helsinki`\n* `Europe/Isle_of_Man`\n* `Europe/Istanbul`\n* `Europe/Jersey`\n* `Europe/Kaliningrad`\n* `Europe/Kiev`\n* `Europe/Kirov`\n* `Europe/Kyiv`\n* `Europe/Lisbon`\n* `Europe/Ljubljana`\n* `Europe/London`\n* `Europe/Luxembourg`\n* `Europe/Madrid`\n* `Europe/Malta`\n* `Europe/Mariehamn`\n* `Europe/Minsk`\n* `Europe/Monaco`\n* `Europe/Moscow`\n* `Europe/Nicosia`\n* `Europe/Oslo`\n* `Europe/Paris`\n* `Europe/Podgorica`\n* `Europe/Prague`\n* `Europe/Riga`\n* `Europe/Rome`\n* `Europe/Samara`\n* `Europe/San_Marino`\n* `Europe/Sarajevo`\n* `Europe/Saratov`\n* `Europe/Simferopol`\n* `Europe/Skopje`\n* `Europe/Sofia`\n* `Europe/Stockholm`\n* `Europe/Tallinn`\n* `Europe/Tirane`\n* `Europe/Tiraspol`\n* `Europe/Ulyanovsk`\n* `Europe/Uzhgorod`\n* `Europe/Vaduz`\n* `Europe/Vatican`\n* `Europe/Vienna`\n* `Europe/Vilnius`\n* `Europe/Volgograd`\n* `Europe/Warsaw`\n* `Europe/Zagreb`\n* `Europe/Zaporozhye`\n* `Europe/Zurich`\n* `GB`\n* `GB-Eire`\n* `GMT`\n* `GMT+0`\n* `GMT-0`\n* `GMT0`\n* `Greenwich`\n* `HST`\n* `Hongkong`\n* `Iceland`\n* `Indian/Antananarivo`\n* `Indian/Chagos`\n* `Indian/Christmas`\n* `Indian/Cocos`\n* `Indian/Comoro`\n* `Indian/Kerguelen`\n* `Indian/Mahe`\n* `Indian/Maldives`\n* `Indian/Mauritius`\n* `Indian/Mayotte`\n* `Indian/Reunion`\n* `Iran`\n* `Israel`\n* `Jamaica`\n* `Japan`\n* `Kwajalein`\n* `Libya`\n* `MET`\n* `MST`\n* `MST7MDT`\n* `Mexico/BajaNorte`\n* `Mexico/BajaSur`\n* `Mexico/General`\n* `NZ`\n* `NZ-CHAT`\n* `Navajo`\n* `PRC`\n* `PST8PDT`\n* `Pacific/Apia`\n* `Pacific/Auckland`\n* `Pacific/Bougainville`\n* `Pacific/Chatham`\n* `Pacific/Chuuk`\n* `Pacific/Easter`\n* `Pacific/Efate`\n* `Pacific/Enderbury`\n* `Pacific/Fakaofo`\n* `Pacific/Fiji`\n* `Pacific/Funafuti`\n* `Pacific/Galapagos`\n* `Pacific/Gambier`\n* `Pacific/Guadalcanal`\n* `Pacific/Guam`\n* `Pacific/Honolulu`\n* `Pacific/Johnston`\n* `Pacific/Kanton`\n* `Pacific/Kiritimati`\n* `Pacific/Kosrae`\n* `Pacific/Kwajalein`\n* `Pacific/Majuro`\n* `Pacific/Marquesas`\n* `Pacific/Midway`\n* `Pacific/Nauru`\n* `Pacific/Niue`\n* `Pacific/Norfolk`\n* `Pacific/Noumea`\n* `Pacific/Pago_Pago`\n* `Pacific/Palau`\n* `Pacific/Pitcairn`\n* `Pacific/Pohnpei`\n* `Pacific/Ponape`\n* `Pacific/Port_Moresby`\n* `Pacific/Rarotonga`\n* `Pacific/Saipan`\n* `Pacific/Samoa`\n* `Pacific/Tahiti`\n* `Pacific/Tarawa`\n* `Pacific/Tongatapu`\n* `Pacific/Truk`\n* `Pacific/Wake`\n* `Pacific/Wallis`\n* `Pacific/Yap`\n* `Poland`\n* `Portugal`\n* `ROC`\n* `ROK`\n* `Singapore`\n* `Turkey`\n* `UCT`\n* `US/Alaska`\n* `US/Aleutian`\n* `US/Arizona`\n* `US/Central`\n* `US/East-Indiana`\n* `US/Eastern`\n* `US/Hawaii`\n* `US/Indiana-Starke`\n* `US/Michigan`\n* `US/Mountain`\n* `US/Pacific`\n* `US/Samoa`\n* `UTC`\n* `Universal`\n* `W-SU`\n* `WET`\n* `Zulu`\n* `localtime`" }, "failure_issue_threshold": { "type": "integer", "maximum": 720, "minimum": 1, "nullable": true, "description": "How many consecutive missed or failed check-ins in a row before creating a new issue." }, "recovery_threshold": { "type": "integer", "maximum": 720, "minimum": 1, "nullable": true, "description": "How many successful check-ins in a row before resolving an issue." } }, "required": [ "schedule" ] } ], "description": "The configuration for the monitor." }, "slug": { "type": "string", "description": "Uniquely identifies your monitor within your organization. Changing this slug will require updates to any instrumented check-in calls.", "maxLength": 50, "pattern": "^(?![0-9]+$)[a-z0-9_\\-]+$" }, "status": { "enum": [ "active", "disabled" ], "type": "string", "default": "active", "description": "Status of the monitor. Disabled monitors will not accept events and will not count towards the monitor quota.\n\n* `active`\n* `disabled`" }, "owner": { "type": "string", "nullable": true, "description": "The ID of the team or user that owns the monitor. (eg. user:51 or team:6)" }, "is_muted": { "type": "boolean", "description": "Disable creation of monitor incidents" } }, "required": [ "config", "name", "project" ] }, "NotebookBlockResponse": { "type": "object", "description": "Notebook block. version is the block concurrency token; dependencies are block IDs and\nparameterKeys reference notebook parameters. output is the latest successful result and may\nremain available during a rerun; currentExecution describes the latest attempt. Poll\nexecution details for transcript and pending input. producerKey and producerRevision are\nset on blocks a producer wrote.", "properties": { "id": { "type": "string", "description": "The block ID" }, "position": { "type": "integer", "description": "The block's position in the notebook, starting at 0" }, "kind": { "type": "string", "description": "text for Markdown, or query for a data query" }, "title": { "type": "string", "description": "The block title. May be empty" }, "content": { "type": "string", "description": "The block's content: Markdown for text, the query for query" }, "generationPrompt": { "type": "string", "description": "Instructions used when running the block" }, "generatedContent": { "type": "string", "description": "The latest generated content, before anyone edited it" }, "output": { "description": "The latest successful result. Text blocks have schemaVersion and markdown", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "outputStatus": { "type": "string", "description": "available, notRun, or the status of the latest execution" }, "currentExecution": { "type": "object", "properties": { "id": { "type": "string", "description": "The execution ID" }, "status": { "type": "string", "description": "The execution status" }, "executor": { "type": "string", "description": "What ran the block" }, "schemaVersion": { "type": "integer", "description": "The version of the result's schema" }, "startedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution started" }, "completedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution finished, if it has" }, "error": { "description": "What went wrong, if the execution failed", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] } }, "required": [ "completedAt", "error", "executor", "id", "schemaVersion", "startedAt", "status" ], "nullable": true, "description": "The latest execution, if the block has run" }, "config": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block runs, such as auto-run" }, "display": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block is shown. Text uses type markdown; query uses table, line, bar, or area" }, "dependencies": { "type": "array", "items": { "type": "string" }, "description": "The IDs of blocks this block depends on" }, "parameterKeys": { "type": "array", "items": { "type": "string" }, "description": "The keys of the parameters the block uses" }, "version": { "type": "integer", "description": "The block's concurrency token. Send it as version with a change" }, "staleAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When an input changed after the output was made, if one did" }, "createdBy": { "type": "string", "nullable": true, "description": "The ID of the user who added the block, if a user did" }, "lastEditedBy": { "type": "string", "nullable": true, "description": "The ID of the user who last edited the block, if a user did" }, "producerKey": { "type": "string", "nullable": true, "description": "The producer's key for the block, if a producer wrote it" }, "producerRevision": { "type": "integer", "nullable": true, "description": "The producer's revision for the block, if a producer wrote it" } }, "required": [ "config", "content", "createdBy", "currentExecution", "dependencies", "display", "generatedContent", "generationPrompt", "id", "kind", "lastEditedBy", "output", "outputStatus", "parameterKeys", "position", "producerKey", "producerRevision", "staleAt", "title", "version" ] }, "NotebookCreateValidator": { "type": "object", "description": "Create a blank notebook, or find or create a producer's notebook for its source.\n\nNeeds organization and creator in its context.", "properties": { "title": { "type": "string", "description": "Investigation title.", "maxLength": 255 }, "projectIds": { "type": "array", "items": { "type": "integer", "minimum": 1 }, "description": "Unique IDs of accessible projects to include. Defaults to an empty list." }, "filters": { "type": "object", "additionalProperties": {}, "description": "Investigation filter object, stored with its original keys." }, "source": { "type": "object", "properties": { "type": { "type": "string" } }, "required": [ "type" ], "additionalProperties": true, "description": "What a producer writes this notebook about. type names a registered producer source type, and the other fields depend on it. Projects come from the source, so omit projectIds. An active notebook for the same source is returned instead of a new one." } }, "required": [ "title" ], "additionalProperties": false }, "NotebookDetailsResponse": { "type": "object", "description": "Full notebook with ordered active blocks, parameter definitions and saved values, project\nIDs, and source context. source.snapshot is present only for source-backed investigations.\nactionRequests has Seer's action requests that aren't superseded, plus stale ones while Seer\nre-checks them, newest report first, with that report's primary at the top.", "properties": { "id": { "type": "string", "description": "The notebook ID" }, "title": { "type": "string", "description": "The notebook title" }, "summary": { "type": "string", "nullable": true, "description": "A one-line summary of the notebook, if one was generated" }, "summaryDescription": { "type": "string", "nullable": true, "description": "A longer summary of the notebook, if one was generated" }, "status": { "type": "string", "description": "active or archived. Archived notebooks are read-only" }, "sourceType": { "type": "string", "description": "What the notebook is about: manual, or a source type" }, "createdBy": { "type": "string", "nullable": true, "description": "The ID of the user who created the notebook, if a user did" }, "creator": { "type": "object", "properties": { "type": { "enum": [ "user", "service_account", "system", "integration", "agent", "unknown" ], "type": "string", "description": "Whether a user or a service account created the notebook" }, "id": { "type": "string", "description": "The ID of the user or service account that created the notebook" } }, "required": [ "id", "type" ], "nullable": true, "description": "The user or service account that created the notebook" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the notebook was created" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the notebook last changed" }, "version": { "type": "integer", "description": "The notebook's concurrency token. Send it as notebookVersion with a change" }, "blockCount": { "type": "integer", "description": "The number of blocks the notebook has" }, "isFavorited": { "type": "boolean", "description": "Whether the requesting user favorited the notebook" }, "titleGeneration": { "type": "object", "properties": { "status": { "type": "string", "nullable": true, "description": "The state of automatic title generation, or null if it hasn't run" } }, "required": [ "status" ], "description": "The state of automatic title generation" }, "orchestration": { "type": "object", "properties": { "phase": { "type": "string", "description": "The phase the agent's run is in" }, "status": { "type": "string", "description": "The status of the agent's run" }, "heartbeatAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the run last reported progress" }, "notebookRevision": { "type": "integer", "description": "How many times the run has changed the notebook's report" } }, "required": [ "heartbeatAt", "notebookRevision", "phase", "status" ], "nullable": true, "description": "The agent's run for the notebook, if it has one" }, "template": { "type": "object", "properties": { "key": { "type": "string", "nullable": true, "description": "The key of the template the notebook started from, if any" }, "version": { "type": "integer", "nullable": true, "description": "The version of that template, if any" } }, "required": [ "key", "version" ], "nullable": true, "description": "The template the notebook started from, if any" }, "source": { "type": "object", "properties": { "snapshot": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "What Sentry knew about the source when the notebook started. Only on source-backed notebooks" }, "type": { "type": "string", "description": "The source type: manual, or the type of what the notebook is about" }, "ref": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "The identifying fields of the source, such as an issue ID. Empty for a manual notebook" }, "revision": { "type": "integer", "nullable": true, "description": "The notebook's revision for its source. A new revision starts once the previous one is archived. Null for a manual notebook" } }, "required": [ "ref", "revision", "type" ], "description": "What the notebook is about" }, "filters": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "Saved filters, stored with their original keys" }, "projectIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the projects the notebook covers" }, "parameters": { "type": "array", "items": { "type": "object", "description": "Parameter definition and saved override. type and constraints govern accepted values;\ndefaultValue and savedValue may be null. Use key in the parameter-values update request.", "properties": { "id": { "type": "string", "description": "The parameter ID" }, "key": { "type": "string", "description": "The key blocks use to refer to the parameter" }, "label": { "type": "string", "description": "The parameter's display name" }, "description": { "type": "string", "description": "What the parameter is for" }, "type": { "type": "string", "description": "The type of value the parameter takes" }, "required": { "type": "boolean", "description": "Whether the parameter needs a value" }, "constraints": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "Limits on the parameter's value, by type" }, "defaultValue": { "description": "The value used when none is saved", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "savedValue": { "description": "The saved value, or null", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "source": { "type": "string", "description": "Who defined the parameter" }, "position": { "type": "integer", "description": "The parameter's position in the notebook" }, "version": { "type": "integer", "description": "The parameter's concurrency token" } }, "required": [ "constraints", "defaultValue", "description", "id", "key", "label", "position", "required", "savedValue", "source", "type", "version" ] }, "description": "The notebook's parameters, in order" }, "blocks": { "type": "array", "items": { "type": "object", "description": "Notebook block. version is the block concurrency token; dependencies are block IDs and\nparameterKeys reference notebook parameters. output is the latest successful result and may\nremain available during a rerun; currentExecution describes the latest attempt. Poll\nexecution details for transcript and pending input. producerKey and producerRevision are\nset on blocks a producer wrote.", "properties": { "id": { "type": "string", "description": "The block ID" }, "position": { "type": "integer", "description": "The block's position in the notebook, starting at 0" }, "kind": { "type": "string", "description": "text for Markdown, or query for a data query" }, "title": { "type": "string", "description": "The block title. May be empty" }, "content": { "type": "string", "description": "The block's content: Markdown for text, the query for query" }, "generationPrompt": { "type": "string", "description": "Instructions used when running the block" }, "generatedContent": { "type": "string", "description": "The latest generated content, before anyone edited it" }, "output": { "description": "The latest successful result. Text blocks have schemaVersion and markdown", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "outputStatus": { "type": "string", "description": "available, notRun, or the status of the latest execution" }, "currentExecution": { "type": "object", "properties": { "id": { "type": "string", "description": "The execution ID" }, "status": { "type": "string", "description": "The execution status" }, "executor": { "type": "string", "description": "What ran the block" }, "schemaVersion": { "type": "integer", "description": "The version of the result's schema" }, "startedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution started" }, "completedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the execution finished, if it has" }, "error": { "description": "What went wrong, if the execution failed", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] } }, "required": [ "completedAt", "error", "executor", "id", "schemaVersion", "startedAt", "status" ], "nullable": true, "description": "The latest execution, if the block has run" }, "config": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block runs, such as auto-run" }, "display": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "How the block is shown. Text uses type markdown; query uses table, line, bar, or area" }, "dependencies": { "type": "array", "items": { "type": "string" }, "description": "The IDs of blocks this block depends on" }, "parameterKeys": { "type": "array", "items": { "type": "string" }, "description": "The keys of the parameters the block uses" }, "version": { "type": "integer", "description": "The block's concurrency token. Send it as version with a change" }, "staleAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When an input changed after the output was made, if one did" }, "createdBy": { "type": "string", "nullable": true, "description": "The ID of the user who added the block, if a user did" }, "lastEditedBy": { "type": "string", "nullable": true, "description": "The ID of the user who last edited the block, if a user did" }, "producerKey": { "type": "string", "nullable": true, "description": "The producer's key for the block, if a producer wrote it" }, "producerRevision": { "type": "integer", "nullable": true, "description": "The producer's revision for the block, if a producer wrote it" } }, "required": [ "config", "content", "createdBy", "currentExecution", "dependencies", "display", "generatedContent", "generationPrompt", "id", "kind", "lastEditedBy", "output", "outputStatus", "parameterKeys", "position", "producerKey", "producerRevision", "staleAt", "title", "version" ] }, "description": "The notebook's blocks, in order" }, "actionRequests": { "type": "array", "items": { "type": "object", "description": "A step Seer suggests. `primary` marks the recommended next step after a run, and `anchor`\nputs a request under a block or hypothesis. `action` is Seer's payload, or null when it's\nonly advice. `canApply` says whether this viewer can apply it now, and `cannotApplyReason`\nsays why not. What's in `appliedDetails` depends on the action kind, and `appliedBy` is null\nwhen Sentry applied it automatically. `followUp` is what Seer did with the re-check or re-run\nSentry sent for this request.", "properties": { "id": { "type": "string", "description": "The action request ID" }, "key": { "type": "string", "description": "The agent's key for the request" }, "reportRevision": { "type": "integer", "description": "The report revision that suggested it" }, "primary": { "type": "boolean", "description": "Whether it's the recommended next step" }, "anchor": { "type": "object", "description": "The block or hypothesis the request is under, if any", "properties": { "type": { "type": "string", "description": "block or hypothesis" }, "id": { "type": "string", "description": "The agent's ID for the block or hypothesis" }, "blockId": { "type": "string", "nullable": true, "description": "The ID of the block the request is under, if it still exists" } }, "required": [ "blockId", "id", "type" ], "nullable": true }, "title": { "type": "string", "description": "A short title for the step" }, "rationale": { "type": "string", "description": "Why the agent suggests it" }, "impact": { "type": "string", "nullable": true, "description": "What the step would change, if the agent said" }, "state": { "type": "string", "description": "suggested, applied, failed, superseded, or withdrawn" }, "reason": { "type": "string", "nullable": true, "description": "Why the request is in its state, if there's a reason" }, "action": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "nullable": true, "description": "The agent's action payload, or null when the request is only advice" }, "canApply": { "type": "boolean", "description": "Whether the requesting user can apply it now" }, "cannotApplyReason": { "enum": [ "investigation_archived", "not_suggested", "unsupported_action", "no_access", "not_target_detector", "detector_not_found", "permission_denied", "dynamic_detector", null ], "type": "string", "nullable": true, "description": "Why the requesting user can't apply it, if they can't" }, "appliedBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "The user who applied it. Null when Sentry applied it" }, "appliedDetails": { "anyOf": [ { "type": "object", "properties": { "detectorId": { "type": "string", "description": "The ID of the monitor that was changed" }, "detectorName": { "type": "string", "description": "The name of the monitor that was changed" }, "fields": { "type": "array", "items": { "type": "string" }, "description": "The monitor settings that were changed" } }, "required": [ "detectorId", "detectorName", "fields" ] }, { "type": "object", "properties": { "provider": { "enum": [ "datadog", "gcp" ], "type": "string", "description": "The telemetry provider that was connected" } }, "required": [ "provider" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "What applying it changed. The fields depend on the action" }, "dateApplied": { "type": "string", "format": "date-time", "nullable": true, "description": "When it was applied" }, "error": { "type": "object", "description": "What went wrong, if applying it failed", "properties": { "code": { "enum": [ "already_applied", "withdrawn", "stale", "validation_failed", "action_changed", "not_stale", "not_retryable" ], "type": "string", "description": "The error code" }, "current": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "description": "The current values of the settings the action would change" }, "messages": { "type": "array", "items": { "type": "string" }, "description": "Messages that explain the error" } }, "required": [ "code" ], "nullable": true }, "followUp": { "type": "object", "description": "The re-check or re-run Sentry sent the agent, if any", "properties": { "status": { "enum": [ "accepted", "dispatched", "acknowledged", "failed" ], "type": "string", "description": "Where the follow-up is" }, "reason": { "enum": [ "workflow_version_conflict", "idempotency_conflict", "invalid_command_target", "action_requests_report_changed", "run_cancelled", "run_failed", "provider_not_connected", "provider_already_used", null ], "type": "string", "nullable": true, "description": "Why the agent turned down or dropped the follow-up, if it did" }, "rerun": { "enum": [ "started", "held", "skipped", null ], "type": "string", "nullable": true, "description": "What the agent did with a re-run. Null for a re-check" }, "retryable": { "type": "boolean", "description": "Whether the requesting user can send it again" } }, "required": [ "reason", "rerun", "retryable", "status" ], "nullable": true }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the agent suggested it" } }, "required": [ "action", "anchor", "appliedBy", "appliedDetails", "canApply", "cannotApplyReason", "dateApplied", "dateCreated", "error", "followUp", "id", "impact", "key", "primary", "rationale", "reason", "reportRevision", "state", "title" ] }, "description": "Steps the agent suggests, newest report first" } }, "required": [ "actionRequests", "blockCount", "blocks", "createdBy", "creator", "dateCreated", "dateUpdated", "filters", "id", "isFavorited", "orchestration", "parameters", "projectIds", "source", "sourceType", "status", "summary", "summaryDescription", "template", "title", "titleGeneration", "version" ] }, "NotificationAction": { "type": "object", "description": "Django Rest Framework serializer for incoming NotificationAction API payloads", "properties": { "trigger_type": { "type": "string", "description": "Type of the trigger that causes the notification. The only supported trigger right now is: `spike-protection`." }, "service_type": { "type": "string", "description": "Service that is used for sending the notification.\n- `email`\n- `slack`\n- `sentry_notification`\n- `pagerduty`\n- `opsgenie`\n" }, "integration_id": { "type": "integer", "description": "ID of the integration used as the notification service. See\n[List Integrations](https://docs.sentry.io/api/integrations/list-an-organizations-available-integrations/)\nto retrieve a full list of integrations.\n\nRequired if **service_type** is `slack`, `pagerduty` or `opsgenie`.\n" }, "target_identifier": { "type": "string", "description": "ID of the notification target, like a Slack channel ID.\n\nRequired if **service_type** is `slack` or `opsgenie`.\n" }, "target_display": { "type": "string", "description": "Name of the notification target, like a Slack channel name.\n\nRequired if **service_type** is `slack` or `opsgenie`.\n" }, "projects": { "type": "array", "items": { "type": "string" }, "description": "List of project IDs or slugs that the Notification Action is created for." }, "sentry_app_id": { "type": "integer", "description": "ID of the custom integration to notify, when the target is a Sentry app." }, "target_type": { "type": "string", "default": "specific", "description": "How the notification target is addressed." } }, "required": [ "service_type", "trigger_type" ] }, "OrgAuthToken": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the org auth token" }, "name": { "type": "string", "description": "Name of the org auth token" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes granted to the token, such as org:ci" }, "tokenLastCharacters": { "type": "string", "nullable": true, "description": "Last four characters of the token, to tell tokens apart, or null" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the token was created" }, "dateLastUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the token last authenticated a request, or null" }, "projectLastUsedId": { "type": "string", "nullable": true, "description": "ID of the project the token was last used with, or null" }, "token": { "type": "string", "description": "The full token. Only included in the response that creates the token, and can't be retrieved again" } }, "required": [ "dateCreated", "dateLastUsed", "id", "name", "projectLastUsedId", "scopes", "tokenLastCharacters" ] }, "OrgAuthTokenCreate": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Required. A name for the token, up to 255 characters, to tell it apart from the organization's other tokens." }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes to grant the token. Org auth tokens can only be granted `org:ci`, which is also the default: `[\"org:ci\"]`." } } }, "OrgAuthTokenListResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the org auth token" }, "name": { "type": "string", "description": "Name of the org auth token" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes granted to the token, such as org:ci" }, "tokenLastCharacters": { "type": "string", "nullable": true, "description": "Last four characters of the token, to tell tokens apart, or null" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the token was created" }, "dateLastUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the token last authenticated a request, or null" }, "projectLastUsedId": { "type": "string", "nullable": true, "description": "ID of the project the token was last used with, or null" }, "token": { "type": "string", "description": "The full token. Only included in the response that creates the token, and can't be retrieved again" } }, "required": [ "dateCreated", "dateLastUsed", "id", "name", "projectLastUsedId", "scopes", "tokenLastCharacters" ] } }, "OrgReleaseResponse": { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release started (ISO 8601)" }, "owner": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "Release owner" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its first event (ISO 8601)" }, "lastEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its most recent event (ISO 8601)" }, "currentProjectMeta": { "type": "object", "properties": { "sessionsLowerBound": { "type": "string", "nullable": true, "description": "Start of the release's sessions in the project (ISO 8601)" }, "sessionsUpperBound": { "type": "string", "nullable": true, "description": "End of the release's sessions in the project (ISO 8601)" }, "nextReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the next release in the project" }, "prevReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the previous release in the project" }, "firstReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the first release in the project" }, "lastReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the latest release in the project" } }, "nullable": true, "description": "Session bounds and neighboring release versions in the current project, when a project is requested" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "adoptionStages": { "type": "object", "additionalProperties": { "type": "object", "properties": { "stage": { "enum": [ "adopted", "low_adoption", "replaced" ], "type": "string", "description": "Adoption stage of the release" }, "adopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was adopted (ISO 8601)" }, "unadopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release stopped being adopted (ISO 8601)" } }, "required": [ "adopted", "stage", "unadopted" ] }, "nullable": true, "description": "Adoption stage of the release in each project, keyed by project slug" }, "id": { "type": "integer", "description": "Release ID" }, "version": { "type": "string", "description": "Version of the release" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "shortVersion": { "type": "string", "description": "Shortened release version" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "authors": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] } ] }, "description": "Authors of the release's commits" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "healthData": { "type": "object", "properties": { "durationP50": { "type": "number", "format": "double", "nullable": true, "description": "Median session duration in seconds" }, "durationP90": { "type": "number", "format": "double", "nullable": true, "description": "90th percentile session duration in seconds" }, "crashFreeUsers": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of users who didn't experience a crash" }, "crashFreeSessions": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of sessions that didn't crash" }, "totalUsers": { "type": "integer", "nullable": true, "description": "Total number of users in the release" }, "totalUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the release over the last 24 hours" }, "totalProjectUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the project over the last 24 hours" }, "totalSessions": { "type": "integer", "nullable": true, "description": "Total number of sessions in the release" }, "totalSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the release over the last 24 hours" }, "totalProjectSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the project over the last 24 hours" }, "adoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's users over the last 24 hours that were on the release" }, "sessionsAdoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's sessions over the last 24 hours that were on the release" }, "sessionsCrashed": { "type": "integer", "description": "Number of crashed sessions" }, "sessionsErrored": { "type": "integer", "description": "Number of sessions with errors" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "description": "Session or user counts over time, keyed by stats period" } }, "required": [ "hasHealthData", "sessionsCrashed", "sessionsErrored", "stats" ], "nullable": true, "description": "Release health data for the project. Only included when health data is requested" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released in the project (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When work on the release started (ISO 8601)" }, "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Platforms of the project" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data in the project" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release in the project" } }, "required": [ "hasHealthData", "id", "name", "newGroups", "platform", "platforms", "slug" ] }, "description": "Projects in the release" } }, "required": [ "authors", "commitCount", "data", "deployCount", "id", "newGroups", "projects", "shortVersion", "status", "version", "versionInfo" ] }, "OrganizationCodeMappingResponse": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the code mapping" }, "projectId": { "type": "string", "description": "ID of the project" }, "projectSlug": { "type": "string", "description": "Slug of the project" }, "repoId": { "type": "string", "description": "ID of the repository" }, "repoName": { "type": "string", "description": "Name of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "nullable": true, "description": "Provider of the repository's integration" }, "stackRoot": { "type": "string", "description": "Stack trace path prefix that the mapping replaces" }, "sourceRoot": { "type": "string", "description": "Repository path prefix that replaces the stack root" }, "defaultBranch": { "type": "string", "nullable": true, "description": "Branch to link source files on" }, "automaticallyGenerated": { "type": "boolean", "description": "Whether Sentry created the mapping automatically" }, "hasCodeOwner": { "type": "boolean", "description": "Whether the mapping has a CODEOWNERS file linked" } }, "required": [ "automaticallyGenerated", "defaultBranch", "hasCodeOwner", "id", "integrationId", "projectId", "projectSlug", "provider", "repoId", "repoName", "sourceRoot", "stackRoot" ] }, "OrganizationCodeOwnersAssociationsResponse": { "type": "object", "additionalProperties": { "type": "object", "properties": { "associations": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Sentry user or team for each owner in the CODEOWNERS file, keyed by the owner's name in the file" }, "errors": { "type": "object", "properties": { "missing_user_emails": { "type": "array", "items": { "type": "string" }, "description": "Email owners in the CODEOWNERS file with no matching Sentry user" }, "missing_external_users": { "type": "array", "items": { "type": "string" }, "description": "User owners in the CODEOWNERS file with no external user mapping" }, "missing_external_teams": { "type": "array", "items": { "type": "string" }, "description": "Team owners in the CODEOWNERS file with no external team mapping" }, "teams_without_access": { "type": "array", "items": { "type": "string" }, "description": "Teams in the CODEOWNERS file that don't have access to the project" }, "users_without_access": { "type": "array", "items": { "type": "string" }, "description": "Users in the CODEOWNERS file who aren't members of a team with access to the project" } }, "required": [ "missing_external_teams", "missing_external_users", "missing_user_emails", "teams_without_access", "users_without_access" ], "description": "Owners in the CODEOWNERS file that couldn't be associated, by reason" } }, "required": [ "associations", "errors" ] } }, "OrganizationConfigIntegrationsEndpointResponse": { "type": "object", "properties": { "providers": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "metadata": { "type": "object", "description": "Provider metadata, such as description, author, source URL and setup details", "properties": { "description": { "type": "string", "description": "Description of the integration, in Markdown" }, "features": { "type": "array", "items": { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the feature, in Markdown" }, "featureGate": { "type": "string", "nullable": true, "description": "Organization feature flag that gates the feature, such as integrations-commits" } }, "required": [ "description", "featureGate" ] }, "description": "Features the integration provides" }, "author": { "type": "string", "description": "Author of the integration" }, "noun": { "type": "string", "description": "Noun for one installation, such as Installation or Account" }, "issue_url": { "type": "string", "description": "URL to report problems with the integration" }, "source_url": { "type": "string", "description": "URL of the integration's source or docs" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "author", "description", "features", "issue_url", "noun", "source_url" ], "nullable": true }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" } }, "required": [ "canAdd", "canDisable", "features", "key", "metadata", "name", "slug" ] }, "description": "Integration providers available to the organization" } }, "required": [ "providers" ] }, "OrganizationDetailsPut": { "type": "object", "properties": { "slug": { "type": "string", "description": "The new slug for the organization, which needs to be unique.", "maxLength": 50 }, "name": { "type": "string", "description": "The new name for the organization.", "maxLength": 64 }, "isEarlyAdopter": { "type": "boolean", "description": "Specify `true` to opt-in to new features before they're released to the public." }, "hideAiFeatures": { "type": "boolean", "description": "Specify `true` to hide AI features from the organization." }, "defaultRole": { "enum": [ "member", "admin", "manager", "owner" ], "type": "string", "description": "The default role new members will receive.\n\n* `member` - Member\n* `admin` - Admin\n* `manager` - Manager\n* `owner` - Owner" }, "openMembership": { "type": "boolean", "description": "Specify `true` to allow organization members to freely join any team." }, "eventsMemberAdmin": { "type": "boolean", "description": "Specify `true` to allow members to delete events (including the delete & discard action) by granting them the `event:admin` scope." }, "alertsMemberWrite": { "type": "boolean", "description": "Specify `true` to allow members to create, edit, and delete alert rules by granting them the `alerts:write` scope." }, "attachmentsRole": { "enum": [ "member", "admin", "manager", "owner" ], "type": "string", "description": "The role required to download event attachments, such as native crash reports or log files.\n\n* `member` - Member\n* `admin` - Admin\n* `manager` - Manager\n* `owner` - Owner" }, "debugFilesRole": { "enum": [ "member", "admin", "manager", "owner" ], "type": "string", "description": "The role required to download debug information files, ProGuard mappings and source maps.\n\n* `member` - Member\n* `admin` - Admin\n* `manager` - Manager\n* `owner` - Owner" }, "hasGranularReplayPermissions": { "type": "boolean", "description": "Specify `true` to enable granular replay permissions, allowing per-member access control for replay data." }, "replayAccessMembers": { "type": "array", "items": { "type": "integer" }, "nullable": true, "description": "A list of user IDs who have permission to access replay data. Requires the hasGranularReplayPermissions flag to be true to be enforced." }, "avatarType": { "enum": [ "letter_avatar", "upload" ], "type": "string", "description": "The type of display picture for the organization.\n\n* `letter_avatar` - Use initials\n* `upload` - Upload an image" }, "avatar": { "type": "string", "description": "The image to upload as the organization avatar, in base64. Required if `avatarType` is `upload`." }, "require2FA": { "type": "boolean", "description": "Specify `true` to require and enforce two-factor authentication for all members." }, "allowSharedIssues": { "type": "boolean", "description": "Specify `true` to allow sharing of limited details on issues to anonymous users." }, "enhancedPrivacy": { "type": "boolean", "description": "Specify `true` to enable enhanced privacy controls to limit personally identifiable information (PII) as well as source code in things like notifications." }, "scrapeJavaScript": { "type": "boolean", "description": "Specify `true` to allow Sentry to scrape missing JavaScript source context when possible." }, "storeCrashReports": { "enum": [ 0, 1, 5, 10, 20, 50, 100, -1 ], "type": "integer", "description": "How many native crash reports (such as Minidumps for improved processing and download in issue details) to store per issue.\n\n* `0` - Disabled\n* `1` - 1 per issue\n* `5` - 5 per issue\n* `10` - 10 per issue\n* `20` - 20 per issue\n* `50` - 50 per issue\n* `100` - 100 per issue\n* `-1` - Unlimited" }, "allowJoinRequests": { "type": "boolean", "description": "Specify `true` to allow users to request to join your organization." }, "dataScrubber": { "type": "boolean", "description": "Specify `true` to require server-side data scrubbing for all projects." }, "dataScrubberDefaults": { "type": "boolean", "description": "Specify `true` to apply the default scrubbers to prevent things like passwords and credit cards from being stored for all projects." }, "sensitiveFields": { "type": "array", "items": { "type": "string" }, "description": "A list of additional global field names to match against when scrubbing data for all projects." }, "safeFields": { "type": "array", "items": { "type": "string" }, "description": "A list of global field names which data scrubbers should ignore." }, "scrubIPAddresses": { "type": "boolean", "description": "Specify `true` to prevent IP addresses from being stored for new events on all projects." }, "relayPiiConfig": { "type": "string", "description": "Advanced data scrubbing rules that can be configured for each project as a JSON string. The new rules will only apply to new incoming events. For more details on advanced data scrubbing, see our [full documentation](/security-legal-pii/scrubbing/advanced-datascrubbing/).\n\n> Warning: Calling this endpoint with this field fully overwrites the advanced data scrubbing rules.\n\nBelow is an example of a payload for a set of advanced data scrubbing rules for masking credit card numbers from the log message (equivalent to `[Mask] [Credit card numbers] from [$message]` in the Sentry app) and removing a specific key called `foo` (equivalent to `[Remove] [Anything] from [extra.foo]` in the Sentry app):\n```json\n{\n relayPiiConfig: \"{\\\"rules\":{\\\"0\\\":{\\\"type\\\":\\\"creditcard\\\",\\\"redaction\\\":{\\\"method\\\":\\\"mask\\\"}},\\\"1\\\":{\\\"type\\\":\\\"anything\\\",\\\"redaction\\\":{\\\"method\\\":\\\"remove\\\"}}},\\\"applications\\\":{\\\"$message\\\":[\\\"0\\\"],\\\"extra.foo\\\":[\\\"1\\\"]}}\"\n}\n```\n " }, "trustedRelays": { "type": "array", "items": { "type": "object", "additionalProperties": {} }, "description": "A list of local Relays (the name, public key, and description as a JSON) registered for the organization. This feature is only available for organizations on the Business and Enterprise plans. Read more about Relay [here](/product/relay/).\n\n Below is an example of a list containing a single local Relay registered for the organization:\n ```json\n {\n trustedRelays: [\n {\n name: \"my-relay\",\n publicKey: \"eiwr9fdruw4erfh892qy4493reyf89ur34wefd90h\",\n description: \"Configuration for my-relay.\"\n }\n ]\n }\n ```\n " }, "relayDsnEndpoint": { "type": "string", "nullable": true, "description": "A Relay base URL to use when displaying Client Key DSNs for this organization." }, "issueAlertsThreadFlag": { "type": "boolean", "description": "Specify `true` to allow the Sentry Slack integration to post replies in threads for an Issue Alert notification. Requires a Slack integration." }, "metricAlertsThreadFlag": { "type": "boolean", "description": "Specify `true` to allow the Sentry Slack integration to post replies in threads for a Metric Alert notification. Requires a Slack integration." }, "cancelDeletion": { "type": "boolean", "description": "Specify `true` to restore an organization that is pending deletion." }, "apdexThreshold": { "type": "integer", "description": "Deprecated. Response-time threshold in milliseconds previously used to compute Apdex." } } }, "OrganizationEnvironmentResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the environment" }, "name": { "type": "string", "description": "Name of the environment" } }, "required": [ "id", "name" ] } }, "OrganizationEventsDroppedResponse": { "type": "object", "properties": { "meta": { "type": "object", "properties": { "dataset": { "type": "string", "description": "Dataset that was queried" }, "start": { "type": "number", "format": "double", "description": "Start of the queried time range, in milliseconds since the Unix epoch" }, "end": { "type": "number", "format": "double", "description": "End of the queried time range, in milliseconds since the Unix epoch" }, "interval": { "type": "number", "format": "double", "description": "Width of each bucket, in milliseconds" }, "suppressedDrops": { "type": "array", "items": { "type": "object", "description": "Drop volume withheld from the dropped annotations as a known misreport.", "properties": { "cause": { "type": "string", "description": "Why the drop volume was withheld, such as `js_sdk_below_11`" }, "category": { "type": "string", "description": "Data category of the withheld events" }, "outcome": { "type": "string", "description": "Outcome of the withheld events" }, "reason": { "type": "string", "description": "Reason for the outcome of the withheld events" }, "count": { "type": "integer", "description": "Number of withheld events" } }, "required": [ "category", "cause", "count", "outcome", "reason" ] }, "description": "Dropped volume withheld from `droppedEvents` because it is a known SDK misreport" } }, "required": [ "dataset", "end", "interval", "start", "suppressedDrops" ], "description": "Metadata about the query" }, "droppedEvents": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Annotation type. Always `system`" }, "category": { "type": "string", "description": "Data category of the events, such as `log_item`" }, "outcome": { "type": "string", "description": "Outcome of the events, such as `rate_limited` or `filtered`, or `accepted` for accepted events" }, "reason": { "type": "string", "description": "Reason for the outcome within its outcome class, or `accepted` for accepted events" }, "start": { "type": "number", "format": "double", "description": "Start of the bucket, in milliseconds since the Unix epoch" }, "end": { "type": "number", "format": "double", "description": "End of the bucket, in milliseconds since the Unix epoch" }, "count": { "type": "number", "format": "double", "description": "Number of events in the bucket" }, "tags": { "type": "array", "items": { "type": "string" }, "description": "Whether the drop is `intentional` (user-configured) or `unintentional`. Empty for accepted events" } }, "required": [ "category", "count", "end", "outcome", "reason", "start", "tags", "type" ] }, "description": "Dropped event volume, one entry per bucket, outcome and reason" }, "acceptedEvents": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Annotation type. Always `system`" }, "category": { "type": "string", "description": "Data category of the events, such as `log_item`" }, "outcome": { "type": "string", "description": "Outcome of the events, such as `rate_limited` or `filtered`, or `accepted` for accepted events" }, "reason": { "type": "string", "description": "Reason for the outcome within its outcome class, or `accepted` for accepted events" }, "start": { "type": "number", "format": "double", "description": "Start of the bucket, in milliseconds since the Unix epoch" }, "end": { "type": "number", "format": "double", "description": "End of the bucket, in milliseconds since the Unix epoch" }, "count": { "type": "number", "format": "double", "description": "Number of events in the bucket" }, "tags": { "type": "array", "items": { "type": "string" }, "description": "Whether the drop is `intentional` (user-configured) or `unintentional`. Empty for accepted events" } }, "required": [ "category", "count", "end", "outcome", "reason", "start", "tags", "type" ] }, "description": "Accepted event volume, one entry per bucket" } }, "required": [ "acceptedEvents", "droppedEvents", "meta" ] }, "OrganizationEventsResponseDict": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "additionalProperties": {} }, "description": "Rows returned by the query, keyed by the requested fields" }, "meta": { "type": "object", "description": "Meta envelope emitted by `handle_results_with_meta` and the\nempty-projects short-circuit. Every key is optional because the path\nthat emits it depends on flags (`standard_meta`, debug, dataset) — the\nno-projects path only carries `tips`, the standard path carries\neverything below.", "properties": { "fields": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Type of each returned field, keyed by field name" }, "units": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Unit of each returned field, keyed by field name, or null if the field has no unit" }, "tips": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Suggestions for improving the query, under the `query` and `columns` keys" }, "datasetReason": { "type": "string", "description": "Why the query ran on a different dataset than requested, or unchanged" }, "isMetricsData": { "type": "boolean", "description": "Whether the results came from metrics data" }, "isMetricsExtractedData": { "type": "boolean", "description": "Whether the results came from metrics extracted on demand" }, "dataset": { "type": "string", "description": "Dataset that was queried" }, "discoverSplitDecision": { "enum": [ "error-events", "transaction-like" ], "type": "string", "description": "Dataset the results were taken from when a Discover dashboard widget query was split between errors and transactions" }, "dataScanned": { "type": "string", "description": "Whether the query scanned the `full` data set or only a `partial` sample" }, "bytesScanned": { "type": "integer", "description": "Number of bytes the query scanned" }, "routingHint": { "type": "string", "description": "Opaque routing hint of an EAP table query. Pass it unchanged as routing_hint when fetching item details for a row" }, "debug_info": { "description": "Debug information about the query. Only present when `debug` is passed" }, "ingestion": { "type": "object", "description": "Ingestion status for the data behind a response.", "properties": { "status": { "type": "string", "description": "Ingestion status of the data: healthy, stalled, idle or unknown" }, "delaySeconds": { "type": "number", "format": "double", "description": "Measured ingestion delay in seconds" }, "completeThrough": { "type": "number", "format": "double", "description": "Time through which the data is complete, as a Unix timestamp in milliseconds" } }, "required": [ "status" ] } } } }, "required": [ "data", "meta" ] }, "OrganizationEventsTimeseriesResponse": { "type": "object", "properties": { "meta": { "type": "object", "properties": { "dataset": { "type": "string", "description": "Dataset that was queried" }, "start": { "type": "number", "format": "double", "description": "Start of the queried time range, in milliseconds since the Unix epoch" }, "end": { "type": "number", "format": "double", "description": "End of the queried time range, in milliseconds since the Unix epoch" }, "ingestion": { "type": "object", "description": "Ingestion status for the data behind a response.", "properties": { "status": { "type": "string", "description": "Ingestion status of the data: healthy, stalled, idle or unknown" }, "delaySeconds": { "type": "number", "format": "double", "description": "Measured ingestion delay in seconds" }, "completeThrough": { "type": "number", "format": "double", "description": "Time through which the data is complete, as a Unix timestamp in milliseconds" } }, "required": [ "status" ] } }, "required": [ "dataset", "end", "start" ], "description": "Metadata about the query" }, "timeSeries": { "type": "array", "items": { "type": "object", "properties": { "values": { "type": "array", "items": { "type": "object", "properties": { "timestamp": { "type": "number", "format": "double", "description": "Start of the bucket, in milliseconds since the Unix epoch" }, "value": { "type": "number", "format": "double", "nullable": true, "description": "Value of the aggregate for this bucket, or null if there is no data" }, "incomplete": { "type": "boolean", "description": "Whether this bucket may hold incomplete data" }, "comparisonValue": { "type": "number", "format": "double", "nullable": true, "description": "Value of the aggregate for the same bucket in the comparison period" }, "filled": { "type": "boolean", "description": "Whether this value was filled in by a fill transformation" }, "smoothed": { "type": "boolean", "description": "Whether this value was produced by a smoothing transformation" }, "comparisonFilled": { "type": "boolean", "description": "Whether the comparison value was filled in by a fill transformation" }, "comparisonSmoothed": { "type": "boolean", "description": "Whether the comparison value was produced by a smoothing transformation" }, "sampleCount": { "type": "number", "format": "double", "description": "Number of sampled rows that make up this bucket" }, "sampleRate": { "type": "number", "format": "double", "nullable": true, "description": "Sampling rate of the data in this bucket, or null if the bucket has no data" }, "confidence": { "enum": [ "low", "high", null ], "type": "string", "nullable": true, "description": "Confidence in the extrapolated value: `low` or `high`" }, "incompleteReason": { "type": "string", "description": "Why the bucket is incomplete: `NOT_ELAPSED`, `INGESTION_PENDING` or `OUTSIDE_RETENTION`" } }, "required": [ "incomplete", "timestamp", "value" ] }, "description": "Buckets in the series, in time order" }, "yAxis": { "type": "string", "description": "Aggregate this series plots, such as `count()`" }, "groupBy": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "description": "Name of the field this series is grouped by" }, "value": { "anyOf": [ { "type": "string" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Value of the grouped field for this series" } }, "required": [ "key", "value" ] }, "description": "Fields and values that identify this series when results are grouped" }, "meta": { "type": "object", "properties": { "order": { "type": "integer", "description": "Position of this series among the top events series" }, "isOther": { "type": "boolean", "description": "Whether this series aggregates all events outside the top events" }, "valueUnit": { "type": "string", "nullable": true, "description": "Unit of the values, such as `millisecond` or `byte`, or null if they have no unit" }, "dataScanned": { "enum": [ "partial", "full" ], "type": "string", "description": "Whether the query scanned the `full` data set or only a `partial` sample" }, "valueType": { "type": "string", "description": "Type of the values, such as `integer`, `duration` or `size`" }, "interval": { "type": "number", "format": "double", "description": "Width of each bucket, in milliseconds" } }, "required": [ "interval", "valueType", "valueUnit" ], "description": "Metadata about the series" } }, "required": [ "meta", "values", "yAxis" ] }, "description": "Series returned by the query, one per y-axis and group" } }, "required": [ "timeSeries" ] }, "OrganizationGroupIndexGetResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the issue" }, "shareId": { "type": "string", "nullable": true, "description": "ID used in the issue's public share URL. Null when the issue isn't shared" }, "shortId": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "title": { "type": "string", "description": "Title of the issue" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "permalink": { "type": "string", "description": "URL of the issue in Sentry" }, "logger": { "type": "string", "nullable": true, "description": "Logger of the issue's events" }, "level": { "enum": [ "sample", "debug", "info", "warning", "error", "fatal", "unknown" ], "type": "string", "description": "Severity level of the issue" }, "status": { "enum": [ "resolved", "ignored", "pending_deletion", "pending_merge", "reprocessing", "unresolved" ], "type": "string", "description": "Issue status" }, "statusDetails": { "type": "object", "properties": { "ignoreCount": { "type": "integer", "nullable": true, "description": "Number of additional events after which the issue stops being ignored" }, "ignoreUntil": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue stops being ignored (ISO 8601)" }, "ignoreUserCount": { "type": "integer", "nullable": true, "description": "Number of additional affected users after which the issue stops being ignored" }, "ignoreUserWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreUserCount" }, "ignoreWindow": { "type": "integer", "nullable": true, "description": "Time window in minutes for ignoreCount" }, "actor": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who ignored or resolved the issue" }, "inNextRelease": { "type": "boolean", "description": "Whether the issue is resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issue is resolved in" }, "inCommit": { "type": "string", "description": "Commit the issue is resolved in" }, "pendingEvents": { "type": "integer", "description": "Number of events still waiting to be reprocessed" }, "info": { "type": "object", "properties": { "dateCreated": { "type": "string", "description": "When reprocessing started (ISO 8601)" }, "syncCount": { "type": "integer", "description": "Number of events in the issue when reprocessing started" }, "totalEvents": { "type": "integer", "description": "Number of events to reprocess, at most the requested maximum" } }, "required": [ "dateCreated", "syncCount", "totalEvents" ], "nullable": true, "description": "Reprocessing progress details" } }, "description": "Details of the issue's status, such as when an ignore expires or which release resolves it" }, "substatus": { "enum": [ "archived_until_escalating", "archived_until_condition_met", "archived_forever", "escalating", "ongoing", "regressed", "new", null ], "type": "string", "nullable": true, "description": "Substatus of the issue, such as ongoing, regressed or escalating" }, "isPublic": { "type": "boolean", "description": "Whether the issue is shared publicly" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the issue's events" }, "priority": { "enum": [ "low", "medium", "high", null ], "type": "string", "nullable": true, "description": "Priority of the issue: high, medium or low" }, "priorityLockedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the priority was last set manually, which stops automatic priority updates (ISO 8601)" }, "seerFixabilityScore": { "type": "number", "format": "double", "nullable": true, "description": "Seer's score for how likely the issue is to be fixable" }, "seerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When Seer Autofix was last triggered for the issue (ISO 8601)" }, "seerExplorerAutofixLastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601)" }, "project": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "name": { "type": "string", "description": "Name of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" } }, "required": [ "id", "name", "platform", "slug" ], "description": "Project the issue belongs to" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type of the issue, such as error or default" }, "issueType": { "type": "string", "description": "Issue type, such as error or performance_n_plus_one_db_queries" }, "issueCategory": { "type": "string", "description": "Issue category, such as error or performance" }, "metadata": { "type": "object", "description": "Issue metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "numComments": { "type": "integer", "description": "Number of comments on the issue" }, "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "nullable": true, "description": "User or team the issue is assigned to" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the issue" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is subscribed to the issue" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "nullable": true, "description": "Why the requesting user is subscribed to the issue" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has seen the issue since it last occurred" }, "annotations": { "type": "array", "items": { "type": "object", "properties": { "displayName": { "type": "string", "description": "Display name of the linked external issue" }, "url": { "type": "string", "description": "URL of the linked external issue" } }, "required": [ "displayName", "url" ] }, "description": "External issues linked to the issue" }, "isUnhandled": { "type": "boolean", "description": "Whether the issue includes unhandled events" }, "count": { "type": "string", "description": "Total number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "derivedData": { "type": "object", "properties": { "blocker": { "type": "string", "description": "Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr" }, "progress": { "type": "string", "description": "How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied" }, "status": { "type": "string", "description": "Status of the issue from its action log: open or closed" }, "viewCount": { "type": "integer", "description": "Number of times the issue was viewed" }, "hasOpenFixPr": { "type": "boolean", "description": "Whether an open pull request is linked to the issue" }, "isAssigned": { "type": "boolean", "description": "Whether the issue has an assignee" }, "hasRootCause": { "type": "boolean", "description": "Whether a root cause was found for the issue" }, "lastCompletedAutofixStep": { "type": "string", "description": "Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration" }, "lastProgressedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue's progress last advanced (ISO 8601)" }, "impact": { "type": "object", "properties": { "score": { "type": "number", "format": "double", "nullable": true, "description": "Estimated per-occurrence impact on the end user's capability from 0 to 100" }, "level": { "enum": [ "super_low", "low", "moderate", "high", "super_high", null ], "type": "string", "nullable": true, "description": "Impact level derived from the assessment score" }, "description": { "type": "string", "description": "Human-readable description of the capability affected by the issue" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "reference": { "type": "string", "description": "Stable identifier for the evidence supporting this claim" }, "claim": { "type": "string", "description": "Concise explanation of what the cited evidence establishes" }, "source": { "type": "string", "description": "The category of evidence cited, such as an event, trace, replay, or log" } }, "required": [ "claim", "reference", "source" ] }, "description": "Evidence-backed claims supporting the impact assessment" }, "sourceEventId": { "type": "string", "description": "ID of the issue event used to generate the impact assessment" } }, "required": [ "citations", "description", "level", "score", "sourceEventId" ], "nullable": true, "description": "The issue's impact assessment, or null when no assessment is available" } }, "required": [ "blocker", "hasOpenFixPr", "hasRootCause", "isAssigned", "lastCompletedAutofixStep", "lastProgressedAt", "progress", "status", "viewCount" ], "description": "Additional data derived for the issue. Only included when requested with expand" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "number", "format": "double" } } }, "description": "Event counts over the requested stats period, keyed by the period, as [timestamp, count] pairs. Omitted when stats is collapsed" }, "lifetime": { "type": "object", "properties": { "count": { "type": "string", "description": "Number of events in the issue" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue was last seen (ISO 8601)" }, "stats": { "type": "object", "nullable": true, "enum": [ null ], "description": "Always null. Only included when a stats period is requested" } }, "required": [ "count", "firstSeen", "lastSeen", "userCount" ], "description": "Event count, user count, and first and last seen times over the issue's lifetime. Omitted when stats or lifetime is collapsed" }, "filtered": { "type": "object", "properties": { "count": { "type": "string", "description": "Number of the issue's events that match the search query" }, "userCount": { "type": "integer", "description": "Number of users affected by the issue's events that match the search query" }, "firstSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When an event matching the search query was first seen (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When an event matching the search query was last seen (ISO 8601)" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "number", "format": "double" } } }, "description": "Counts of matching events over the requested stats period, keyed by the period, as [timestamp, count] pairs" } }, "required": [ "count", "firstSeen", "lastSeen", "userCount" ], "nullable": true, "description": "Event count, user count, and first and last seen times for events that match the search query. Null when there's no query; omitted when stats or filtered is collapsed" }, "sessionCount": { "type": "integer", "nullable": true, "description": "Number of sessions in the issue's project over the query time range. Null when session data is unavailable. Only included with expand=sessions when a stats period is enabled and stats is not collapsed" }, "inbox": { "type": "object", "properties": { "reason": { "type": "integer", "description": "Why the issue is in the inbox: 0 new, 1 unignored, 2 regression, 3 manual, 4 reprocessed, 5 escalating or 6 ongoing" }, "reason_details": { "type": "object", "properties": { "until": { "type": "string", "nullable": true, "description": "When the ignore that ended was set to expire (ISO 8601)" }, "count": { "type": "integer", "nullable": true, "description": "Number of occurrences the ignore that ended was set to wait for" }, "window": { "type": "integer", "nullable": true, "description": "Window in minutes for count" }, "user_count": { "type": "integer", "nullable": true, "description": "Number of affected users the ignore that ended was set to wait for" }, "user_window": { "type": "integer", "nullable": true, "description": "Window in minutes for user_count" } }, "required": [ "count", "until", "user_count", "user_window", "window" ], "nullable": true, "description": "Details of the ignore that ended when the issue came back to the inbox. Null otherwise" }, "date_added": { "type": "string", "format": "date-time", "description": "When the issue was added to the inbox (ISO 8601)" } }, "required": [ "date_added", "reason", "reason_details" ], "description": "Why the issue is in the inbox. Only included when requested with expand" }, "owners": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "How the owner was found: suspectCommit, ownershipRule, codeowners or seerSuggested" }, "owner": { "type": "string", "description": "Owner as an actor identifier, such as user:1 or team:1" }, "date_added": { "type": "string", "format": "date-time", "description": "When the owner was suggested (ISO 8601)" } }, "required": [ "date_added", "owner", "type" ] }, "nullable": true, "description": "Suggested owners of the issue. Only included when requested with expand" }, "integrationIssues": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the external issue link in Sentry" }, "key": { "type": "string", "description": "Key of the issue in the integration, such as APP-123" }, "title": { "type": "string", "nullable": true, "description": "Title of the issue in the integration" }, "description": { "type": "string", "nullable": true, "description": "Description of the issue in the integration" }, "displayName": { "type": "string", "description": "Name of the issue to display" }, "integrationKey": { "type": "string", "description": "Provider of the integration, such as jira" }, "integrationName": { "type": "string", "description": "Name of the integration" } } }, "description": "External issues linked through integrations. Only included when requested with expand" }, "sentryAppIssues": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the external issue link" }, "issueId": { "type": "string", "description": "ID of the Sentry issue" }, "serviceType": { "type": "string", "description": "Slug of the custom integration that created the external issue" }, "displayName": { "type": "string", "description": "Display name of the external issue, such as ABC-123" }, "webUrl": { "type": "string", "description": "URL of the external issue" } }, "required": [ "displayName", "id", "issueId", "serviceType", "webUrl" ] }, "description": "External issues linked through Sentry apps. Only included when requested with expand" }, "latestEventHasAttachments": { "type": "boolean", "description": "Whether the issue's latest event has attachments. Only included when requested with expand" }, "matchingEventId": { "type": "string", "nullable": true, "description": "ID of the event the search query matched. Only included when the query matches an event ID" }, "matchingEventEnvironment": { "type": "string", "nullable": true, "description": "Environment of the event the search query matched. Only included when the query matches an event ID" } }, "required": [ "id" ] } }, "OrganizationGroupIndexPutResponse": { "type": "object", "properties": { "assignedTo": { "type": "object", "properties": { "type": { "enum": [ "user", "team" ], "type": "string", "description": "Whether the actor is a user or a team" }, "id": { "type": "string", "description": "ID of the user or team" }, "name": { "type": "string", "description": "Display name of the user, or slug of the team" }, "email": { "type": "string", "description": "Email address of the user. Only set for users" } }, "required": [ "id", "name", "type" ], "description": "User or team the issues are now assigned to" }, "discard": { "type": "boolean", "description": "Whether the issues were discarded" }, "hasSeen": { "type": "boolean", "description": "Whether the requesting user has now seen the issues" }, "inbox": { "type": "boolean", "description": "Whether the issues are now in the inbox" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user has now bookmarked the issues" }, "isPublic": { "type": "boolean", "description": "Whether the issues are now shared publicly" }, "isSubscribed": { "type": "boolean", "description": "Whether the requesting user is now subscribed to the issues" }, "merge": { "type": "object", "properties": { "parent": { "type": "string", "description": "ID of the issue the other issues were merged into" }, "children": { "type": "array", "items": { "type": "string" }, "description": "IDs of the issues that were merged into the parent issue" } }, "required": [ "children", "parent" ], "description": "Result of merging the issues: the issue they were merged into and the merged issues" }, "priority": { "type": "string", "description": "New priority of the issues: high, medium or low" }, "shareId": { "type": "string", "description": "ID used in the public share URL. Set when the issue is now shared" }, "status": { "type": "string", "description": "New status of the issues" }, "statusDetails": { "type": "object", "properties": { "inNextRelease": { "type": "boolean", "description": "Whether the issues are resolved in the next release" }, "inRelease": { "type": "string", "description": "Version of the release the issues are resolved in" }, "inCommit": { "type": "object", "properties": { "commit": { "type": "string", "description": "SHA of the resolving commit" }, "repository": { "type": "string", "description": "Name of the repository the commit belongs to, as it appears in Sentry" } }, "required": [ "commit", "repository" ], "description": "Commit that resolves the issues" }, "ignoreDuration": { "type": "integer", "description": "Minutes the issues are ignored for" }, "ignoreCount": { "type": "integer", "description": "Number of occurrences, within ignoreWindow minutes, after which the issues stop being ignored" }, "ignoreWindow": { "type": "integer", "description": "Window in minutes for ignoreCount" }, "ignoreUserCount": { "type": "integer", "description": "Number of affected users, within ignoreUserWindow minutes, after which the issues stop being ignored" }, "ignoreUserWindow": { "type": "integer", "description": "Window in minutes for ignoreUserCount" } }, "description": "Details of the new status, such as the release that resolves the issues or when an ignore expires" }, "subscriptionDetails": { "type": "object", "properties": { "disabled": { "type": "boolean", "description": "Whether the requesting user turned off notifications for the issue" }, "reason": { "type": "string", "description": "Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown" } }, "description": "Why the requesting user is now subscribed to the issues" }, "substatus": { "type": "string", "description": "New substatus of the issues, such as ongoing or archived_until_escalating" } } }, "OrganizationIntegrationResponse": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the integration" }, "name": { "type": "string", "description": "Name of the integration, usually the connected account or workspace" }, "icon": { "type": "string", "nullable": true, "description": "URL of the connected account's icon" }, "domainName": { "type": "string", "nullable": true, "description": "Domain of the connected account, such as github.com/example-org" }, "accountType": { "type": "string", "nullable": true, "description": "Type of the connected account, such as Organization or User" }, "scopes": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Permission scopes granted to the integration" }, "outOfDate": { "type": "boolean", "nullable": true, "description": "Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model" }, "missingFeatures": { "type": "array", "items": { "type": "object", "description": "A feature the installation can no longer support, named by the permission\ntier it falls short of, so the update-permissions modal can list them.", "properties": { "key": { "type": "string", "description": "Key of the missing feature" }, "description": { "type": "string", "description": "Description of the missing feature" } }, "required": [ "description", "key" ] }, "nullable": true, "description": "Features the installation can't support because of missing permissions. Null for providers without a permissions model" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "description": "Integration provider details" }, "configOrganization": { "description": "Organization-level configuration fields of the integration" }, "configData": { "description": "Configuration values the organization set for the integration" }, "externalId": { "type": "string", "description": "ID of the connected account in the provider" }, "organizationId": { "type": "integer", "description": "ID of the organization the integration is installed in" }, "organizationIntegrationStatus": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the integration in this organization" }, "gracePeriodEnd": { "type": "string", "format": "date-time", "nullable": true, "description": "When the integration's grace period ends (ISO 8601). Null when there's no grace period" } }, "required": [ "accountType", "configData", "configOrganization", "domainName", "externalId", "gracePeriodEnd", "icon", "id", "missingFeatures", "name", "organizationId", "organizationIntegrationStatus", "outOfDate", "provider", "scopes", "status" ] }, "OrganizationIssueView": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the issue view" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the issue view" }, "name": { "type": "string", "description": "Name of the issue view" }, "query": { "type": "string", "description": "Search query of the issue view" }, "querySort": { "enum": [ "date", "new", "trends", "freq", "user", "inbox", "recommended" ], "type": "string", "description": "How issues in the view are sorted" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects in the view. [-1] means all projects" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments in the view. An empty list means all environments" }, "timeFilters": { "type": "object", "properties": { "start": { "type": "string", "nullable": true, "description": "Start of the time range (ISO 8601)" }, "end": { "type": "string", "nullable": true, "description": "End of the time range (ISO 8601)" }, "period": { "type": "string", "nullable": true, "description": "Relative time period, such as 14d" }, "utc": { "type": "boolean", "nullable": true, "description": "Whether the time range is in UTC" } }, "description": "Time range of the issue view" }, "lastVisited": { "type": "string", "format": "date-time", "nullable": true, "description": "When the requesting user last viewed the issue view (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue view was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the issue view was last updated (ISO 8601)" }, "starred": { "type": "boolean", "description": "Whether the requesting user starred the issue view" }, "stars": { "type": "integer", "description": "Number of users who starred the issue view" } }, "required": [ "createdBy", "dateCreated", "dateUpdated", "environments", "id", "lastVisited", "name", "projects", "query", "querySort", "starred", "stars", "timeFilters" ] }, "OrganizationIssueViewList": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the issue view" }, "createdBy": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "User who created the issue view" }, "name": { "type": "string", "description": "Name of the issue view" }, "query": { "type": "string", "description": "Search query of the issue view" }, "querySort": { "enum": [ "date", "new", "trends", "freq", "user", "inbox", "recommended" ], "type": "string", "description": "How issues in the view are sorted" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects in the view. [-1] means all projects" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Names of the environments in the view. An empty list means all environments" }, "timeFilters": { "type": "object", "properties": { "start": { "type": "string", "nullable": true, "description": "Start of the time range (ISO 8601)" }, "end": { "type": "string", "nullable": true, "description": "End of the time range (ISO 8601)" }, "period": { "type": "string", "nullable": true, "description": "Relative time period, such as 14d" }, "utc": { "type": "boolean", "nullable": true, "description": "Whether the time range is in UTC" } }, "description": "Time range of the issue view" }, "lastVisited": { "type": "string", "format": "date-time", "nullable": true, "description": "When the requesting user last viewed the issue view (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the issue view was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the issue view was last updated (ISO 8601)" }, "starred": { "type": "boolean", "description": "Whether the requesting user starred the issue view" }, "stars": { "type": "integer", "description": "Number of users who starred the issue view" } }, "required": [ "createdBy", "dateCreated", "dateUpdated", "environments", "id", "lastVisited", "name", "projects", "query", "querySort", "starred", "stars", "timeFilters" ] } }, "OrganizationMember": { "type": "object", "properties": { "externalUsers": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested" }, "id": { "type": "string", "description": "Organization member ID" }, "email": { "type": "string", "description": "Email address of the member's user, or the invited email address if they have no account yet" }, "name": { "type": "string", "description": "Display name of the member's user, or their email address if they have no account yet" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "The member's user. Null for invited members without an account, or if the user can't be found" }, "orgRole": { "type": "string", "description": "ID of the member's organization role" }, "pending": { "type": "boolean", "description": "Whether the member has no user account linked yet, as with an invite that hasn't been accepted" }, "expired": { "type": "boolean", "description": "Whether the member's invite has expired" }, "flags": { "type": "object", "properties": { "idp:provisioned": { "type": "boolean", "description": "Whether the member is provisioned and managed through the organization's identity provider (SCIM)" }, "idp:role-restricted": { "type": "boolean", "description": "Whether the member's organization role is set by the identity provider through SCIM" }, "sso:linked": { "type": "boolean", "description": "Whether the member has linked their account to the organization's SSO provider" }, "sso:invalid": { "type": "boolean", "description": "Whether the member's SSO link is invalid" }, "member-limit:restricted": { "type": "boolean", "description": "Whether the member is restricted by the plan's member limit" }, "partnership:restricted": { "type": "boolean", "description": "Whether the member is managed by an active partnership and can't be changed until it ends" } }, "required": [ "idp:provisioned", "idp:role-restricted", "member-limit:restricted", "partnership:restricted", "sso:invalid", "sso:linked" ], "description": "Member flags" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the member was added or invited" }, "inviteStatus": { "enum": [ "approved", "requested_to_be_invited", "requested_to_join", null ], "type": "string", "nullable": true, "description": "Invite status" }, "inviterName": { "type": "string", "nullable": true, "description": "Name of the user who invited the member, or null" } }, "required": [ "dateCreated", "email", "expired", "flags", "id", "inviteStatus", "inviterName", "name", "orgRole", "pending", "user" ] }, "OrganizationMemberRequest": { "type": "object", "properties": { "email": { "type": "string", "format": "email", "description": "The email address to send the invitation to.", "maxLength": 75 }, "role": { "enum": [ "member", "admin", "manager", "owner" ], "type": "string", "default": "member", "description": "Deprecated, use `orgRole`. The organization-level role to assign.\n\n* `member` - Member\n* `admin` - Admin\n* `manager` - Manager\n* `owner` - Owner", "deprecated": true }, "orgRole": { "enum": [ "billing", "member", "manager", "owner", "admin" ], "type": "string", "default": "member", "description": "The organization-level role of the new member. Roles include:\n\n* `billing` - Can manage payment and compliance details.\n* `member` - Can view and act on events, as well as view most other data within the organization.\n* `manager` - Has full management access to all teams and projects. Can also manage\n the organization's membership.\n* `owner` - Has unrestricted access to the organization, its data, and its\n settings. Can add, modify, and delete projects and members, as well as\n make billing and plan changes.\n* `admin` - Can edit global integrations, manage projects, and add/remove teams.\n They automatically assume the Team Admin role for teams they join.\n Note: This role can no longer be assigned in Business and Enterprise plans. Use `TeamRoles` instead.\n " }, "teams": { "type": "array", "items": {}, "description": "Deprecated, use `teamRoles`. Slugs of teams to add the member to.", "deprecated": true }, "teamRoles": { "type": "array", "items": { "type": "object", "additionalProperties": {} }, "nullable": true, "description": "The team and team-roles assigned to the member. Team roles can be either:\n - `contributor` - Can view and act on issues. Depending on organization settings, they can also add team members.\n - `admin` - Has full management access to their team's membership and projects." }, "sendInvite": { "type": "boolean", "writeOnly": true, "default": true, "description": "Whether or not to send an invite notification through email. Defaults to True." }, "reinvite": { "type": "boolean", "description": "Whether or not to re-invite a user who has already been invited to the organization. Defaults to True." }, "regenerate": { "type": "boolean", "description": "Reissue the invite token, invalidating any previously sent invite link." } }, "required": [ "email" ] }, "OrganizationMemberSCIM": { "type": "object", "description": "Conforming to the SCIM RFC, this represents a Sentry Org Member\nas a SCIM user object.", "properties": { "active": { "type": "boolean", "description": "Always true when included. Sentry doesn't use this field, but SCIM expects it" }, "schemas": { "type": "array", "items": { "type": "string" }, "description": "SCIM schema URIs of the resource" }, "id": { "type": "string", "description": "Organization member ID" }, "userName": { "type": "string", "description": "Email address of the member" }, "name": { "type": "object", "properties": { "givenName": { "type": "string", "description": "Given name. Always N/A, because Sentry doesn't store it" }, "familyName": { "type": "string", "description": "Family name. Always N/A, because Sentry doesn't store it" } }, "required": [ "familyName", "givenName" ], "description": "Name of the member" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "primary": { "type": "boolean", "description": "Whether this is the primary email address. Always true" }, "value": { "type": "string", "description": "Email address" }, "type": { "type": "string", "description": "Email type. Always work" } }, "required": [ "primary", "type", "value" ] }, "description": "Email addresses of the member" }, "meta": { "type": "object", "properties": { "resourceType": { "type": "string", "description": "SCIM resource type, such as User or Group" } }, "required": [ "resourceType" ], "description": "SCIM resource metadata" }, "sentryOrgRole": { "type": "string", "description": "ID of the member's organization role" } }, "required": [ "emails", "id", "meta", "name", "schemas", "sentryOrgRole", "userName" ] }, "OrganizationMemberTeam": { "type": "object", "properties": { "teamRole": { "enum": [ "contributor", "admin" ], "type": "string", "default": "contributor", "description": "The team-level role to switch to. Valid roles include:\n\n* `contributor` - Contributors can view and act on events, as well as view most other data within the team's projects.\n* `admin` - Admin privileges on the team. They can create and remove projects, and can manage the team's memberships." } } }, "OrganizationMemberTeamDetails": { "type": "object", "properties": { "isActive": { "type": "boolean", "description": "Whether the team membership is active. An inactive membership removes the team from the member's default list, but the member can rejoin without a request" }, "teamRole": { "enum": [ "contributor", "admin" ], "type": "string", "description": "ID of the member's team role" } }, "required": [ "isActive", "teamRole" ] }, "OrganizationMemberWithRoles": { "type": "object", "properties": { "externalUsers": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested" }, "role": { "type": "string", "description": "Deprecated. Use orgRole" }, "roleName": { "type": "string", "description": "Deprecated. Name of the member's organization role" }, "id": { "type": "string", "description": "Organization member ID" }, "email": { "type": "string", "description": "Email address of the member's user, or the invited email address if they have no account yet" }, "name": { "type": "string", "description": "Display name of the member's user, or their email address if they have no account yet" }, "user": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "The member's user. Null for invited members without an account, or if the user can't be found" }, "orgRole": { "type": "string", "description": "ID of the member's organization role" }, "pending": { "type": "boolean", "description": "Whether the member has no user account linked yet, as with an invite that hasn't been accepted" }, "expired": { "type": "boolean", "description": "Whether the member's invite has expired" }, "flags": { "type": "object", "properties": { "idp:provisioned": { "type": "boolean", "description": "Whether the member is provisioned and managed through the organization's identity provider (SCIM)" }, "idp:role-restricted": { "type": "boolean", "description": "Whether the member's organization role is set by the identity provider through SCIM" }, "sso:linked": { "type": "boolean", "description": "Whether the member has linked their account to the organization's SSO provider" }, "sso:invalid": { "type": "boolean", "description": "Whether the member's SSO link is invalid" }, "member-limit:restricted": { "type": "boolean", "description": "Whether the member is restricted by the plan's member limit" }, "partnership:restricted": { "type": "boolean", "description": "Whether the member is managed by an active partnership and can't be changed until it ends" } }, "required": [ "idp:provisioned", "idp:role-restricted", "member-limit:restricted", "partnership:restricted", "sso:invalid", "sso:linked" ], "description": "Member flags" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the member was added or invited" }, "inviteStatus": { "enum": [ "approved", "requested_to_be_invited", "requested_to_join", null ], "type": "string", "nullable": true, "description": "Invite status" }, "inviterName": { "type": "string", "nullable": true, "description": "Name of the user who invited the member, or null" }, "teams": { "type": "array", "items": { "type": "string" }, "description": "Deprecated. Slugs of the active teams the member belongs to. Use teamRoles" }, "teamRoles": { "type": "array", "items": { "type": "object", "properties": { "teamSlug": { "type": "string", "description": "Team slug" }, "role": { "type": "string", "nullable": true, "description": "ID of the member's team role, or null if the member has the minimum team role from their organization role" } }, "required": [ "role", "teamSlug" ] }, "description": "Active teams the member belongs to, with the member's role in each" }, "isOnlyOwner": { "type": "boolean", "description": "Whether the member is the only owner of the organization" }, "orgRoleList": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Role ID, such as member or admin" }, "name": { "type": "string", "description": "Display name of the role" }, "desc": { "type": "string", "description": "Description of what the role can do" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes the role grants in this organization" }, "allowed": { "type": "boolean", "description": "Deprecated alias of isAllowed" }, "isAllowed": { "type": "boolean", "description": "Whether the requesting user can assign this role" }, "isRetired": { "type": "boolean", "description": "Whether the role is retired and shouldn't be assigned to more members" }, "isTeamRolesAllowed": { "type": "boolean", "description": "Whether members with this role can have team-level roles" }, "is_global": { "type": "boolean", "description": "Deprecated alias of isGlobal" }, "isGlobal": { "type": "boolean", "description": "Whether the role gives access to all teams and projects in the organization" }, "minimumTeamRole": { "type": "string", "description": "ID of the lowest team role that members with this organization role hold on every team" } }, "required": [ "allowed", "desc", "id", "isAllowed", "isGlobal", "isRetired", "isTeamRolesAllowed", "is_global", "minimumTeamRole", "name", "scopes" ] }, "description": "Organization roles, with whether the requesting user can assign each one" }, "teamRoleList": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Role ID, such as member or admin" }, "name": { "type": "string", "description": "Display name of the role" }, "desc": { "type": "string", "description": "Description of what the role can do" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes the role grants in this organization" }, "allowed": { "type": "boolean", "description": "Deprecated alias of isAllowed" }, "isAllowed": { "type": "boolean", "description": "Whether the requesting user can assign this role" }, "isRetired": { "type": "boolean", "description": "Whether the role is retired and shouldn't be assigned to more members" }, "isTeamRolesAllowed": { "type": "boolean", "description": "Whether members with this role can have team-level roles" }, "isMinimumRoleFor": { "type": "string", "nullable": true, "description": "ID of the organization role whose members hold at least this team role on every team, or null" } }, "required": [ "allowed", "desc", "id", "isAllowed", "isMinimumRoleFor", "isRetired", "isTeamRolesAllowed", "name", "scopes" ] }, "description": "Team roles available in the organization" } }, "required": [ "dateCreated", "email", "expired", "flags", "id", "inviteStatus", "inviterName", "isOnlyOwner", "name", "orgRole", "orgRoleList", "pending", "teamRoleList", "teamRoles", "teams", "user" ] }, "OrganizationProfilingChunksResponse": { "type": "object", "additionalProperties": {} }, "OrganizationProfilingFlamegraphResponse": { "type": "object", "additionalProperties": {} }, "OrganizationProjectResponseDict": { "type": "array", "items": { "type": "object", "properties": { "latestDeploys": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed" }, "options": { "type": "object", "additionalProperties": {}, "description": "Requested project options, keyed by option name. Only included when options are requested" }, "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "nullable": true, "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms seen in the project's events" }, "hasUserReports": { "type": "boolean", "description": "Whether the project has received user reports" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments seen in the project's events" }, "latestRelease": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ], "nullable": true, "description": "Latest release of the project" } }, "required": [ "access", "dateCreated", "environments", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "hasUserReports", "id", "isBookmarked", "isMember", "latestRelease", "name", "platform", "platforms", "slug", "team", "teams" ] } }, "OrganizationRelayResponse": { "type": "array", "items": { "type": "object", "properties": { "relayId": { "type": "string", "description": "ID of the Relay" }, "version": { "type": "string", "description": "Version of the Relay" }, "publicKey": { "type": "string", "nullable": true, "description": "Public key of the Relay" }, "firstSeen": { "type": "string", "format": "date-time", "description": "When the Relay first connected (ISO 8601)" }, "lastSeen": { "type": "string", "format": "date-time", "description": "When the Relay last connected (ISO 8601)" } }, "required": [ "firstSeen", "lastSeen", "publicKey", "relayId", "version" ] } }, "OrganizationRelease": { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "An optional commit reference. This is useful if a tagged version has been provided.", "maxLength": 200 }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "A URL that points to the release. For instance, this can be the path to an online interface to the source code, such as a GitHub URL." }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "An optional date that indicates when the release went live. If not provided the current time is used." }, "commits": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "maxLength": 64 }, "repository": { "type": "string", "nullable": true, "maxLength": 64 }, "message": { "type": "string", "nullable": true }, "author_name": { "type": "string", "nullable": true, "maxLength": 128 }, "author_email": { "type": "string", "nullable": true, "maxLength": 200 }, "timestamp": { "type": "string", "format": "date-time", "nullable": true }, "patch_set": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 510 }, "type": { "type": "string", "maxLength": 1 } }, "required": [ "path", "type" ] }, "nullable": true } }, "required": [ "id" ] }, "description": "An optional list of commit data to be associated. Very long lists are truncated to the most recent commits." }, "status": { "type": "string", "description": "The status of the release. Can be `open` or `archived`." }, "headCommits": { "type": "array", "items": { "type": "object", "properties": { "currentId": { "type": "string", "maxLength": 64 }, "repository": { "type": "string", "maxLength": 64 }, "previousId": { "type": "string", "nullable": true, "maxLength": 64 } }, "required": [ "currentId", "repository" ] }, "description": "Deprecated, use `commits`. Head commits to associate with the release." }, "refs": { "type": "array", "items": { "type": "object", "properties": { "commit": { "type": "string" }, "repository": { "type": "string", "maxLength": 200 }, "previousCommit": { "type": "string", "nullable": true, "maxLength": 64 } }, "required": [ "commit", "repository" ] }, "description": "An optional way to indicate the start and end commits for each repository included in a release. Head commits must include parameters ``repository`` and ``commit`` (the HEAD SHA). For GitLab repositories, please use the Group name instead of the slug. They can optionally include ``previousCommit`` (the SHA of the HEAD of the previous release), which should be specified if this is the first time you've sent commit data." } } }, "OrganizationRepositorySettingsResponse": { "type": "array", "items": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ] } }, "OrganizationSentryAppDetailsResponse": { "type": "array", "items": { "type": "object", "properties": { "allowedOrigins": { "type": "array", "items": { "type": "string" }, "description": "Allowed origins for CORS" }, "avatars": { "type": "array", "items": { "type": "object", "properties": { "avatarType": { "type": "string", "description": "Avatar type: `default` or `upload`" }, "avatarUuid": { "type": "string", "description": "Unique identifier of the uploaded avatar file, or an empty string if none is set" }, "avatarUrl": { "type": "string", "format": "uri", "description": "Absolute URL of the avatar image" }, "color": { "type": "boolean", "description": "Whether this is the color logo (`true`) or the simple icon (`false`)" }, "photoType": { "type": "string", "description": "Kind of image: `logo` for the color logo or `icon` for the simple icon" } }, "required": [ "avatarType", "avatarUrl", "avatarUuid", "color", "photoType" ] }, "description": "Avatars of the custom integration" }, "events": { "type": "array", "items": { "type": "string" }, "description": "Resources the integration's webhooks are subscribed to, such as issue" }, "webhookEvents": { "type": "array", "items": { "type": "string" }, "description": "Webhook events the integration is subscribed to, such as issue.resolved" }, "featureData": { "type": "array", "items": { "type": "string" }, "description": "Features the integration supports. Empty for internal integrations" }, "isAlertable": { "type": "boolean", "description": "Whether the integration can be used in alert rules" }, "metadata": { "type": "string", "description": "Metadata of the integration" }, "name": { "type": "string", "description": "Name of the custom integration" }, "schema": { "type": "string", "description": "UI components schema used to render the integration's UI elements" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Permission scopes for API access" }, "slug": { "type": "string", "description": "Slug of the custom integration" }, "status": { "enum": [ "unpublished", "published", "internal", "publish_request_inprogress", "deletion_in_progress" ], "type": "string", "description": "Status of the integration" }, "uuid": { "type": "string", "format": "uuid", "description": "UUID of the custom integration" }, "verifyInstall": { "type": "boolean", "description": "Whether installations of the integration must be verified" }, "webhookHeaders": { "type": "array", "items": { "type": "string" }, "description": "Custom headers sent with every webhook request, as Header-Name: value pairs. Values are masked" }, "isDisabled": { "type": "boolean", "description": "Whether the integration is disabled" }, "author": { "type": "string", "nullable": true, "description": "Author of the integration" }, "overview": { "type": "string", "nullable": true, "description": "Description of the integration" }, "popularity": { "type": "integer", "nullable": true, "description": "Popularity score of the integration" }, "redirectUrl": { "type": "string", "nullable": true, "description": "URL to redirect to after installation" }, "webhookUrl": { "type": "string", "nullable": true, "description": "Webhook destination URL" }, "clientSecret": { "type": "string", "nullable": true, "description": "OAuth client secret. Only shown to authorized users within 5 minutes of creation, and masked otherwise" }, "datePublished": { "type": "string", "format": "date-time", "description": "When the integration was published (ISO 8601). Only set for published integrations" }, "clientId": { "type": "string", "description": "OAuth client ID. Only included for members of the owner organization" }, "owner": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the organization that owns the integration" }, "slug": { "type": "string", "description": "Slug of the organization that owns the integration" } }, "required": [ "id", "slug" ], "description": "Organization that owns the integration. Only included for members of the owner organization" } }, "required": [ "allowedOrigins", "avatars", "events", "featureData", "isAlertable", "metadata", "name", "schema", "scopes", "slug", "status", "uuid", "verifyInstall", "webhookEvents", "webhookHeaders" ] } }, "OrganizationStatsSummaryResponse": { "type": "object", "properties": { "start": { "type": "string", "description": "Start of the queried time range (ISO 8601)" }, "end": { "type": "string", "description": "End of the queried time range (ISO 8601)" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "stats": { "type": "array", "items": { "type": "object", "properties": { "category": { "type": "string", "description": "Data category of the counts, such as error" }, "outcomes": { "type": "object", "additionalProperties": { "type": "integer" }, "description": "Quantity of each outcome, such as accepted or rate_limited" }, "totals": { "type": "object", "additionalProperties": { "type": "integer" }, "description": "Totals of the requested fields, such as sum(quantity). Also has dropped, the quantity of the dropped outcomes, unless the outcome filter leaves them all out" }, "reason": { "type": "string", "description": "Reason for the outcomes. Only present when grouped by reason" } }, "required": [ "category", "outcomes", "totals" ] }, "description": "Outcome counts of the project by data category" } }, "required": [ "id", "slug", "stats" ] }, "description": "Outcome stats of each project" } }, "required": [ "end", "projects", "start" ] }, "OrganizationSummary": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ] }, "OrganizationTraceMetaResponse": { "type": "object", "properties": { "uptimeCount": { "type": "integer", "description": "Number of uptime checks in the trace. Only present when `include_uptime=1`" }, "errorsCount": { "type": "integer", "description": "Number of errors in the trace" }, "logsCount": { "type": "number", "format": "double", "description": "Number of logs in the trace" }, "metricsCount": { "type": "number", "format": "double", "description": "Number of metric samples in the trace, excluding metrics derived from spans" }, "performanceIssuesCount": { "type": "integer", "description": "Number of performance issues in the trace" }, "spansCount": { "type": "number", "format": "double", "description": "Number of spans in the trace" }, "transactionChildCountMap": { "type": "array", "items": { "type": "object", "properties": { "transaction.event_id": { "type": "string", "nullable": true, "description": "ID of the transaction. Null for spans that belong to no transaction" }, "count()": { "type": "number", "format": "double", "description": "Number of child spans of the transaction" } }, "required": [ "count()", "transaction.event_id" ] }, "description": "Number of child spans of each transaction" }, "spansCountMap": { "type": "object", "additionalProperties": { "type": "number", "format": "double" }, "description": "Number of spans in the trace for each span operation, keyed by `span.op`" } }, "required": [ "errorsCount", "logsCount", "metricsCount", "performanceIssuesCount", "spansCount", "spansCountMap", "transactionChildCountMap" ] }, "OrganizationTraceResponse": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" }, "event_type": { "enum": [ "span" ], "type": "string", "description": "Kind of item, always span" }, "children": { "type": "array", "items": { "type": "object", "description": "Fields shared by every item in a trace. Entries in `children` are full\nspans at runtime; only the shared fields are documented here.", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" } }, "required": [ "description", "event_id", "project_id", "project_slug", "transaction" ] }, "description": "Child items of the item, such as spans" }, "errors": { "type": "array", "items": { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" }, "event_type": { "enum": [ "error", "occurrence" ], "type": "string", "description": "Kind of issue item: error or occurrence" }, "issue_id": { "type": "integer", "description": "ID of the issue" }, "level": { "type": "string", "description": "Level of the issue, such as error or warning" }, "start_timestamp": { "type": "number", "format": "double", "description": "When the error or occurrence started, as a Unix timestamp in seconds" }, "end_timestamp": { "type": "number", "format": "double", "description": "When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "short_id": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "issue_type": { "type": "integer", "description": "Numeric issue type ID" } }, "required": [ "culprit", "description", "event_id", "event_type", "issue_id", "issue_type", "level", "project_id", "project_slug", "short_id", "start_timestamp", "transaction" ] }, "description": "Errors linked to the item" }, "occurrences": { "type": "array", "items": { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" }, "event_type": { "enum": [ "error", "occurrence" ], "type": "string", "description": "Kind of issue item: error or occurrence" }, "issue_id": { "type": "integer", "description": "ID of the issue" }, "level": { "type": "string", "description": "Level of the issue, such as error or warning" }, "start_timestamp": { "type": "number", "format": "double", "description": "When the error or occurrence started, as a Unix timestamp in seconds" }, "end_timestamp": { "type": "number", "format": "double", "description": "When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "short_id": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "issue_type": { "type": "integer", "description": "Numeric issue type ID" } }, "required": [ "culprit", "description", "event_id", "event_type", "issue_id", "issue_type", "level", "project_id", "project_slug", "short_id", "start_timestamp", "transaction" ] }, "description": "Non-error issue occurrences, such as performance issues, linked to the item" }, "duration": { "type": "number", "format": "double", "description": "Duration of the span in milliseconds" }, "end_timestamp": { "type": "number", "format": "double", "description": "When the span ended, as a Unix timestamp in seconds" }, "measurements": { "type": "object", "additionalProperties": { "type": "number", "format": "double" }, "description": "Measurements recorded on the span, keyed by measurements." }, "browser_web_vital": { "type": "object", "additionalProperties": { "type": "number", "format": "double" }, "description": "Browser web vitals recorded on the span, keyed by browser.web_vital." }, "mobile_app_vital": { "type": "object", "additionalProperties": { "type": "number", "format": "double" }, "description": "Mobile app vitals recorded on the span, keyed by app.vitals." }, "op": { "type": "string", "description": "Operation of the span, such as http.client or db" }, "name": { "type": "string", "description": "Name of the span" }, "parent_span_id": { "type": "string", "nullable": true, "description": "ID of the parent span. Null for root spans" }, "profile_id": { "type": "string", "description": "ID of the transaction profile linked to the span" }, "profiler_id": { "type": "string", "description": "ID of the continuous profiling session linked to the span" }, "sdk_name": { "type": "string", "description": "Name of the SDK that sent the span" }, "start_timestamp": { "type": "number", "format": "double", "description": "When the span started, as a Unix timestamp in seconds" }, "is_transaction": { "type": "boolean", "description": "Whether the span is a transaction (segment) span" }, "transaction_id": { "type": "string", "description": "ID of the transaction event the span belongs to" }, "additional_attributes": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "boolean" } ] }, "description": "Extra span attributes requested with additional_attributes, keyed by attribute name" } }, "required": [ "browser_web_vital", "children", "description", "duration", "end_timestamp", "errors", "event_id", "event_type", "is_transaction", "measurements", "mobile_app_vital", "name", "occurrences", "op", "parent_span_id", "profile_id", "profiler_id", "project_id", "project_slug", "sdk_name", "start_timestamp", "transaction", "transaction_id" ] }, { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" }, "event_type": { "enum": [ "error", "occurrence" ], "type": "string", "description": "Kind of issue item: error or occurrence" }, "issue_id": { "type": "integer", "description": "ID of the issue" }, "level": { "type": "string", "description": "Level of the issue, such as error or warning" }, "start_timestamp": { "type": "number", "format": "double", "description": "When the error or occurrence started, as a Unix timestamp in seconds" }, "end_timestamp": { "type": "number", "format": "double", "description": "When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "short_id": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "issue_type": { "type": "integer", "description": "Numeric issue type ID" } }, "required": [ "culprit", "description", "event_id", "event_type", "issue_id", "issue_type", "level", "project_id", "project_slug", "short_id", "start_timestamp", "transaction" ] }, { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" }, "event_type": { "enum": [ "uptime_check" ], "type": "string", "description": "Kind of item, always uptime_check" }, "children": { "type": "array", "items": { "type": "object", "description": "Fields shared by every item in a trace. Entries in `children` are full\nspans at runtime; only the shared fields are documented here.", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" } }, "required": [ "description", "event_id", "project_id", "project_slug", "transaction" ] }, "description": "Child items of the item, such as spans" }, "errors": { "type": "array", "items": { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" }, "event_type": { "enum": [ "error", "occurrence" ], "type": "string", "description": "Kind of issue item: error or occurrence" }, "issue_id": { "type": "integer", "description": "ID of the issue" }, "level": { "type": "string", "description": "Level of the issue, such as error or warning" }, "start_timestamp": { "type": "number", "format": "double", "description": "When the error or occurrence started, as a Unix timestamp in seconds" }, "end_timestamp": { "type": "number", "format": "double", "description": "When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "short_id": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "issue_type": { "type": "integer", "description": "Numeric issue type ID" } }, "required": [ "culprit", "description", "event_id", "event_type", "issue_id", "issue_type", "level", "project_id", "project_slug", "short_id", "start_timestamp", "transaction" ] }, "description": "Errors linked to the item" }, "occurrences": { "type": "array", "items": { "type": "object", "properties": { "description": { "type": "string", "description": "Description of the item: the span description, the issue title or the error message" }, "event_id": { "type": "string", "description": "ID of the item" }, "project_id": { "type": "integer", "description": "ID of the project the item belongs to" }, "project_slug": { "type": "string", "description": "Slug of the project the item belongs to" }, "transaction": { "type": "string", "description": "Name of the transaction the item belongs to" }, "event_type": { "enum": [ "error", "occurrence" ], "type": "string", "description": "Kind of issue item: error or occurrence" }, "issue_id": { "type": "integer", "description": "ID of the issue" }, "level": { "type": "string", "description": "Level of the issue, such as error or warning" }, "start_timestamp": { "type": "number", "format": "double", "description": "When the error or occurrence started, as a Unix timestamp in seconds" }, "end_timestamp": { "type": "number", "format": "double", "description": "When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module where the issue occurs" }, "short_id": { "type": "string", "nullable": true, "description": "Short ID of the issue, such as PROJECT-1A" }, "issue_type": { "type": "integer", "description": "Numeric issue type ID" } }, "required": [ "culprit", "description", "event_id", "event_type", "issue_id", "issue_type", "level", "project_id", "project_slug", "short_id", "start_timestamp", "transaction" ] }, "description": "Non-error issue occurrences, such as performance issues, linked to the item" }, "transaction_id": { "type": "string", "description": "ID of the trace the uptime check belongs to" }, "op": { "type": "string", "description": "Operation of the uptime check, always uptime.request" }, "start_timestamp": { "type": "number", "format": "double", "description": "When the uptime check started, as a Unix timestamp in seconds" }, "end_timestamp": { "type": "number", "format": "double", "description": "When the uptime check ended, as a Unix timestamp in seconds" }, "duration": { "type": "number", "format": "double", "description": "Duration of the uptime check in milliseconds" }, "name": { "type": "string", "description": "URL the uptime check requested" }, "region_name": { "type": "string", "description": "Region the uptime check ran from" }, "additional_attributes": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the uptime result" }, "trace": { "type": "string", "description": "ID of the trace the uptime check belongs to" }, "span_id": { "type": "string", "description": "ID of the span the uptime checker made up for the check" }, "environment": { "type": "string", "description": "Environment of the uptime monitor" }, "guid": { "type": "string", "description": "Unique ID of the uptime check" }, "subscription_id": { "type": "string", "description": "ID of the uptime subscription the check ran for" }, "check_id": { "type": "string", "description": "ID of the uptime check" }, "check_status": { "description": "Outcome of the check", "type": "string", "enum": [ "success", "failure", "missed_window", "disallowed_by_robots" ] }, "region": { "type": "string", "description": "Slug of the region the check ran from" }, "scheduled_check_time_us": { "type": "integer", "description": "When the check was scheduled to run, in microseconds" }, "actual_check_time_us": { "type": "integer", "description": "When the check ran, in microseconds" }, "check_duration_us": { "type": "integer", "description": "Duration of the check in microseconds" }, "status_reason_type": { "description": "Kind of failure", "type": "string", "enum": [ "timeout", "dns_error", "failure", "tls_error", "connection_error", "redirect_error", "miss_produced", "miss_backfill", "assertion_compilation_error", "assertion_evaluation_error" ] }, "status_reason_description": { "type": "string", "description": "Description of why the check failed" }, "assertion_failure_data": { "type": "string", "description": "Assertion that failed, as JSON" }, "method": { "description": "HTTP method of the first request of the check", "type": "string", "enum": [ "GET", "POST", "HEAD", "PUT", "DELETE", "PATCH", "OPTIONS" ] }, "original_url": { "type": "string", "description": "URL of the first request of the check, before redirects" }, "request_sequence": { "type": "integer", "description": "Position of the request in the redirect chain, starting at 0" }, "request_type": { "description": "HTTP method of the request", "type": "string", "enum": [ "GET", "POST", "HEAD", "PUT", "DELETE", "PATCH", "OPTIONS" ] }, "request_url": { "type": "string", "description": "URL of the request" }, "http_status_code": { "type": "integer", "description": "HTTP status code of the response" }, "request_body_size_bytes": { "type": "integer", "description": "Size of the request body in bytes" }, "response_body_size_bytes": { "type": "integer", "description": "Size of the response body in bytes" }, "request_duration_us": { "type": "integer", "description": "Duration of the request in microseconds" }, "dns_lookup_start_us": { "type": "integer", "description": "When the DNS lookup started, in microseconds" }, "dns_lookup_duration_us": { "type": "integer", "description": "Duration of the DNS lookup in microseconds" }, "tcp_connection_start_us": { "type": "integer", "description": "When the TCP connection started, in microseconds" }, "tcp_connection_duration_us": { "type": "integer", "description": "Duration of the TCP connection in microseconds" }, "tls_handshake_start_us": { "type": "integer", "description": "When the TLS handshake started, in microseconds" }, "tls_handshake_duration_us": { "type": "integer", "description": "Duration of the TLS handshake in microseconds" }, "time_to_first_byte_start_us": { "type": "integer", "description": "When the wait for the first response byte started, in microseconds" }, "time_to_first_byte_duration_us": { "type": "integer", "description": "Time to the first response byte in microseconds" }, "send_request_start_us": { "type": "integer", "description": "When sending the request started, in microseconds" }, "send_request_duration_us": { "type": "integer", "description": "Duration of sending the request in microseconds" }, "receive_response_start_us": { "type": "integer", "description": "When receiving the response started, in microseconds" }, "receive_response_duration_us": { "type": "integer", "description": "Duration of receiving the response in microseconds" }, "incident_status": { "type": "integer", "description": "Whether the check is part of an incident: 1 if it is, 0 if not" } }, "description": "Extra uptime check attributes, keyed by attribute name" } }, "required": [ "additional_attributes", "children", "description", "duration", "end_timestamp", "errors", "event_id", "event_type", "name", "occurrences", "op", "project_id", "project_slug", "region_name", "start_timestamp", "transaction", "transaction_id" ] } ] } }, "OrganizationWithProjectsAndTeams": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" }, "role": { "type": "string", "description": "Deprecated, use orgRole" }, "orgRole": { "type": "string", "description": "The requesting user's role in the organization" }, "planSampleRate": { "type": "number", "format": "double", "description": "Sample rate of the organization's plan, from 0 to 1" }, "desiredSampleRate": { "type": "number", "format": "double", "description": "Sample rate dynamic sampling aims for, from 0 to 1" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Experiment assignments for the organization, mapping each experiment name to active or control" }, "isDefault": { "type": "boolean", "description": "Whether this is the default organization of a single-organization install" }, "defaultRole": { "type": "string", "description": "Role that new members get by default" }, "orgRoleList": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Role ID, such as member or admin" }, "name": { "type": "string", "description": "Display name of the role" }, "desc": { "type": "string", "description": "Description of what the role can do" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes the role grants in this organization" }, "allowed": { "type": "boolean", "description": "Deprecated alias of isAllowed" }, "isAllowed": { "type": "boolean", "description": "Whether the requesting user can assign this role" }, "isRetired": { "type": "boolean", "description": "Whether the role is retired and shouldn't be assigned to more members" }, "isTeamRolesAllowed": { "type": "boolean", "description": "Whether members with this role can have team-level roles" }, "is_global": { "type": "boolean", "description": "Deprecated alias of isGlobal" }, "isGlobal": { "type": "boolean", "description": "Whether the role gives access to all teams and projects in the organization" }, "minimumTeamRole": { "type": "string", "description": "ID of the lowest team role that members with this organization role hold on every team" } }, "required": [ "allowed", "desc", "id", "isAllowed", "isGlobal", "isRetired", "isTeamRolesAllowed", "is_global", "minimumTeamRole", "name", "scopes" ] }, "description": "Organization roles available in the organization" }, "teamRoleList": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Role ID, such as member or admin" }, "name": { "type": "string", "description": "Display name of the role" }, "desc": { "type": "string", "description": "Description of what the role can do" }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes the role grants in this organization" }, "allowed": { "type": "boolean", "description": "Deprecated alias of isAllowed" }, "isAllowed": { "type": "boolean", "description": "Whether the requesting user can assign this role" }, "isRetired": { "type": "boolean", "description": "Whether the role is retired and shouldn't be assigned to more members" }, "isTeamRolesAllowed": { "type": "boolean", "description": "Whether members with this role can have team-level roles" }, "isMinimumRoleFor": { "type": "string", "nullable": true, "description": "ID of the organization role whose members hold at least this team role on every team, or null" } }, "required": [ "allowed", "desc", "id", "isAllowed", "isMinimumRoleFor", "isRetired", "isTeamRolesAllowed", "name", "scopes" ] }, "description": "Team roles available in the organization" }, "openMembership": { "type": "boolean", "description": "Whether members can freely join any team" }, "allowSharedIssues": { "type": "boolean", "description": "Whether limited details of issues can be shared with anonymous users" }, "enhancedPrivacy": { "type": "boolean", "description": "Whether enhanced privacy controls limit personally identifiable information (PII) and source code in things like notifications" }, "dataScrubber": { "type": "boolean", "description": "Whether server-side data scrubbing is required for all projects" }, "dataScrubberDefaults": { "type": "boolean", "description": "Whether the default scrubbers apply to all projects, to keep things like passwords and credit cards from being stored" }, "sensitiveFields": { "type": "array", "items": { "type": "string" }, "description": "Additional field names that data scrubbing matches in all projects" }, "safeFields": { "type": "array", "items": { "type": "string" }, "description": "Field names that data scrubbers ignore in all projects" }, "storeCrashReports": { "type": "integer", "description": "How many native crash reports to store per issue; 0 is disabled and -1 is unlimited" }, "attachmentsRole": { "type": "string", "description": "Role required to download event attachments, such as native crash reports or log files" }, "debugFilesRole": { "type": "string", "description": "Role required to download debug information files, ProGuard mappings and source maps" }, "eventsMemberAdmin": { "type": "boolean", "description": "Whether members can delete events, through the event:admin scope" }, "alertsMemberWrite": { "type": "boolean", "description": "Whether members can create, edit and delete alert rules, through the alerts:write scope" }, "scrubIPAddresses": { "type": "boolean", "description": "Whether IP addresses are kept from being stored for new events in all projects" }, "scrapeJavaScript": { "type": "boolean", "description": "Whether Sentry scrapes missing JavaScript source context when possible" }, "allowJoinRequests": { "type": "boolean", "description": "Whether users can request to join the organization" }, "relayPiiConfig": { "type": "string", "nullable": true, "description": "Advanced data scrubbing rules of the organization as a JSON string, or null" }, "relayDsnEndpoint": { "type": "string", "nullable": true, "description": "Relay base URL used when displaying Client Key DSNs, or null" }, "trustedRelays": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the Relay" }, "description": { "type": "string", "description": "Description of the Relay" }, "publicKey": { "type": "string", "description": "Public key of the Relay" }, "created": { "type": "string", "format": "date-time", "description": "When the Relay was added" }, "lastModified": { "type": "string", "format": "date-time", "description": "When the Relay was added or its name or description last changed" } } }, "description": "Local Relays registered for the organization" }, "pendingAccessRequests": { "type": "integer", "description": "Number of pending requests to join teams in the organization" }, "hideAiFeatures": { "type": "boolean", "description": "Whether AI features are hidden for the organization" }, "aggregatedDataConsent": { "type": "boolean", "description": "Whether the organization agreed to let Sentry use its data in aggregate" }, "isDynamicallySampled": { "type": "boolean", "description": "Whether dynamic sampling keeps less than all events, for the organization or any of its projects" }, "issueAlertsThreadFlag": { "type": "boolean", "description": "Whether the Slack integration posts replies in threads for issue alert notifications" }, "metricAlertsThreadFlag": { "type": "boolean", "description": "Whether the Slack integration posts replies in threads for metric alert notifications" }, "requiresSso": { "type": "boolean", "description": "Whether the requesting user must sign in with SSO to access the organization" }, "defaultAutofixAutomationTuning": { "type": "string", "description": "Default Autofix automation tuning for new projects" }, "defaultSeerScannerAutomation": { "type": "boolean", "description": "Default issue scanner automation for new projects; on seat-based Seer plans, new projects always have it on" }, "enableSeerCoding": { "type": "boolean", "description": "Whether Seer coding is enabled for the organization" }, "defaultCodingAgent": { "type": "string", "description": "Coding agent that automated Autofix runs on new projects hand off to, or seer; applies to seat-based Seer plans" }, "defaultCodingAgentIntegrationId": { "type": "string", "nullable": true, "description": "Integration ID of the default coding agent, or null" }, "defaultAutomatedRunStoppingPoint": { "type": "string", "description": "Step where automated Autofix runs on new projects stop by default" }, "autoEnableCodeReview": { "type": "boolean", "description": "Whether code review is turned on for GitHub repositories when they're added" }, "autoOpenPrs": { "type": "boolean", "description": "Whether automated Autofix runs on new projects open pull requests by default" }, "defaultCodeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Code review triggers that GitHub repositories get when they're added" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Team ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Team slug, unique within the organization" }, "name": { "type": "string", "description": "Display name of the team" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the team was created (ISO 8601)" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of the team" }, "teamRole": { "type": "string", "nullable": true, "description": "The requesting user's role in the team" }, "flags": { "type": "object", "additionalProperties": { "type": "boolean" }, "description": "Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the team through their team role. Empty if the user has no access" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams" }, "isPending": { "type": "boolean", "description": "Whether the requesting user has a pending request to join the team" }, "memberCount": { "type": "integer", "description": "Number of members in the team" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Team avatar" }, "externalTeams": { "type": "array", "items": { "type": "object", "properties": { "externalId": { "type": "string", "description": "ID of the user or team in the provider" }, "userId": { "type": "string", "description": "ID of the Sentry user. Only set for user mappings" }, "teamId": { "type": "string", "description": "ID of the Sentry team. Only set for team mappings" }, "id": { "type": "string", "description": "ID of the external actor mapping" }, "provider": { "type": "string", "description": "Provider of the external actor, such as github or slack" }, "externalName": { "type": "string", "description": "Name of the user or team in the provider, such as @octocat" }, "integrationId": { "type": "string", "description": "ID of the integration the mapping belongs to" } }, "required": [ "externalName", "id", "integrationId", "provider" ] }, "description": "Teams in external providers, such as Slack or GitHub, that are linked to this team" }, "organization": { "type": "object", "properties": { "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the organization" }, "extraOptions": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": {} }, "description": "Server-wide options that the Sentry UI reads" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has in the organization" }, "onboardingTasks": { "type": "array", "items": { "type": "object", "properties": { "task": { "type": "string", "nullable": true, "description": "Onboarding task key, such as create_project" }, "status": { "type": "string", "description": "Task status: complete or skipped" }, "completionSeen": { "type": "string", "format": "date-time", "nullable": true, "description": "When the task's completion was marked as seen, or null" }, "dateCompleted": { "type": "string", "format": "date-time", "description": "When the task was completed or skipped" }, "data": { "type": "object", "properties": { "invited_member_id": { "type": "integer", "description": "ID of the member whose invite completed the invite_member task" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the first event, for the first_event task" }, "plugin": { "type": "string", "description": "Slug of the plugin enabled for the task" }, "providers": { "type": "array", "items": { "type": "string" }, "description": "Integration providers installed for the integrations task" } }, "description": "Data recorded for the task. Most tasks record none, so it's often empty" } }, "required": [ "completionSeen", "data", "dateCompleted", "status", "task" ] }, "description": "Onboarding tasks the organization has completed or skipped" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Organization ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Organization slug" }, "status": { "type": "object", "properties": { "id": { "type": "string", "description": "Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval" }, "name": { "type": "string", "description": "Status label, such as active or pending deletion" } }, "required": [ "id", "name" ], "description": "Organization status" }, "name": { "type": "string", "description": "Organization name, or its slug when it has no name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the organization was created (ISO 8601)" }, "isEarlyAdopter": { "type": "boolean", "description": "Whether the organization is an early adopter" }, "require2FA": { "type": "boolean", "description": "Whether members must use two-factor authentication" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Organization avatar" }, "links": { "type": "object", "properties": { "organizationUrl": { "type": "string", "description": "Base URL of the organization" }, "regionUrl": { "type": "string", "description": "Base URL of the API for the organization's region" } }, "required": [ "organizationUrl", "regionUrl" ], "description": "Organization and region URLs" }, "hasAuthProvider": { "type": "boolean", "description": "Whether SSO is configured for the organization" }, "allowMemberInvite": { "type": "boolean", "description": "Whether members can invite other members" }, "allowMemberProjectCreation": { "type": "boolean", "description": "Whether members can create projects" }, "allowSuperuserAccess": { "type": "boolean", "description": "Whether Sentry superusers can access the organization" } }, "required": [ "allowMemberInvite", "allowMemberProjectCreation", "allowSuperuserAccess", "avatar", "dateCreated", "hasAuthProvider", "id", "isEarlyAdopter", "links", "name", "require2FA", "slug", "status" ], "description": "Organization the team belongs to" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ] }, "description": "Projects the team has access to" } }, "required": [ "access", "avatar", "dateCreated", "flags", "hasAccess", "id", "isMember", "isPending", "memberCount", "name", "slug", "teamRole" ] }, "description": "Active teams of the organization" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "latestDeploys": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed" }, "options": { "type": "object", "additionalProperties": {}, "description": "Requested project options, keyed by option name. Only included when options are requested" }, "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "nullable": true, "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms seen in the project's events" }, "hasUserReports": { "type": "boolean", "description": "Whether the project has received user reports" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments seen in the project's events" }, "latestRelease": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ], "nullable": true, "description": "Latest release of the project" } }, "required": [ "access", "dateCreated", "environments", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "hasUserReports", "id", "isBookmarked", "isMember", "latestRelease", "name", "platform", "platforms", "slug", "team", "teams" ] }, "description": "Active projects of the organization" } }, "required": [ "aggregatedDataConsent", "alertsMemberWrite", "allowJoinRequests", "allowMemberInvite", "allowMemberProjectCreation", "allowSharedIssues", "allowSuperuserAccess", "attachmentsRole", "autoEnableCodeReview", "autoOpenPrs", "avatar", "dataScrubber", "dataScrubberDefaults", "dateCreated", "debugFilesRole", "defaultAutofixAutomationTuning", "defaultAutomatedRunStoppingPoint", "defaultCodeReviewTriggers", "defaultCodingAgent", "defaultCodingAgentIntegrationId", "defaultRole", "defaultSeerScannerAutomation", "enableSeerCoding", "enhancedPrivacy", "eventsMemberAdmin", "experiments", "hasAuthProvider", "hideAiFeatures", "id", "isDefault", "isDynamicallySampled", "isEarlyAdopter", "issueAlertsThreadFlag", "links", "metricAlertsThreadFlag", "name", "openMembership", "orgRoleList", "pendingAccessRequests", "projects", "relayDsnEndpoint", "relayPiiConfig", "require2FA", "requiresSso", "safeFields", "scrapeJavaScript", "scrubIPAddresses", "sensitiveFields", "slug", "status", "storeCrashReports", "teamRoleList", "teams", "trustedRelays" ] }, "OutcomesResponse": { "type": "object", "properties": { "start": { "type": "string", "description": "Start of the queried time range (ISO 8601)" }, "end": { "type": "string", "description": "End of the queried time range (ISO 8601)" }, "intervals": { "type": "array", "items": { "type": "string" }, "description": "Start of each interval in the series (ISO 8601)" }, "groups": { "type": "array", "items": { "type": "object", "properties": { "by": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "description": "Values of the group-by columns of the group" }, "totals": { "type": "object", "additionalProperties": { "type": "integer" }, "description": "Value of each requested field over the whole time range, by field" }, "series": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "integer" } }, "description": "Value of each requested field for each interval, by field" } }, "required": [ "by", "totals" ] }, "description": "Result for each group" } }, "required": [ "end", "groups", "start" ] }, "OutgoingNotificationAction": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the notification action" }, "organizationId": { "type": "integer", "description": "ID of the organization" }, "integrationId": { "type": "integer", "nullable": true, "description": "ID of the integration that sends the notification. Null when none is used" }, "sentryAppId": { "type": "integer", "nullable": true, "description": "ID of the Sentry app that receives the notification. Null when none is used" }, "projects": { "type": "array", "items": { "type": "integer" }, "description": "IDs of the projects the action applies to" }, "serviceType": { "type": "string", "nullable": true, "description": "Service that sends the notification, such as email, slack or pagerduty" }, "triggerType": { "type": "string", "description": "What triggers the action, such as audit-log or spike-protection" }, "targetType": { "type": "string", "nullable": true, "description": "Kind of target: specific, user, team, sentry_app or issue_owners" }, "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target in the service, such as a Slack channel ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Name of the target, such as #alerts" } }, "required": [ "id", "integrationId", "organizationId", "projects", "sentryAppId", "serviceType", "targetDisplay", "targetIdentifier", "targetType", "triggerType" ] }, "PlatformExternalIssueResponse": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the external issue link" }, "issueId": { "type": "string", "description": "ID of the Sentry issue" }, "serviceType": { "type": "string", "description": "Slug of the custom integration that created the external issue" }, "displayName": { "type": "string", "description": "Display name of the external issue, such as ABC-123" }, "webUrl": { "type": "string", "description": "URL of the external issue" } }, "required": [ "displayName", "id", "issueId", "serviceType", "webUrl" ] }, "PreprodArtifactAssembleResponse": { "type": "object", "properties": { "state": { "type": "string", "description": "State of the build file: not_found if chunks are missing or none were sent, created once the build is queued for assembly" }, "missingChunks": { "type": "array", "items": { "type": "string" }, "description": "Checksums of the chunks the server doesn't have yet" }, "artifactUrl": { "type": "string", "format": "uri", "description": "URL of the build in Sentry. Only set when the state is created" } }, "required": [ "missingChunks", "state" ] }, "PreviousReleaseWithCommitsResponse": { "anyOf": [ { "type": "object", "properties": { "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release started (ISO 8601)" }, "owner": { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ], "nullable": true, "description": "Release owner" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its first event (ISO 8601)" }, "lastEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release received its most recent event (ISO 8601)" }, "currentProjectMeta": { "type": "object", "properties": { "sessionsLowerBound": { "type": "string", "nullable": true, "description": "Start of the release's sessions in the project (ISO 8601)" }, "sessionsUpperBound": { "type": "string", "nullable": true, "description": "End of the release's sessions in the project (ISO 8601)" }, "nextReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the next release in the project" }, "prevReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the previous release in the project" }, "firstReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the first release in the project" }, "lastReleaseVersion": { "type": "string", "nullable": true, "description": "Version of the latest release in the project" } }, "nullable": true, "description": "Session bounds and neighboring release versions in the current project, when a project is requested" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "adoptionStages": { "type": "object", "additionalProperties": { "type": "object", "properties": { "stage": { "enum": [ "adopted", "low_adoption", "replaced" ], "type": "string", "description": "Adoption stage of the release" }, "adopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was adopted (ISO 8601)" }, "unadopted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release stopped being adopted (ISO 8601)" } }, "required": [ "adopted", "stage", "unadopted" ] }, "nullable": true, "description": "Adoption stage of the release in each project, keyed by project slug" }, "id": { "type": "integer", "description": "Release ID" }, "version": { "type": "string", "description": "Version of the release" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "shortVersion": { "type": "string", "description": "Shortened release version" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "authors": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] } ] }, "description": "Authors of the release's commits" }, "projects": { "type": "array", "items": { "type": "object", "properties": { "healthData": { "type": "object", "properties": { "durationP50": { "type": "number", "format": "double", "nullable": true, "description": "Median session duration in seconds" }, "durationP90": { "type": "number", "format": "double", "nullable": true, "description": "90th percentile session duration in seconds" }, "crashFreeUsers": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of users who didn't experience a crash" }, "crashFreeSessions": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of sessions that didn't crash" }, "totalUsers": { "type": "integer", "nullable": true, "description": "Total number of users in the release" }, "totalUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the release over the last 24 hours" }, "totalProjectUsers24h": { "type": "integer", "nullable": true, "description": "Number of users in the project over the last 24 hours" }, "totalSessions": { "type": "integer", "nullable": true, "description": "Total number of sessions in the release" }, "totalSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the release over the last 24 hours" }, "totalProjectSessions24h": { "type": "integer", "nullable": true, "description": "Number of sessions in the project over the last 24 hours" }, "adoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's users over the last 24 hours that were on the release" }, "sessionsAdoption": { "type": "number", "format": "double", "nullable": true, "description": "Percentage of the project's sessions over the last 24 hours that were on the release" }, "sessionsCrashed": { "type": "integer", "description": "Number of crashed sessions" }, "sessionsErrored": { "type": "integer", "description": "Number of sessions with errors" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data" }, "stats": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "array", "items": { "type": "integer" } } }, "description": "Session or user counts over time, keyed by stats period" } }, "required": [ "hasHealthData", "sessionsCrashed", "sessionsErrored", "stats" ], "nullable": true, "description": "Release health data for the project. Only included when health data is requested" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was released in the project (ISO 8601)" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release was created (ISO 8601)" }, "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When work on the release started (ISO 8601)" }, "id": { "type": "integer", "description": "ID of the project" }, "slug": { "type": "string", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "Platforms of the project" }, "hasHealthData": { "type": "boolean", "description": "Whether the release has session data in the project" }, "newGroups": { "type": "integer", "description": "Number of new issues first seen in the release in the project" } }, "required": [ "hasHealthData", "id", "name", "newGroups", "platform", "platforms", "slug" ] }, "description": "Projects in the release" } }, "required": [ "authors", "commitCount", "data", "deployCount", "id", "newGroups", "projects", "shortVersion", "status", "version", "versionInfo" ] }, { "type": "object", "description": "No release with commits was found.", "maxProperties": 0 } ] }, "ProjectAdmin": { "type": "object", "properties": { "digestsMinDelay": { "type": "integer", "maximum": 3600, "minimum": 60, "description": "Minimum time in seconds to wait before sending an issue digest email." }, "digestsMaxDelay": { "type": "integer", "maximum": 3600, "minimum": 60, "description": "Maximum time in seconds to wait before sending an issue digest email." }, "securityToken": { "type": "string", "description": "Token sent with security reports (CSP, Expect-CT, HPKP) so Sentry can verify their origin.", "maxLength": 255, "pattern": "^[-a-zA-Z0-9+/=\\s]+$" }, "securityTokenHeader": { "type": "string", "description": "Name of the header carrying the security token on inbound security reports.", "maxLength": 64, "pattern": "^[a-zA-Z0-9_\\-]+$" }, "isBookmarked": { "type": "boolean", "description": "Enables starring the project within the projects tab. Can be updated with **`project:read`** permission." }, "autofixAutomationTuning": { "enum": [ "off", "super_low", "low", "medium", "high", "always" ], "type": "string", "description": "How aggressively Seer runs Autofix on new issues. Can be updated with **`project:read`** permission.\n\n* `off`\n* `super_low`\n* `low`\n* `medium`\n* `high`\n* `always`" }, "seerScannerAutomation": { "type": "boolean", "description": "Let Seer scan new issues automatically. Can be updated with **`project:read`** permission." }, "preprodSizeStatusChecksEnabled": { "type": "boolean", "description": "Enable preprod size status checks. Can be updated with **`project:read`** permission." }, "preprodSizeStatusChecksRules": { "type": "object", "additionalProperties": {}, "description": "Rules controlling when preprod size status checks fail. Can be updated with **`project:read`** permission." }, "preprodSizePrCommentsEnabled": { "type": "boolean", "description": "Enable preprod size PR comments. Can be updated with **`project:read`** permission." }, "preprodSizePrCommentsRules": { "type": "object", "additionalProperties": {}, "description": "Rules controlling which preprod size changes are posted as PR comments. Can be updated with **`project:read`** permission." }, "preprodSnapshotStatusChecksEnabled": { "type": "boolean", "description": "Enable preprod snapshot status checks." }, "preprodSnapshotStatusChecksFailOnAdded": { "type": "boolean", "description": "Fail the preprod snapshot status check when snapshots are added." }, "preprodSnapshotStatusChecksFailOnRemoved": { "type": "boolean", "description": "Fail the preprod snapshot status check when snapshots are removed." }, "preprodSnapshotStatusChecksFailOnChanged": { "type": "boolean", "description": "Fail the preprod snapshot status check when snapshots change." }, "preprodSnapshotStatusChecksFailOnRenamed": { "type": "boolean", "description": "Fail the preprod snapshot status check when snapshots are renamed." }, "preprodSizeEnabledByCustomer": { "type": "boolean", "nullable": true, "description": "Enable preprod size analysis. Can be updated with **`project:read`** permission." }, "preprodDistributionEnabledByCustomer": { "type": "boolean", "nullable": true, "description": "Enable preprod build distribution. Can be updated with **`project:read`** permission." }, "preprodDistributionPrCommentsEnabledByCustomer": { "type": "boolean", "nullable": true, "description": "Post preprod distribution updates as PR comments. Can be updated with **`project:read`** permission." }, "preprodSnapshotPrCommentsEnabled": { "type": "boolean", "nullable": true, "description": "Post preprod snapshot changes as PR comments." }, "preprodSnapshotPrCommentsPostOnAdded": { "type": "boolean", "nullable": true, "description": "Include added snapshots in preprod snapshot PR comments." }, "preprodSnapshotPrCommentsPostOnRemoved": { "type": "boolean", "nullable": true, "description": "Include removed snapshots in preprod snapshot PR comments." }, "preprodSnapshotPrCommentsPostOnChanged": { "type": "boolean", "nullable": true, "description": "Include changed snapshots in preprod snapshot PR comments." }, "preprodSnapshotPrCommentsPostOnRenamed": { "type": "boolean", "nullable": true, "description": "Include renamed snapshots in preprod snapshot PR comments." }, "preprodSizeEnabledQuery": { "type": "string", "nullable": true, "description": "Query selecting which preprod builds are size-analyzed. Can be updated with **`project:read`** permission." }, "preprodDistributionEnabledQuery": { "type": "string", "nullable": true, "description": "Query selecting which preprod builds are distributed. Can be updated with **`project:read`** permission." }, "name": { "type": "string", "description": "The name for the project", "maxLength": 200 }, "slug": { "type": "string", "description": "Uniquely identifies a project and is used for the interface.", "maxLength": 100, "pattern": "^(?![0-9]+$)[a-z0-9_\\-]+$" }, "platform": { "type": "string", "nullable": true, "description": "The platform for the project" }, "subjectPrefix": { "type": "string", "description": "Custom prefix for emails from this project.", "maxLength": 200 }, "subjectTemplate": { "type": "string", "description": "The email subject to use (excluding the prefix) for individual alerts. Here are the list of variables you can use:\n- `$title`\n- `$shortID`\n- `$projectID`\n- `$orgID`\n- `${tag:key}` - such as `${tag:environment}` or `${tag:release}`.", "maxLength": 200 }, "resolveAge": { "type": "integer", "nullable": true, "description": "Automatically resolve an issue if it hasn't been seen for this many hours. Set to `0` to disable auto-resolve." }, "highlightContext": { "type": "object", "additionalProperties": {}, "description": "A JSON mapping of context types to lists of strings for their keys.\nE.g. `{'user': ['id', 'email']}`" }, "highlightTags": { "type": "array", "items": { "type": "string" }, "description": "A list of strings with tag keys to highlight on this project's issues.\nE.g. `['release', 'environment']`" }, "verifySSL": { "type": "boolean", "description": "Verify SSL certificates when delivering outbound webhooks and service hooks." }, "defaultEnvironment": { "type": "string", "nullable": true, "description": "Environment selected by default when viewing this project." }, "dataScrubber": { "type": "boolean", "description": "Remove known sensitive values from events before storing them." }, "dataScrubberDefaults": { "type": "boolean", "description": "Also scrub Sentry's built-in list of sensitive field names." }, "sensitiveFields": { "type": "array", "items": { "type": "string" }, "description": "Additional field names to scrub from events, beyond the defaults." }, "safeFields": { "type": "array", "items": { "type": "string" }, "description": "Field names to exempt from scrubbing, including the built-in defaults." }, "storeCrashReports": { "type": "integer", "maximum": 100, "minimum": -1, "nullable": true, "description": "Number of native crash report files to store per issue. Use `-1` for unlimited or `0` to store none." }, "relayPiiConfig": { "type": "string", "nullable": true, "description": "Advanced data scrubbing rules, as a JSON string, applied before events are stored." }, "builtinSymbolSources": { "type": "array", "items": { "type": "string" }, "description": "Identifiers of Sentry-hosted symbol sources to use when symbolicating events." }, "symbolSources": { "type": "string", "nullable": true, "description": "Custom symbol sources, as a JSON string, to use when symbolicating events." }, "enableNativeSourceServerMapping": { "type": "boolean", "description": "Apply source server (srcsrv) information from native debug files to symbolicated frames." }, "scrubIPAddresses": { "type": "boolean", "description": "Discard client IP addresses rather than storing them on events." }, "groupingConfig": { "type": "string", "nullable": true, "description": "Identifier of the grouping algorithm used to assign events to issues." }, "groupingEnhancements": { "type": "string", "nullable": true, "description": "Grouping enhancement rules, as a newline-delimited config string, adjusting which stack frames contribute to an issue." }, "fingerprintingRules": { "type": "string", "nullable": true, "description": "Fingerprinting rules, as a newline-delimited config string, controlling how events are grouped into issues." }, "secondaryGroupingConfig": { "type": "string", "nullable": true, "description": "Grouping algorithm run alongside the primary one during a grouping migration." }, "secondaryGroupingExpiry": { "type": "integer", "minimum": 1, "nullable": true, "description": "Unix timestamp after which the secondary grouping algorithm stops running." }, "scrapeJavaScript": { "type": "boolean", "description": "Allow Sentry to fetch source files and source maps from your servers." }, "enableAutoReleaseCreation": { "type": "boolean", "description": "Automatically create releases from ingested events. When disabled, releases must be created manually (e.g. via the Sentry CLI)." }, "allowedDomains": { "type": "array", "items": { "type": "string" }, "description": "Origins permitted to send events to this project. Use `*` to allow any." }, "copy_from_project": { "type": "integer", "description": "ID of a project whose settings, teams, and keys should be copied into this one." }, "dynamicSamplingBiases": { "type": "array", "items": { "type": "object", "properties": { "id": { "enum": [ "boostEnvironments", "boostKeyTransactions", "boostLatestRelease", "boostLowVolumeTransactions", "boostReplayId", "ignoreHealthChecks", "minimumSampleRate", "recalibrationRule" ], "type": "string", "description": "* `boostEnvironments`\n* `boostKeyTransactions`\n* `boostLatestRelease`\n* `boostLowVolumeTransactions`\n* `boostReplayId`\n* `ignoreHealthChecks`\n* `minimumSampleRate`\n* `recalibrationRule`" }, "active": { "type": "boolean", "default": false } }, "required": [ "id" ] }, "description": "Per-bias toggles adjusting which transactions dynamic sampling favors retaining." }, "tempestFetchScreenshots": { "type": "boolean", "description": "Fetch screenshots attached to console crash reports. Requires the Tempest feature." }, "scmSourceContextEnabled": { "type": "boolean", "description": "Enable on-demand source context fetching from SCM integrations for stack traces." }, "debugFilesRole": { "enum": [ "member", "admin", "manager", "owner", null ], "type": "string", "nullable": true, "description": "The role required to download debug information files, ProGuard mappings and source maps. If not set, inherits from organization setting.\n\n* `member` - Member\n* `admin` - Admin\n* `manager` - Manager\n* `owner` - Owner" } }, "required": [ "digestsMaxDelay", "digestsMinDelay", "securityToken", "securityTokenHeader" ] }, "ProjectCodeOwners": { "type": "object", "properties": { "codeMapping": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the code mapping" }, "projectId": { "type": "string", "description": "ID of the project" }, "projectSlug": { "type": "string", "description": "Slug of the project" }, "repoId": { "type": "string", "description": "ID of the repository" }, "repoName": { "type": "string", "description": "Name of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "nullable": true, "description": "Provider of the repository's integration" }, "stackRoot": { "type": "string", "description": "Stack trace path prefix that the mapping replaces" }, "sourceRoot": { "type": "string", "description": "Repository path prefix that replaces the stack root" }, "defaultBranch": { "type": "string", "nullable": true, "description": "Branch to link source files on" }, "automaticallyGenerated": { "type": "boolean", "description": "Whether Sentry created the mapping automatically" }, "hasCodeOwner": { "type": "boolean", "description": "Whether the mapping has a CODEOWNERS file linked" } }, "required": [ "automaticallyGenerated", "defaultBranch", "hasCodeOwner", "id", "integrationId", "projectId", "projectSlug", "provider", "repoId", "repoName", "sourceRoot", "stackRoot" ], "description": "Code mapping of the CODEOWNERS file. Only set when expand includes codeMapping" }, "ownershipSyntax": { "type": "string", "description": "CODEOWNERS rules translated to Sentry ownership rules. Only set when expand includes ownershipSyntax" }, "errors": { "type": "object", "properties": { "missing_user_emails": { "type": "array", "items": { "type": "string" }, "description": "Email owners in the CODEOWNERS file with no matching Sentry user" }, "missing_external_users": { "type": "array", "items": { "type": "string" }, "description": "User owners in the CODEOWNERS file with no external user mapping" }, "missing_external_teams": { "type": "array", "items": { "type": "string" }, "description": "Team owners in the CODEOWNERS file with no external team mapping" }, "teams_without_access": { "type": "array", "items": { "type": "string" }, "description": "Teams in the CODEOWNERS file that don't have access to the project" }, "users_without_access": { "type": "array", "items": { "type": "string" }, "description": "Users in the CODEOWNERS file who aren't members of a team with access to the project" } }, "required": [ "missing_external_teams", "missing_external_users", "missing_user_emails", "teams_without_access", "users_without_access" ], "description": "Owners that couldn't be associated, by reason. Only set when expand includes errors" }, "schema": { "anyOf": [ { "type": "object", "properties": { "$version": { "type": "integer", "description": "Version of the ownership rules schema" }, "rules": { "type": "array", "items": { "type": "object", "properties": { "matcher": { "type": "object", "properties": { "type": { "type": "string", "description": "What the rule matches on, path, module, url, codeowners or tags." }, "pattern": { "type": "string", "description": "Pattern the value is matched against" } }, "required": [ "pattern", "type" ], "description": "What the rule matches" }, "owners": { "type": "array", "items": { "type": "object", "description": "Owner as it appears in the API response (after identifier->name rename).", "properties": { "type": { "type": "string", "description": "Whether the owner is a user or a team" }, "name": { "type": "string", "description": "Email of the user, or slug of the team" }, "id": { "type": "string", "description": "ID of the user or team. Only set when the owner was resolved" } }, "required": [ "name", "type" ] }, "description": "Owners the rule assigns" } }, "required": [ "matcher", "owners" ] }, "description": "Ownership rules, in order" } }, "required": [ "$version", "rules" ] }, { "type": "object", "description": "Legacy CODEOWNERS records can have an empty schema before it is built.", "maxProperties": 0 } ], "description": "Parsed rules of the CODEOWNERS file. Only set when expand includes hasTargetingContext" }, "codeOwnersUrl": { "type": "string", "description": "URL of the CODEOWNERS file in the repository, or unknown. Only set when expand includes hasTargetingContext" }, "id": { "type": "string", "description": "ID of the CODEOWNERS record" }, "raw": { "type": "string", "description": "Contents of the CODEOWNERS file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the CODEOWNERS file was added (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the record was last updated (ISO 8601)" }, "dateSynced": { "type": "string", "format": "date-time", "nullable": true, "description": "When the file was last synced from the repository (ISO 8601). Null when it was never synced" }, "codeMappingId": { "type": "string", "description": "ID of the code mapping of the CODEOWNERS file" }, "provider": { "type": "string", "description": "Provider of the repository's integration, such as github, or unknown" } }, "required": [ "codeMappingId", "dateCreated", "dateSynced", "dateUpdated", "id", "provider", "raw" ] }, "ProjectCodeOwnersCreateRequest": { "type": "object", "properties": { "raw": { "type": "string", "description": "The raw contents of the CODEOWNERS file." }, "codeMappingId": { "type": "string", "description": "The ID of the code mapping used to translate repository paths to stack trace paths." } }, "required": [ "codeMappingId", "raw" ] }, "ProjectCodeOwnersList": { "type": "array", "items": { "type": "object", "properties": { "codeMapping": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the code mapping" }, "projectId": { "type": "string", "description": "ID of the project" }, "projectSlug": { "type": "string", "description": "Slug of the project" }, "repoId": { "type": "string", "description": "ID of the repository" }, "repoName": { "type": "string", "description": "Name of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration" }, "provider": { "type": "object", "properties": { "key": { "type": "string", "description": "Key of the integration provider, such as github" }, "slug": { "type": "string", "description": "Slug of the integration provider, same as key" }, "name": { "type": "string", "description": "Display name of the integration provider" }, "canAdd": { "type": "boolean", "description": "Whether the integration can be installed from Sentry" }, "canDisable": { "type": "boolean", "description": "Whether the integration must be uninstalled from the provider instead of in Sentry" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features the integration provider supports, such as issue-basic or commits" }, "aspects": { "type": "object", "description": "Extra provider details shown during setup, such as alerts and configuration instructions", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Style of the alert, such as warning" }, "icon": { "type": "string", "description": "Icon shown with the alert, such as icon-warning-sm" }, "text": { "type": "string", "description": "Text of the alert, in Markdown" } }, "required": [ "icon", "text", "type" ] }, "description": "Alerts shown during setup" }, "configure_integration": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the configuration step" } }, "required": [ "title" ], "description": "Configuration step after install" }, "directEnable": { "type": "boolean", "description": "Whether the integration is enabled without an install flow" }, "disable_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is disabled" }, "externalInstall": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to install the integration from, such as a marketplace" }, "buttonText": { "type": "string", "description": "Label of the install button" }, "noticeText": { "type": "string", "description": "Notice shown before the user leaves Sentry" } }, "required": [ "buttonText", "noticeText", "url" ], "description": "Where to install the integration when it's installed outside Sentry" }, "removal_dialog": { "type": "object", "properties": { "actionText": { "type": "string", "description": "Label of the dialog's confirm button" }, "body": { "type": "string", "description": "Text of the dialog" } }, "required": [ "actionText", "body" ], "description": "Dialog shown before the integration is removed" } } } }, "required": [ "aspects", "canAdd", "canDisable", "features", "key", "name", "slug" ], "nullable": true, "description": "Provider of the repository's integration" }, "stackRoot": { "type": "string", "description": "Stack trace path prefix that the mapping replaces" }, "sourceRoot": { "type": "string", "description": "Repository path prefix that replaces the stack root" }, "defaultBranch": { "type": "string", "nullable": true, "description": "Branch to link source files on" }, "automaticallyGenerated": { "type": "boolean", "description": "Whether Sentry created the mapping automatically" }, "hasCodeOwner": { "type": "boolean", "description": "Whether the mapping has a CODEOWNERS file linked" } }, "required": [ "automaticallyGenerated", "defaultBranch", "hasCodeOwner", "id", "integrationId", "projectId", "projectSlug", "provider", "repoId", "repoName", "sourceRoot", "stackRoot" ], "description": "Code mapping of the CODEOWNERS file. Only set when expand includes codeMapping" }, "ownershipSyntax": { "type": "string", "description": "CODEOWNERS rules translated to Sentry ownership rules. Only set when expand includes ownershipSyntax" }, "errors": { "type": "object", "properties": { "missing_user_emails": { "type": "array", "items": { "type": "string" }, "description": "Email owners in the CODEOWNERS file with no matching Sentry user" }, "missing_external_users": { "type": "array", "items": { "type": "string" }, "description": "User owners in the CODEOWNERS file with no external user mapping" }, "missing_external_teams": { "type": "array", "items": { "type": "string" }, "description": "Team owners in the CODEOWNERS file with no external team mapping" }, "teams_without_access": { "type": "array", "items": { "type": "string" }, "description": "Teams in the CODEOWNERS file that don't have access to the project" }, "users_without_access": { "type": "array", "items": { "type": "string" }, "description": "Users in the CODEOWNERS file who aren't members of a team with access to the project" } }, "required": [ "missing_external_teams", "missing_external_users", "missing_user_emails", "teams_without_access", "users_without_access" ], "description": "Owners that couldn't be associated, by reason. Only set when expand includes errors" }, "schema": { "anyOf": [ { "type": "object", "properties": { "$version": { "type": "integer", "description": "Version of the ownership rules schema" }, "rules": { "type": "array", "items": { "type": "object", "properties": { "matcher": { "type": "object", "properties": { "type": { "type": "string", "description": "What the rule matches on, path, module, url, codeowners or tags." }, "pattern": { "type": "string", "description": "Pattern the value is matched against" } }, "required": [ "pattern", "type" ], "description": "What the rule matches" }, "owners": { "type": "array", "items": { "type": "object", "description": "Owner as it appears in the API response (after identifier->name rename).", "properties": { "type": { "type": "string", "description": "Whether the owner is a user or a team" }, "name": { "type": "string", "description": "Email of the user, or slug of the team" }, "id": { "type": "string", "description": "ID of the user or team. Only set when the owner was resolved" } }, "required": [ "name", "type" ] }, "description": "Owners the rule assigns" } }, "required": [ "matcher", "owners" ] }, "description": "Ownership rules, in order" } }, "required": [ "$version", "rules" ] }, { "type": "object", "description": "Legacy CODEOWNERS records can have an empty schema before it is built.", "maxProperties": 0 } ], "description": "Parsed rules of the CODEOWNERS file. Only set when expand includes hasTargetingContext" }, "codeOwnersUrl": { "type": "string", "description": "URL of the CODEOWNERS file in the repository, or unknown. Only set when expand includes hasTargetingContext" }, "id": { "type": "string", "description": "ID of the CODEOWNERS record" }, "raw": { "type": "string", "description": "Contents of the CODEOWNERS file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the CODEOWNERS file was added (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the record was last updated (ISO 8601)" }, "dateSynced": { "type": "string", "format": "date-time", "nullable": true, "description": "When the file was last synced from the repository (ISO 8601). Null when it was never synced" }, "codeMappingId": { "type": "string", "description": "ID of the code mapping of the CODEOWNERS file" }, "provider": { "type": "string", "description": "Provider of the repository's integration, such as github, or unknown" } }, "required": [ "codeMappingId", "dateCreated", "dateSynced", "dateUpdated", "id", "provider", "raw" ] } }, "ProjectCodeOwnersUpdateRequest": { "type": "object", "properties": { "raw": { "type": "string", "description": "The raw contents of the CODEOWNERS file." }, "codeMappingId": { "type": "string", "description": "The ID of the code mapping used to translate repository paths to stack trace paths." } } }, "ProjectEventDetailsResponse": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "nullable": true, "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateReceived": { "type": "string", "format": "date-time", "nullable": true, "description": "When Sentry received the event (ISO 8601)" }, "size": { "type": "integer", "nullable": true, "description": "Size of the event payload in bytes" }, "entries": { "type": "array", "items": {}, "description": "Event interfaces, such as exception, breadcrumbs and request, each with a type and data" }, "dist": { "type": "string", "nullable": true, "description": "Distribution of the release the event was sent with" }, "packages": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "description": "Modules loaded when the event occurred, keyed by module name with their versions" }, "type": { "enum": [ "default", "error", "csp", "nel", "hpkp", "expectct", "expectstaple", "transaction", "generic", "feedback" ], "type": "string", "description": "Event type, such as error, default or transaction" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } }, "occurrence": { "anyOf": [ { "type": "object", "description": "A metric issue occurrence. `evidenceData` describes the detector and query that fired.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "enum": [ 8001 ], "type": "integer", "description": "Group type ID of metric issues, always 8001" }, "evidenceData": { "type": "object", "properties": { "detectorId": { "type": "integer", "description": "ID of the detector that created the occurrence" }, "alertId": { "type": "integer", "nullable": true, "description": "ID of the metric alert rule the detector replaces. Null when there's none" }, "value": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Metric value the anomaly detection model scored" }, "sourceId": { "type": "string", "description": "ID of the data source that produced the value" }, "subscriptionId": { "type": "string", "description": "ID of the query subscription that produced the value" }, "timestamp": { "type": "string", "description": "When the value was measured" } }, "required": [ "sourceId", "subscriptionId", "timestamp", "value" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Metric value that triggered the detector, or the anomaly detection result for dynamic detectors" }, "dataPacketSourceId": { "type": "string", "description": "ID of the query subscription that sent the data" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer", "description": "ID of the detector condition" }, "type": { "type": "string", "description": "Type of the condition, such as gt, lt or anomaly_detection" }, "comparison": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "object", "properties": { "sensitivity": { "enum": [ "low", "medium", "high" ], "type": "string", "description": "How sensitive the anomaly detection is" }, "seasonality": { "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "type": "string", "description": "Seasonality the anomaly detection model uses" }, "thresholdType": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "Direction of anomalies to detect: 0 above, 1 below, 2 above and below" } }, "required": [ "seasonality", "sensitivity", "thresholdType" ] } ], "description": "Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition" }, "conditionResult": { "type": "integer", "description": "Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions of the detector" }, "config": { "type": "object", "properties": { "detectionType": { "enum": [ "static", "percent", "dynamic" ], "type": "string", "description": "How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection" }, "comparisonDelta": { "type": "integer", "nullable": true, "description": "Time window in seconds that a percent change detector compares with" } }, "required": [ "detectionType" ], "description": "Configuration of the detector" }, "dataSources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the data source" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "type": { "type": "string", "description": "Type of the data source, such as snuba_query_subscription" }, "sourceId": { "type": "string", "description": "ID of the source object, such as the query subscription" }, "queryObj": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query subscription" }, "status": { "type": "integer", "description": "Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled" }, "subscription": { "type": "string", "nullable": true, "description": "ID of the subscription in Snuba. Null while it's being created" }, "snubaQuery": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the query" }, "dataset": { "type": "string", "description": "Dataset the query runs on, such as events or events_analytics_platform" }, "query": { "type": "string", "description": "Search query that filters the data" }, "aggregate": { "type": "string", "description": "Aggregate function the query computes, such as count()" }, "timeWindow": { "type": "integer", "description": "Time window of the query in seconds" }, "environment": { "type": "string", "nullable": true, "description": "Environment the query is limited to. Null for all environments" }, "eventTypes": { "type": "array", "items": { "type": "string" }, "description": "Event types the query includes, such as error or transaction" }, "extrapolationMode": { "type": "string", "nullable": true, "description": "How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set" } }, "required": [ "aggregate", "dataset", "environment", "eventTypes", "extrapolationMode", "id", "query", "timeWindow" ], "description": "Query the subscription runs" } }, "required": [ "id", "snubaQuery", "status", "subscription" ], "description": "Query subscription the data source reads" } }, "required": [ "id", "organizationId", "queryObj", "sourceId", "type" ] }, "description": "Data sources of the detector" } }, "required": [ "alertId", "conditions", "config", "dataPacketSourceId", "dataSources", "detectorId", "value" ], "description": "Detector and query that created the occurrence" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "description": "An issue occurrence of any type. `evidenceData` keys are camelCase.", "properties": { "id": { "type": "string", "description": "ID of the occurrence" }, "projectId": { "type": "integer", "description": "ID of the project" }, "eventId": { "type": "string", "description": "ID of the event the occurrence belongs to" }, "fingerprint": { "type": "array", "items": { "type": "string" }, "description": "Fingerprint that groups the occurrence into an issue" }, "issueTitle": { "type": "string", "description": "Title of the issue" }, "subtitle": { "type": "string", "description": "Subtitle of the issue" }, "resourceId": { "type": "string", "nullable": true, "description": "ID of the resource the occurrence is about, such as a monitor. Null when not set" }, "evidenceDisplay": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the evidence" }, "value": { "type": "string", "description": "Value of the evidence" }, "important": { "type": "boolean", "description": "Whether to show the evidence first. At most one evidence of an occurrence is important" } }, "required": [ "important", "name", "value" ] }, "description": "Evidence to show on the issue" }, "detectionTime": { "type": "number", "format": "double", "description": "When the problem was detected, as a Unix timestamp in seconds" }, "level": { "type": "string", "nullable": true, "description": "Level of the occurrence, such as error or warning" }, "culprit": { "type": "string", "nullable": true, "description": "Culprit of the occurrence" }, "assignee": { "type": "string", "nullable": true, "description": "Actor the issue is assigned to, such as user:1 or team:1" }, "priority": { "type": "integer", "nullable": true, "description": "Initial priority of the issue: 25 low, 50 medium or 75 high" }, "type": { "type": "integer", "description": "Group type ID of the occurrence" }, "evidenceData": { "type": "object", "additionalProperties": {}, "description": "Data of the occurrence. Its keys depend on the group type" } }, "required": [ "assignee", "culprit", "detectionTime", "eventId", "evidenceData", "evidenceDisplay", "fingerprint", "id", "issueTitle", "level", "priority", "projectId", "resourceId", "subtitle", "type" ] }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise" }, "_meta": { "type": "object", "additionalProperties": {}, "description": "Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" }, "name": { "type": "string", "nullable": true, "description": "Name of the user" }, "geo": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Location of the user, with keys such as country_code, city and region" }, "data": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Extra data the SDK sent about the user" } }, "nullable": true, "description": "User context of the event" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query that matches this tag's user, such as user.email:\"user@example.com\". Only set for user tags" }, "key": { "type": "string", "description": "Tag key" }, "value": { "type": "string", "description": "Tag value" } }, "required": [ "key", "value" ] }, "description": "Tags attached to the event" }, "contexts": { "type": "object", "nullable": true, "additionalProperties": { "anyOf": [ { "description": "Application information.\n\n App context describes the application. As opposed to the runtime, this is the actual\n application that was running and carries metadata about the current session.", "type": "object", "additionalProperties": true, "properties": { "app_build": { "description": "Internal build ID as it appears on the platform.", "type": "string", "nullable": true }, "app_identifier": { "description": "Version-independent application identifier, often a dotted bundle ID.", "type": "string", "nullable": true }, "app_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Amount of memory used by the application in bytes." }, "app_name": { "description": "Application name as it appears on the platform.", "type": "string", "nullable": true }, "app_start_time": { "description": "Start time of the app.\n\n Formatted UTC timestamp when the user started the application.", "type": "string", "nullable": true }, "app_version": { "description": "Application version as it appears on the platform.", "type": "string", "nullable": true }, "build_type": { "description": "String identifying the kind of build. For example, `testflight`.", "type": "string", "nullable": true }, "device_app_hash": { "description": "Application-specific device identifier.", "type": "string", "nullable": true }, "in_foreground": { "description": "A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user.", "type": "boolean", "nullable": true }, "view_names": { "description": "The names of the currently visible views.", "type": "array", "items": { "type": "string", "nullable": true }, "nullable": true }, "type": { "type": "string", "enum": [ "app" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Web browser information.", "type": "object", "additionalProperties": true, "properties": { "name": { "description": "Display name of the browser application.", "type": "string", "nullable": true }, "version": { "description": "Version string of the browser.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "browser" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "default" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true }, { "description": "Device information.\n\n Device context describes the device that caused the event. This is most appropriate for mobile\n applications.", "type": "object", "additionalProperties": true, "properties": { "arch": { "description": "Native cpu architecture of the device.", "type": "string", "nullable": true }, "battery_level": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Current battery level in %.\n\n If the device has a battery, this can be a floating point value defining the battery level\n (in the range 0-100)." }, "battery_status": { "description": "Status of the device's battery.\n\n For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`.", "type": "string", "nullable": true }, "boot_time": { "description": "Indicator when the device was booted.", "type": "string", "nullable": true }, "brand": { "description": "Brand of the device.", "type": "string", "nullable": true }, "charging": { "description": "Whether the device was charging or not.", "type": "boolean", "nullable": true }, "cpu_description": { "description": "CPU description.\n\n For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz.", "type": "string", "nullable": true }, "device_type": { "description": "Kind of device the application is running on.\n\n For example, `Unknown`, `Handheld`, `Console`, `Desktop`.", "type": "string", "nullable": true }, "device_unique_identifier": { "description": "Unique device identifier.", "type": "string", "nullable": true }, "external_free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Free size of the attached external storage in bytes (eg: android SDK card)." }, "external_storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total size of the attached external storage in bytes (eg: android SDK card)." }, "family": { "description": "Family of the device model.\n\n This is usually the common part of model names across generations. For instance, `iPhone`\n would be a reasonable family, so would be `Samsung Galaxy`.", "type": "string", "nullable": true }, "free_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is still available in bytes." }, "free_storage": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much storage is free in bytes." }, "locale": { "description": "ISO 639-1 code of the locale the device is set to.", "type": "string", "nullable": true }, "low_memory": { "description": "Whether the device was low on memory.", "type": "boolean", "nullable": true }, "manufacturer": { "description": "Manufacturer of the device.", "type": "string", "nullable": true }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total memory available in bytes." }, "model": { "description": "Device model.\n\n This, for example, can be `Samsung Galaxy S3`.", "type": "string", "nullable": true }, "model_id": { "description": "Device model (internal identifier).\n\n An internal hardware revision to identify the device exactly.", "type": "string", "nullable": true }, "name": { "description": "Name of the device.", "type": "string", "nullable": true }, "online": { "description": "Whether the device was online or not.", "type": "boolean", "nullable": true }, "orientation": { "description": "Current screen orientation.\n\n This can be a string `portrait` or `landscape` to define the orientation of a device.", "type": "string", "nullable": true }, "processor_count": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Number of \"logical processors\".\n\n For example, 8." }, "processor_frequency": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Processor frequency in MHz.\n\n Note that the actual CPU frequency might vary depending on current load and\n power conditions, especially on low-powered devices like phones and laptops." }, "screen_density": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Device screen density." }, "screen_dpi": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Screen density as dots-per-inch." }, "screen_height_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Height of the screen in pixels." }, "screen_resolution": { "description": "Device screen resolution.\n\n (e.g.: 800x600, 3040x1444)", "type": "string", "nullable": true }, "screen_width_pixels": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Width of the screen in pixels." }, "simulator": { "description": "Simulator/prod indicator.", "type": "boolean", "nullable": true }, "storage_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Total storage size of the device in bytes." }, "supports_accelerometer": { "description": "Whether the accelerometer is available on the device.", "type": "boolean", "nullable": true }, "supports_audio": { "description": "Whether audio is available on the device.", "type": "boolean", "nullable": true }, "supports_gyroscope": { "description": "Whether the gyroscope is available on the device.", "type": "boolean", "nullable": true }, "supports_location_service": { "description": "Whether location support is available on the device.", "type": "boolean", "nullable": true }, "supports_vibration": { "description": "Whether vibration is available on the device.", "type": "boolean", "nullable": true }, "timezone": { "description": "Timezone of the device.", "type": "string", "nullable": true }, "usable_memory": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "How much memory is usable for the app in bytes." }, "uuid": { "description": "UUID of the device.", "type": "string", "format": "uuid", "nullable": true }, "type": { "type": "string", "enum": [ "device" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "GPU information.\n\n Example:\n\n ```json\n \"gpu\": {\n \"name\": \"AMD Radeon Pro 560\",\n \"vendor_name\": \"Apple\",\n \"memory_size\": 4096,\n \"api_type\": \"Metal\",\n \"multi_threaded_rendering\": true,\n \"version\": \"Metal\",\n \"npot_support\": \"Full\"\n }\n ```", "type": "object", "additionalProperties": true, "properties": { "api_type": { "description": "The device low-level API type.\n\n Examples: `\"Apple Metal\"` or `\"Direct3D11\"`", "type": "string", "nullable": true }, "graphics_shader_level": { "description": "Approximate \"shader capability\" level of the graphics device.\n\n For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown)", "type": "string", "nullable": true }, "id": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "The PCI identifier of the graphics device." }, "max_texture_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Largest size of a texture that is supported by the graphics hardware.\n\n For Example: 16384" }, "memory_size": { "anyOf": [ { "type": "integer", "format": "uint64", "minimum": 0 }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The total GPU memory available in Megabytes." }, "multi_threaded_rendering": { "description": "Whether the GPU has multi-threaded rendering or not.", "type": "boolean", "nullable": true }, "name": { "description": "The name of the graphics device.", "type": "string", "nullable": true }, "npot_support": { "description": "The Non-Power-Of-Two support.", "type": "string", "nullable": true }, "supports_compute_shaders": { "description": "Whether compute shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_draw_call_instancing": { "description": "Whether GPU draw call instancing is supported.", "type": "boolean", "nullable": true }, "supports_geometry_shaders": { "description": "Whether geometry shaders are available on the device.", "type": "boolean", "nullable": true }, "supports_ray_tracing": { "description": "Whether ray tracing is available on the device.", "type": "boolean", "nullable": true }, "vendor_id": { "description": "The PCI vendor identifier of the graphics device.", "type": "string", "nullable": true }, "vendor_name": { "description": "The vendor name as reported by the graphics device.", "type": "string", "nullable": true }, "version": { "description": "The Version of the graphics device.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "gpu" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Monitor information.", "type": "object", "additionalProperties": true, "properties": { "type": { "type": "string", "enum": [ "monitor" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Operating system information.\n\n OS context describes the operating system on which the event was created. In web contexts, this\n is the operating system of the browser (generally pulled from the User-Agent string).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Internal build number of the operating system.", "type": "string", "nullable": true }, "kernel_version": { "description": "Current kernel version.\n\n This is typically the entire output of the `uname` syscall.", "type": "string", "nullable": true }, "name": { "description": "Name of the operating system.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed operating system info.\n\n An unprocessed description string obtained by the operating system. For some well-known\n runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are\n not explicitly given.", "type": "string", "nullable": true }, "rooted": { "description": "Indicator if the OS is rooted (mobile mostly).", "type": "boolean", "nullable": true }, "version": { "description": "Version of the operating system.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "os" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "OpenTelemetry Context\n\n If an event has this context, it was generated from an OpenTelemetry signal (trace, metric, log).", "type": "object", "additionalProperties": true, "properties": { "attributes": { "description": "Attributes of the OpenTelemetry span that maps to a Sentry event.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "resource": { "description": "Information about an OpenTelemetry resource.\n\n ", "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "integer" }, { "type": "number" } ] } } ] }, "nullable": true }, "type": { "type": "string", "enum": [ "otel" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Runtime information.\n\n Runtime context describes a runtime in more detail. Typically, this context is present in\n `contexts` multiple times if multiple runtimes are involved (for instance, if you have a\n JavaScript application running on top of JVM).", "type": "object", "additionalProperties": true, "properties": { "build": { "description": "Application build string, if it is separate from the version.", "type": "string", "nullable": true }, "name": { "description": "Runtime name.", "type": "string", "nullable": true }, "raw_description": { "description": "Unprocessed runtime info.\n\n An unprocessed description string obtained by the runtime. For some well-known runtimes,\n Sentry will attempt to parse `name` and `version` from this string, if they are not\n explicitly given.", "type": "string", "nullable": true }, "version": { "description": "Runtime version string.", "type": "string", "nullable": true }, "type": { "type": "string", "enum": [ "runtime" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "description": "Trace context", "type": "object", "additionalProperties": true, "properties": { "client_sample_rate": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The client-side sample rate as reported in the envelope's `trace.sample_rate` header.\n\n The server takes this field from envelope headers and writes it back into the event. Clients\n should not ever send this value." }, "exclusive_time": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "The amount of time in milliseconds spent in this transaction span,\n excluding its immediate child spans." }, "op": { "description": "Span type (see `OperationType` docs).", "type": "string", "nullable": true }, "origin": { "description": "The origin of the trace indicates what created the trace (see [OriginType] docs).", "type": "string", "nullable": true }, "parent_span_id": { "description": "The ID of the span enclosing this span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "sampled": { "description": "Track whether the trace connected to this event has been sampled entirely.\n\n This flag only applies to events with [`Error`] type that have an associated dynamic sampling context.", "type": "boolean", "nullable": true }, "span_id": { "description": "The ID of the span.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "status": { "description": "Whether the trace failed or succeeded. Currently only used to indicate status of individual\n transactions.", "nullable": true, "type": "string", "enum": [ "ok", "cancelled", "unknown", "invalid_argument", "deadline_exceeded", "not_found", "already_exists", "permission_denied", "resource_exhausted", "failed_precondition", "aborted", "out_of_range", "unimplemented", "internal_error", "unavailable", "data_loss", "unauthenticated", null ] }, "trace_id": { "description": "The trace ID.", "anyOf": [ { "type": "string" }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "type": { "type": "string", "enum": [ "trace" ], "description": "Type of the context" } }, "required": [ "type" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "unity" ], "description": "Type of the context" } }, "required": [ "type" ], "additionalProperties": true } ] }, "description": "Contexts of the event, such as device, os, browser and runtime, keyed by alias" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Name of the SDK that sent the event, such as sentry.python" }, "version": { "type": "string", "nullable": true, "description": "Version of the SDK" } }, "required": [ "name", "version" ], "nullable": true, "description": "SDK that sent the event" }, "context": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Additional data sent with the event in its extra field" }, "errors": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Type of the processing error, such as invalid_data or js_no_source" }, "message": { "type": "string", "description": "Human-readable message of the error" }, "data": { "type": "object", "description": "Details of the error, such as the name of the invalid field. Other keys depend on the error type", "properties": { "name": { "type": "string", "nullable": true, "description": "Affected key or path in the event" }, "message": { "type": "string", "description": "Details of the error from the processor that hit it" }, "url": { "type": "string", "description": "URL that couldn't be fetched, such as a source file" }, "image_path": { "type": "string", "description": "Path of the debug image the error is about" }, "image_name": { "type": "string", "description": "Name of the debug image the error is about" }, "image_uuid": { "type": "string", "description": "Debug ID of the image the error is about" }, "image_arch": { "type": "string", "description": "CPU architecture of the image the error is about" }, "symbolicator_type": { "type": "string", "description": "Error type Symbolicator reported, such as missing_source" }, "source": { "type": "string", "description": "Source file or URL the error is about" }, "sourcemap": { "type": "string", "description": "Source map the error is about" }, "row": { "type": "integer", "description": "Line of the location that couldn't be mapped" }, "column": { "type": "integer", "description": "Column of the location that couldn't be mapped" }, "sdk_time": { "type": "string", "description": "Time the SDK reported, for clock drift errors" }, "server_time": { "type": "string", "description": "Time the server received the event, for clock drift errors" } } } }, "required": [ "data", "message", "type" ] }, "description": "Errors Sentry found while processing the event" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "fingerprints": { "type": "array", "items": { "type": "string" }, "description": "Grouping hashes calculated for the event" }, "groupingConfig": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the grouping config, such as newstyle:2026-01-20" }, "enhancements": { "type": "string", "description": "Stack trace rules of the project, as an encoded string" } }, "required": [ "enhancements", "id" ], "description": "Grouping configuration used to group the event" }, "startTimestamp": { "type": "number", "format": "double", "description": "When the transaction started, as a Unix timestamp in seconds" }, "endTimestamp": { "type": "number", "format": "double", "description": "When the transaction ended, as a Unix timestamp in seconds" }, "measurements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] }, "nullable": true, "description": "Measurements recorded for the transaction, such as web vitals, keyed by name" }, "breakdowns": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "object", "properties": { "value": { "type": "number", "format": "double", "description": "Measurement value" }, "unit": { "type": "string", "nullable": true, "description": "Unit of the measurement, such as millisecond" } }, "required": [ "value" ] } }, "nullable": true, "description": "Span operation breakdowns for the transaction, keyed by breakdown name" }, "release": { "type": "object", "properties": { "id": { "type": "integer", "description": "Release ID" }, "commitCount": { "type": "integer", "description": "Number of commits in the release" }, "data": { "type": "object", "additionalProperties": {}, "description": "Extra data stored on the release" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the release was created (ISO 8601)" }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "When the release went live (ISO 8601)" }, "deployCount": { "type": "integer", "description": "Number of deploys of the release" }, "ref": { "type": "string", "nullable": true, "description": "Version control reference, such as a commit SHA or tag" }, "lastCommit": { "type": "object", "properties": { "id": { "type": "string", "description": "Commit SHA" }, "message": { "type": "string", "nullable": true, "description": "Commit message" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the commit was made (ISO 8601)" }, "pullRequest": { "type": "object", "properties": { "id": { "type": "string", "description": "Number or key of the pull request in the provider" }, "title": { "type": "string", "nullable": true, "description": "Title of the pull request" }, "message": { "type": "string", "nullable": true, "description": "Description of the pull request" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When Sentry recorded the pull request (ISO 8601)" }, "mergedAt": { "type": "string", "format": "date-time", "nullable": true, "description": "When the pull request was merged (ISO 8601). Null when it isn't merged" }, "status": { "enum": [ "merged", "open", "closed", "draft", "unknown", null ], "type": "string", "nullable": true, "description": "State of the pull request: merged, open, closed, draft or unknown. Null when not known" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository of the pull request" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the pull request, or an empty object when it has none" }, "externalUrl": { "type": "string", "nullable": true, "description": "URL of the pull request in the provider, or null when the provider can't build one" } }, "required": [ "author", "dateCreated", "externalUrl", "id", "mergedAt", "message", "repository", "status", "title" ], "nullable": true, "description": "Pull request the commit belongs to" }, "suspectCommitType": { "type": "string", "description": "How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits" }, "repository": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "URL of the repository" }, "provider": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Provider of the repository, with its id and name" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration. Null for repositories added without an integration" }, "externalSlug": { "type": "string", "nullable": true, "description": "Identifier of the repository in the provider, such as owner/name" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "settings": { "type": "object", "properties": { "enabledCodeReview": { "type": "boolean", "description": "Whether AI code review is on for the repository" }, "codeReviewTriggers": { "type": "array", "items": { "type": "string" }, "description": "Pull request events that start a code review: on_new_commit or on_ready_for_review" } }, "required": [ "codeReviewTriggers", "enabledCodeReview" ], "nullable": true, "description": "Settings of the repository. Only set when expand includes settings. Null when it has none" }, "id": { "type": "string", "description": "ID of the repository" }, "name": { "type": "string", "description": "Name of the repository, such as owner/name" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the repository was added to Sentry (ISO 8601)" } }, "required": [ "dateCreated", "id", "name" ], "description": "Repository the commit belongs to" }, "author": { "anyOf": [ { "type": "object", "properties": { "identities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "SSO identity ID" }, "name": { "type": "string", "description": "User's identifier at the auth provider" }, "organization": { "type": "object", "properties": { "slug": { "type": "string", "description": "Organization slug" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "name", "slug" ], "description": "Organization the auth provider belongs to" }, "provider": { "type": "object", "properties": { "id": { "type": "string", "description": "Auth provider key, such as google or saml2" }, "name": { "type": "string", "description": "Display name of the auth provider" } }, "required": [ "id", "name" ], "description": "Auth provider of the identity" }, "dateVerified": { "type": "string", "format": "date-time", "description": "When the identity was last verified by signing in through the auth provider" }, "dateSynced": { "type": "string", "format": "date-time", "description": "When the identity was last synced from the auth provider" } }, "required": [ "dateSynced", "dateVerified", "id", "name", "organization", "provider" ] }, "description": "SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "User avatar" }, "authenticators": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Authenticator ID" }, "type": { "type": "string", "description": "Authenticator type, such as totp, sms, u2f or recovery" }, "name": { "type": "string", "description": "Display name of the authenticator type" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the authenticator was added" }, "dateUsed": { "type": "string", "format": "date-time", "nullable": true, "description": "When the authenticator was last used, or null" } }, "required": [ "dateCreated", "dateUsed", "id", "name", "type" ] }, "description": "Two-factor authenticators of the user, without backup methods such as recovery codes" }, "canReset2fa": { "type": "boolean", "description": "Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "User ID" }, "name": { "type": "string", "description": "Display name: the user's name, or their email or username if no name is set" }, "username": { "type": "string", "description": "Username" }, "email": { "type": "string", "description": "Primary email address" }, "avatarUrl": { "type": "string", "description": "Gravatar URL for the primary email address" }, "isActive": { "type": "boolean", "description": "Whether the account is active" }, "isSuspended": { "type": "boolean", "description": "Whether the account is suspended. Suspended users can't sign in" }, "hasPasswordAuth": { "type": "boolean", "description": "Whether the user has a password set" }, "isManaged": { "type": "boolean", "description": "Whether the account is managed, which stops the user from changing their username, password and similar details" }, "dateJoined": { "type": "string", "format": "date-time", "description": "When the account was created" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user last signed in, or null" }, "has2fa": { "type": "boolean", "description": "Whether the user has two-factor authentication enabled" }, "lastActive": { "type": "string", "format": "date-time", "nullable": true, "description": "When the user was last active, or null" }, "isSuperuser": { "type": "boolean", "description": "Whether the user is a superuser" }, "isStaff": { "type": "boolean", "description": "Whether the user has staff status" }, "experiments": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Deprecated. Always an empty object" }, "emails": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Email ID" }, "email": { "type": "string", "description": "Email address" }, "is_verified": { "type": "boolean", "description": "Whether the email address is verified" } }, "required": [ "email", "id", "is_verified" ] }, "description": "Email addresses of the user. Only included for the requesting user or superusers; empty otherwise" } }, "required": [ "avatarUrl", "dateJoined", "email", "emails", "experiments", "has2fa", "hasPasswordAuth", "id", "isActive", "isManaged", "isStaff", "isSuperuser", "isSuspended", "lastActive", "lastLogin", "name", "username" ] }, { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "Commit author name" }, "email": { "type": "string", "description": "Commit author email" } }, "required": [ "email", "name" ] }, { "type": "object", "description": "The commit and pull request serializers emit ``{}`` for ``author`` when there's\nno mapped author, so the published schema must allow an empty object alongside a\npopulated ``Author``.", "maxProperties": 0 } ], "description": "Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit" } }, "required": [ "dateCreated", "id", "message", "pullRequest", "suspectCommitType" ], "nullable": true, "description": "Most recent commit in the release" }, "lastDeploy": { "type": "object", "properties": { "dateStarted": { "type": "string", "format": "date-time", "nullable": true, "description": "When the deploy started (ISO 8601)" }, "url": { "type": "string", "nullable": true, "description": "URL of the deploy" }, "id": { "type": "string", "description": "ID of the deploy" }, "environment": { "type": "string", "description": "Environment the release was deployed to" }, "dateFinished": { "type": "string", "format": "date-time", "description": "When the deploy finished (ISO 8601)" }, "name": { "type": "string", "nullable": true, "description": "Name of the deploy" } }, "required": [ "dateFinished", "environment", "id", "name" ], "nullable": true, "description": "Most recent deploy of the release" }, "status": { "enum": [ "open", "archived" ], "type": "string", "description": "Release status" }, "url": { "type": "string", "nullable": true, "description": "Release URL" }, "userAgent": { "type": "string", "nullable": true, "description": "User agent of the client that created the release" }, "version": { "type": "string", "nullable": true, "description": "Version of the release" }, "versionInfo": { "type": "object", "properties": { "description": { "type": "string", "description": "Human-readable version, such as 1.0.0 (123)" }, "package": { "type": "string", "nullable": true, "description": "Package name parsed from the release version, such as com.example.app" }, "version": { "type": "object", "properties": { "major": { "type": "integer", "description": "Major version" }, "minor": { "type": "integer", "description": "Minor version" }, "patch": { "type": "integer", "description": "Patch version" }, "pre": { "type": "string", "nullable": true, "description": "Pre-release identifier, such as rc1" }, "buildCode": { "type": "string", "nullable": true, "description": "Build code, such as 123" }, "components": { "type": "integer", "description": "Number of version components given" }, "raw": { "type": "string", "description": "Version string the release was created with" } }, "required": [ "raw" ], "description": "Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version" }, "buildHash": { "type": "string", "nullable": true, "description": "Build hash parsed from the release version" } }, "required": [ "buildHash", "package", "version" ], "nullable": true, "description": "Parsed version information" } }, "nullable": true, "description": "Release the event was sent with. Null when the event has no release" }, "userReport": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the feedback" }, "eventID": { "type": "string", "description": "ID of the event the feedback is attached to" }, "name": { "type": "string", "nullable": true, "description": "Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user who submitted the feedback. Falls back to the event user's email address" }, "comments": { "type": "string", "description": "Comments the user submitted" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the feedback was submitted (ISO 8601)" }, "user": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the user, as sent with the event" }, "username": { "type": "string", "nullable": true, "description": "Username sent with the event" }, "email": { "type": "string", "nullable": true, "description": "Email address sent with the event" }, "name": { "type": "string", "nullable": true, "description": "Display name of the user: the name, email address or username sent with the event, whichever is set first" }, "ipAddress": { "type": "string", "nullable": true, "description": "IP address sent with the event" }, "avatarUrl": { "type": "string", "nullable": true, "description": "Gravatar URL for the user's email address" } }, "required": [ "avatarUrl", "email", "id", "ipAddress", "name", "username" ], "nullable": true, "description": "User recorded on the feedback's event. Null when the event isn't found or has no user" }, "event": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the event the feedback is attached to" }, "eventID": { "type": "string", "description": "ID of the event the feedback is attached to" } }, "required": [ "eventID", "id" ], "description": "Event the feedback is attached to" } }, "required": [ "comments", "dateCreated", "email", "event", "eventID", "id", "name", "user" ], "nullable": true, "description": "User feedback submitted for the event. Null when there's none" }, "sdkUpdates": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "changeSdk" ], "type": "string", "description": "Kind of suggestion" }, "newSdkName": { "type": "string", "description": "Name of the SDK to switch to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "properties": { "type": { "enum": [ "updateSdk" ], "type": "string", "description": "Kind of suggestion" }, "sdkName": { "type": "string", "description": "Name of the SDK to update" }, "newSdkVersion": { "type": "string", "nullable": true, "description": "SDK version to update to" }, "sdkUrl": { "type": "string", "nullable": true, "description": "Documentation URL of the SDK. Null when it isn't known" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "enum": [ "enableIntegration" ], "type": "string", "description": "Kind of suggestion" }, "integrationName": { "type": "string", "description": "Name of the SDK integration to enable" }, "integrationUrl": { "type": "string", "description": "Documentation URL of the integration" }, "enables": { "type": "array", "items": { "anyOf": [ { "type": "object", "description": "Same as the EnableIntegrationSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "integrationName", "integrationUrl", "type" ] }, { "type": "object", "description": "Same as the UpdateSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkVersion", "sdkName", "sdkUrl", "type" ] }, { "type": "object", "description": "Same as the ChangeSdkSuggestionResponse this is inside. Its fields are left out here so it doesn't repeat forever." } ] }, "description": "Suggestions that become possible after this one is applied" } }, "required": [ "enables", "newSdkName", "sdkUrl", "type" ] } ] }, "description": "Suggested updates for the SDK that sent the event" }, "resolvedWith": { "type": "array", "items": { "type": "string" }, "description": "How the event's stack frames were resolved during processing, such as which source map lookup method was used" }, "nextEventID": { "type": "string", "nullable": true, "description": "ID of the next event in the issue. Null for the latest event or when adjacentEvents is collapsed" }, "previousEventID": { "type": "string", "nullable": true, "description": "ID of the previous event in the issue. Null for the first event or when adjacentEvents is collapsed" } }, "required": [ "_meta", "context", "contexts", "dateReceived", "dist", "entries", "errors", "eventID", "groupID", "id", "location", "message", "metadata", "nextEventID", "occurrence", "packages", "platform", "previousEventID", "projectID", "release", "resolvedWith", "sdk", "sdkUpdates", "size", "tags", "title", "type", "user", "userReport" ] }, "ProjectEventsResponseDict": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "event.type": { "type": "string", "description": "Event type, such as error, default or transaction" }, "groupID": { "type": "string", "pattern": "^[0-9]+$", "nullable": true, "description": "ID of the issue the event belongs to" }, "eventID": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "ID of the event" }, "projectID": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project the event belongs to" }, "message": { "type": "string", "description": "Event message" }, "title": { "type": "string", "description": "Event title" }, "location": { "type": "string", "nullable": true, "description": "Source location of the event, such as a file and line" }, "culprit": { "type": "string", "nullable": true, "description": "Function or module that caused the event" }, "user": { "type": "object", "properties": { "id": { "type": "string", "nullable": true, "description": "ID the SDK sent for the user" }, "email": { "type": "string", "nullable": true, "description": "Email address of the user" }, "username": { "type": "string", "nullable": true, "description": "Username of the user" }, "ip_address": { "type": "string", "nullable": true, "description": "IP address of the user" }, "name": { "type": "string", "nullable": true, "description": "Name of the user" }, "geo": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "description": "Location of the user, with keys such as country_code, city and region" }, "data": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "Extra data the SDK sent about the user" } }, "nullable": true, "description": "User context of the event" }, "tags": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string", "description": "Search query that matches this tag's user, such as user.email:\"user@example.com\". Only set for user tags" }, "key": { "type": "string", "description": "Tag key" }, "value": { "type": "string", "description": "Tag value" } }, "required": [ "key", "value" ] }, "description": "Tags attached to the event" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the event, such as python or javascript" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the event occurred (ISO 8601)" }, "crashFile": { "type": "string", "nullable": true, "description": "Crash report attachment of the event, if any" }, "metadata": { "type": "object", "description": "Event metadata", "properties": { "title": { "type": "string", "description": "Title of default and issue platform events" }, "value": { "type": "string", "description": "Exception value, or the subtitle of an issue" }, "type": { "type": "string", "description": "Exception type of error events" }, "synthetic": { "type": "boolean", "description": "Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong" }, "filename": { "type": "string", "description": "File of the frame where the error happened" }, "function": { "type": "string", "description": "Function of the frame where the error happened" }, "message": { "type": "string", "description": "Message of default, security and feedback events" }, "uri": { "type": "string", "description": "URI that a CSP report blocked" }, "directive": { "type": "string", "description": "CSP directive that was violated" }, "origin": { "type": "string", "description": "Host name of HPKP, Expect-CT and Expect-Staple reports" }, "name": { "type": "string", "description": "Name of the person who sent user feedback" }, "contact_email": { "type": "string", "description": "Email of the person who sent user feedback" }, "source": { "type": "string", "description": "Where user feedback came from, such as a widget" }, "in_app_frame_mix": { "type": "string", "description": "Whether the stacktrace has in-app frames, system frames or both" }, "stripped_crash": { "type": "boolean", "description": "Whether a crash report was dropped because the issue already stores the most allowed" }, "sdk": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the SDK, or unknown" }, "name_normalized": { "type": "string", "description": "Name of the SDK, normalized for grouping" } }, "required": [ "name", "name_normalized" ], "description": "SDK of the issue's first event" }, "severity": { "type": "number", "format": "double", "description": "Severity score of the issue's first event" }, "severity_reason": { "type": "string", "description": "Why the severity score is what it is" }, "initial_priority": { "type": "integer", "description": "Priority the issue was created with" } } } }, "required": [ "crashFile", "culprit", "dateCreated", "event.type", "eventID", "groupID", "id", "location", "message", "metadata", "platform", "projectID", "tags", "title", "user" ] } }, "ProjectFilterResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the inbound filter, such as browser-extensions or legacy-browsers" }, "active": { "anyOf": [ { "type": "boolean" }, { "type": "array", "items": { "type": "string" } } ], "description": "Whether the filter is on. For legacy-browsers, the list of browsers it filters" } }, "required": [ "active", "id" ] } }, "ProjectKey": { "type": "object", "description": "This represents a Sentry Project Client Key.", "properties": { "id": { "type": "string", "description": "ID of the client key, same as its public key" }, "name": { "type": "string", "description": "Name of the client key" }, "label": { "type": "string", "description": "Name of the client key, same as name" }, "public": { "type": "string", "nullable": true, "description": "Public key" }, "secret": { "type": "string", "nullable": true, "description": "Secret key" }, "projectId": { "type": "integer", "description": "ID of the project the key belongs to" }, "isActive": { "type": "boolean", "description": "Whether the client key accepts events" }, "rateLimit": { "type": "object", "properties": { "window": { "type": "integer", "description": "Rate limit window in seconds" }, "count": { "type": "integer", "description": "Number of events accepted per window" } }, "required": [ "count", "window" ], "nullable": true, "description": "Rate limit for events sent with the key. Null when there's none" }, "dsn": { "type": "object", "properties": { "secret": { "type": "string", "format": "uri", "description": "DSN that includes the secret key" }, "public": { "type": "string", "format": "uri", "description": "Public DSN to configure SDKs with" }, "csp": { "type": "string", "format": "uri", "description": "Endpoint for Content Security Policy reports" }, "security": { "type": "string", "format": "uri", "description": "Endpoint for security reports" }, "minidump": { "type": "string", "format": "uri", "description": "Endpoint for minidump crash reports" }, "nel": { "type": "string", "format": "uri", "description": "Endpoint for Network Error Logging reports" }, "unreal": { "type": "string", "format": "uri", "description": "Endpoint for Unreal Engine crash reports" }, "crons": { "type": "string", "format": "uri", "description": "Endpoint for cron monitor check-ins" }, "cdn": { "type": "string", "format": "uri", "description": "URL of the JavaScript SDK Loader script" }, "playstation": { "type": "string", "format": "uri", "description": "Endpoint for PlayStation crash reports" }, "integration": { "type": "string", "format": "uri", "description": "Base URL for integration endpoints, such as the OpenTelemetry endpoints" }, "otlp_traces": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for traces" }, "otlp_logs": { "type": "string", "format": "uri", "description": "OpenTelemetry (OTLP) endpoint for logs" } }, "required": [ "cdn", "crons", "csp", "integration", "minidump", "nel", "otlp_logs", "otlp_traces", "playstation", "public", "secret", "security", "unreal" ], "description": "DSN and ingestion endpoints for the key" }, "browserSdkVersion": { "type": "string", "description": "JavaScript SDK version the Loader serves" }, "browserSdk": { "type": "object", "properties": { "choices": { "type": "array", "items": { "type": "array", "items": { "type": "string" } }, "description": "JavaScript SDK versions the Loader can serve, as [value, label] pairs" } }, "required": [ "choices" ], "description": "JavaScript SDK versions the Loader can serve" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the client key was created (ISO 8601)" }, "dynamicSdkLoaderOptions": { "type": "object", "properties": { "hasReplay": { "type": "boolean", "description": "Whether the Loader enables Session Replay" }, "hasPerformance": { "type": "boolean", "description": "Whether the Loader enables tracing" }, "hasDebug": { "type": "boolean", "description": "Whether the Loader loads the debug bundle" }, "hasFeedback": { "type": "boolean", "description": "Whether the Loader enables User Feedback" }, "hasLogsAndMetrics": { "type": "boolean", "description": "Whether the Loader enables logs and metrics" } }, "required": [ "hasDebug", "hasFeedback", "hasLogsAndMetrics", "hasPerformance", "hasReplay" ], "description": "Features the JavaScript SDK Loader enables" }, "useCase": { "type": "string", "description": "What the key is used for, such as user or profiling. Only included for superusers" } }, "required": [ "browserSdk", "browserSdkVersion", "dateCreated", "dsn", "dynamicSdkLoaderOptions", "id", "isActive", "label", "name", "projectId", "public", "rateLimit", "secret" ] }, "ProjectKeyPost": { "type": "object", "properties": { "name": { "type": "string", "nullable": true, "description": "The optional name of the key. If not provided it will be automatically generated.", "maxLength": 64 }, "rateLimit": { "type": "object", "description": "Applies a rate limit to cap the number of errors accepted during a given time window. To\ndisable entirely set `rateLimit` to null.\n```json\n{\n \"rateLimit\": {\n \"window\": 7200, // time in seconds\n \"count\": 1000 // error cap\n }\n}\n```", "properties": { "count": { "type": "integer", "minimum": 0, "nullable": true }, "window": { "type": "integer", "maximum": 86400, "minimum": 0, "nullable": true } } }, "useCase": { "enum": [ "user", "profiling", "tempest", "demo" ], "type": "string", "description": "* `user`\n* `profiling`\n* `tempest`\n* `demo`", "default": "user" } } }, "ProjectOwnership": { "type": "object", "properties": { "schema": { "type": "object", "properties": { "$version": { "type": "integer", "description": "Version of the ownership rules schema" }, "rules": { "type": "array", "items": { "type": "object", "properties": { "matcher": { "type": "object", "properties": { "type": { "type": "string", "description": "What the rule matches on, path, module, url, codeowners or tags." }, "pattern": { "type": "string", "description": "Pattern the value is matched against" } }, "required": [ "pattern", "type" ], "description": "What the rule matches" }, "owners": { "type": "array", "items": { "type": "object", "description": "Owner as it appears in the API response (after identifier->name rename).", "properties": { "type": { "type": "string", "description": "Whether the owner is a user or a team" }, "name": { "type": "string", "description": "Email of the user, or slug of the team" }, "id": { "type": "string", "description": "ID of the user or team. Only set when the owner was resolved" } }, "required": [ "name", "type" ] }, "description": "Owners the rule assigns" } }, "required": [ "matcher", "owners" ] }, "description": "Ownership rules, in order" } }, "required": [ "$version", "rules" ], "nullable": true, "description": "Parsed ownership rules. Null when there are no rules" }, "raw": { "type": "string", "nullable": true, "description": "Ownership rules as text" }, "fallthrough": { "type": "boolean", "description": "Whether issues that match no rule are assigned to all project members" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the ownership rules were created (ISO 8601)" }, "lastUpdated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the ownership rules were last updated (ISO 8601)" }, "isActive": { "type": "boolean", "description": "Whether the ownership rules are active" }, "autoAssignment": { "type": "string", "description": "Auto-assignment setting: Auto Assign to Suspect Commits, Auto Assign to Issue Owner or Turn off Auto-Assignment" }, "codeownersAutoSync": { "type": "boolean", "nullable": true, "description": "Whether CODEOWNERS files sync automatically when they change" } }, "required": [ "autoAssignment", "codeownersAutoSync", "dateCreated", "fallthrough", "isActive", "lastUpdated", "raw" ] }, "ProjectOwnershipRequest": { "type": "object", "properties": { "raw": { "type": "string", "description": "Raw input for ownership configuration. See the [Ownership Rules Documentation](/product/issues/ownership-rules/) to learn more." }, "fallthrough": { "type": "boolean", "description": "A boolean determining who to assign ownership to when an ownership rule has no match. If set to `True`, all project members are made owners. Otherwise, no owners are set." }, "autoAssignment": { "type": "string", "description": "Auto-assignment settings. The available options are:\n- Auto Assign to Issue Owner\n- Auto Assign to Suspect Commits\n- Turn off Auto-Assignment" }, "codeownersAutoSync": { "type": "boolean", "default": true, "description": "Set to `True` to sync issue owners with CODEOWNERS updates in a release." } } }, "ProjectPost": { "type": "object", "properties": { "name": { "type": "string", "description": "The name for the project.", "maxLength": 50 }, "slug": { "type": "string", "nullable": true, "description": "Uniquely identifies a project and is used for the interface.\n If not provided, it is automatically generated from the name.", "maxLength": 100, "pattern": "^(?![0-9]+$)[a-z0-9_\\-]+$" }, "platform": { "type": "string", "nullable": true, "description": "The platform for the project." }, "default_rules": { "type": "boolean", "description": "\nDefaults to true where the behavior is to alert the user on every new\nissue. Setting this to false will turn this off and the user must create\ntheir own alerts to be notified of new issues.\n " } }, "required": [ "name" ] }, "ProjectProfilingProfileResponse": { "type": "object", "additionalProperties": {} }, "ProjectRepoLinkRequest": { "type": "object", "properties": { "repositoryId": { "type": "integer", "description": "The ID of the repository to link." } }, "required": [ "repositoryId" ] }, "ProjectRepoLinkResponse": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the link between the project and the repository." }, "projectId": { "type": "string", "description": "ID of the project." }, "repositoryId": { "type": "string", "description": "ID of the repository." }, "source": { "type": "string", "description": "How the link was made: manual, scm_onboarding, auto_event, auto_name_match or seer_preference." }, "created": { "type": "boolean", "description": "Whether the request created the link. False when it already existed." } }, "required": [ "created", "id", "projectId", "repositoryId", "source" ] }, "ProjectRepoListResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the link between the project and the repository" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration" }, "externalId": { "type": "string", "nullable": true, "description": "ID of the repository in the provider" }, "projectId": { "type": "string", "description": "ID of the project" }, "repositoryId": { "type": "string", "description": "ID of the repository" }, "repoName": { "type": "string", "description": "Name of the repository" }, "source": { "type": "string", "description": "How the link was made: manual, scm_onboarding, auto_event, auto_name_match or seer_preference" }, "providerKey": { "type": "string", "nullable": true, "description": "Key of the repository's provider, such as github" }, "mappingCount": { "type": "integer", "description": "Number of code mappings between the project and the repository" } }, "required": [ "externalId", "id", "integrationId", "projectId", "providerKey", "repoName", "repositoryId", "source" ] } }, "ProjectSeerRepositoriesResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the link between the project and the repository" }, "repositoryId": { "type": "string", "description": "ID of the repository" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "provider": { "type": "string", "description": "Provider of the repository, such as integrations:github" }, "owner": { "type": "string", "description": "Owner of the repository" }, "name": { "type": "string", "description": "Name of the repository, without the owner" }, "externalId": { "type": "string", "description": "ID of the repository in the provider" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the repository's integration" }, "branchName": { "type": "string", "nullable": true, "description": "Branch Seer uses instead of the default branch. Null when not set" }, "branchOverrides": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the branch override" }, "tagName": { "type": "string", "description": "Event tag key to match" }, "tagValue": { "type": "string", "description": "Event tag value to match" }, "branchName": { "type": "string", "description": "Branch Seer uses for issues whose events have this tag value" } }, "required": [ "branchName", "id", "tagName", "tagValue" ] }, "description": "Deprecated. Branches Seer uses for issues with matching event tags" }, "instructions": { "type": "string", "nullable": true, "description": "Instructions Seer follows when working with the repository" } }, "required": [ "branchName", "branchOverrides", "externalId", "id", "instructions", "integrationId", "name", "organizationId", "owner", "provider", "repositoryId" ] } }, "ProjectSizeStatusCheckRulesResponse": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "Whether size status checks are enabled for the project" }, "rules": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the rule" }, "metric": { "enum": [ "install_size", "download_size" ], "type": "string", "description": "Size metric the rule checks: install_size or download_size" }, "measurement": { "enum": [ "absolute", "absolute_diff", "relative_diff" ], "type": "string", "description": "How the rule measures size: absolute (size in bytes), absolute_diff (increase in bytes) or relative_diff (increase in percent)" }, "value": { "type": "string", "description": "Threshold that makes the status check fail, in bytes or percent depending on measurement" }, "filterQuery": { "type": "string", "description": "Search query that selects the builds the rule applies to" }, "filters": { "type": "array", "items": { "type": "object", "properties": { "key": { "enum": [ "app_id", "build_configuration_name", "git_head_ref", "platform_name" ], "type": "string", "description": "Build field the filter checks: app_id, build_configuration_name, git_head_ref or platform_name" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "operator": { "enum": [ "contains", "endsWith", "equals", "in", "matches", "notContains", "notEndsWith", "notEquals", "notIn", "notMatches", "notStartsWith", "startsWith" ], "type": "string", "description": "How the condition compares the build's value, such as equals or startsWith" }, "values": { "type": "array", "items": { "type": "string" }, "description": "Values the condition compares against" } }, "required": [ "operator", "values" ] }, "description": "Conditions on the field" } }, "required": [ "conditions", "key" ] }, "nullable": true, "description": "filterQuery parsed into filters. Null when the query can't be parsed" }, "artifactType": { "enum": [ "main_artifact", "watch_artifact", "android_dynamic_feature_artifact", "app_clip_artifact", "all_artifacts" ], "type": "string", "description": "Components the rule applies to, such as main_artifact or all_artifacts" } }, "required": [ "artifactType", "filterQuery", "filters", "id", "measurement", "metric", "value" ] }, "description": "Rules that make the size status check fail" } }, "required": [ "enabled", "rules" ] }, "ProjectSnapshotStatusCheckRulesResponse": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "Whether snapshot status checks are enabled for the project" }, "rules": { "type": "object", "properties": { "failOnAdded": { "type": "boolean", "description": "Whether the snapshot status check fails when snapshots are added" }, "failOnRemoved": { "type": "boolean", "description": "Whether the snapshot status check fails when snapshots are removed" }, "failOnChanged": { "type": "boolean", "description": "Whether the snapshot status check fails when snapshots change" }, "failOnRenamed": { "type": "boolean", "description": "Whether the snapshot status check fails when snapshots are renamed" } }, "required": [ "failOnAdded", "failOnChanged", "failOnRemoved", "failOnRenamed" ], "description": "Which snapshot changes make the status check fail" } }, "required": [ "enabled", "rules" ] }, "ProjectStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, "ProjectSummary": { "type": "object", "properties": { "latestDeploys": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": true, "description": "Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed" }, "options": { "type": "object", "additionalProperties": {}, "description": "Requested project options, keyed by option name. Only included when options are requested" }, "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "nullable": true, "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" }, "platforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms seen in the project's events" }, "hasUserReports": { "type": "boolean", "description": "Whether the project has received user reports" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments seen in the project's events" }, "latestRelease": { "type": "object", "properties": { "version": { "type": "string", "description": "Version of the release" } }, "required": [ "version" ], "nullable": true, "description": "Latest release of the project" } }, "required": [ "access", "dateCreated", "environments", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "hasUserReports", "id", "isBookmarked", "isMember", "latestRelease", "name", "platform", "platforms", "slug", "team", "teams" ] }, "ProjectTeamsResponse": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "Team ID" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Team slug, unique within the organization" }, "name": { "type": "string", "description": "Display name of the team" }, "dateCreated": { "type": "string", "format": "date-time", "nullable": true, "description": "When the team was created (ISO 8601)" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of the team" }, "teamRole": { "type": "string", "nullable": true, "description": "The requesting user's role in the team" }, "flags": { "type": "object", "additionalProperties": { "type": "boolean" }, "description": "Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the team through their team role. Empty if the user has no access" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams" }, "isPending": { "type": "boolean", "description": "Whether the requesting user has a pending request to join the team" }, "memberCount": { "type": "integer", "description": "Number of members in the team" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Team avatar" } }, "required": [ "access", "avatar", "dateCreated", "flags", "hasAccess", "id", "isMember", "isPending", "memberCount", "name", "slug", "teamRole" ] } }, "ProjectWithTeam": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" }, "team": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ], "description": "First team with access to the project; use teams instead" }, "teams": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the team" }, "name": { "type": "string", "description": "Name of the team" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the team" } }, "required": [ "id", "name", "slug" ] }, "description": "Teams with access to the project" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status", "teams" ] }, "RateLimit": { "type": "object", "description": "Applies a rate limit to cap the number of errors accepted during a given time window. To\ndisable entirely set `rateLimit` to null.\n```json\n{\n \"rateLimit\": {\n \"window\": 7200, // time in seconds\n \"count\": 1000 // error cap\n }\n}\n```", "properties": { "count": { "type": "integer", "minimum": 0, "nullable": true }, "window": { "type": "integer", "maximum": 86400, "minimum": 0, "nullable": true } } }, "ReleaseFile": { "type": "object", "properties": { "name": { "type": "string", "description": "The new name (full path) of the file.", "maxLength": 200 } }, "required": [ "name" ] }, "ReleaseFileResponse": { "type": "object", "properties": { "id": { "anyOf": [ { "type": "string" }, { "type": "string", "format": "binary" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name" }, "name": { "type": "string", "description": "Name of the file, usually its URL" }, "dist": { "type": "string", "nullable": true, "description": "Name of the distribution the file belongs to" }, "headers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "HTTP headers stored with the file, such as Content-Type and Sourcemap" }, "size": { "type": "integer", "nullable": true, "description": "Size of the file in bytes" }, "sha1": { "type": "string", "nullable": true, "description": "SHA-1 checksum of the file" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the file was uploaded (ISO 8601)" } }, "required": [ "dateCreated", "dist", "headers", "id", "name", "sha1", "size" ] }, "ReleaseFileUpload": { "type": "object", "description": "Documents the multipart/form-data body of the release file upload endpoints.\n\nThe endpoints read the upload directly off ``request.data``; this serializer\nexists to describe the request body in the OpenAPI schema.", "properties": { "file": { "type": "string", "format": "uri", "description": "The multipart-encoded file contents to upload." }, "name": { "type": "string", "description": "The name (full path) the file will be referenced as, e.g. the full web URI of a JavaScript file. Defaults to the uploaded file's name." }, "dist": { "type": "string", "description": "The name of the distribution to associate the file with." }, "header": { "type": "array", "items": { "type": "string" }, "description": "Headers to attach to the file, each formatted as a `\"key:value\"` string (for example, to define a content type). May be supplied multiple times." } }, "required": [ "file" ] }, "ReleaseHeadCommit": { "type": "object", "properties": { "commit": { "type": "string" }, "repository": { "type": "string", "maxLength": 200 }, "previousCommit": { "type": "string", "nullable": true, "maxLength": 64 } }, "required": [ "commit", "repository" ] }, "ReleaseHeadCommitSerializerDeprecated": { "type": "object", "properties": { "currentId": { "type": "string", "maxLength": 64 }, "repository": { "type": "string", "maxLength": 64 }, "previousId": { "type": "string", "nullable": true, "maxLength": 64 } }, "required": [ "currentId", "repository" ] }, "ReleaseSerializerWithProjects": { "type": "object", "properties": { "version": { "type": "string", "description": "A version identifier for this release. Can be a version number, a commit hash, and so on.", "maxLength": 200 }, "projects": { "type": "array", "items": { "type": "string" }, "description": "A list of project slugs that are involved in this release." }, "ref": { "type": "string", "nullable": true, "description": "An optional commit reference. This is useful if a tagged version has been provided.", "maxLength": 200 }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "A URL that points to the release. For instance, this can be the path to an online interface to the source code, such as a GitHub URL." }, "dateReleased": { "type": "string", "format": "date-time", "nullable": true, "description": "An optional date that indicates when the release went live. If not provided the current time is used." }, "commits": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "maxLength": 64 }, "repository": { "type": "string", "nullable": true, "maxLength": 64 }, "message": { "type": "string", "nullable": true }, "author_name": { "type": "string", "nullable": true, "maxLength": 128 }, "author_email": { "type": "string", "nullable": true, "maxLength": 200 }, "timestamp": { "type": "string", "format": "date-time", "nullable": true }, "patch_set": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 510 }, "type": { "type": "string", "maxLength": 1 } }, "required": [ "path", "type" ] }, "nullable": true } }, "required": [ "id" ] }, "description": "An optional list of commit data to be associated. Very long lists are truncated to the most recent commits." }, "status": { "type": "string", "description": "The status of the release. Can be `open` or `archived`." }, "owner": { "type": "string", "description": "The username of the user to set as the release owner." }, "headCommits": { "type": "array", "items": { "type": "object", "properties": { "currentId": { "type": "string", "maxLength": 64 }, "repository": { "type": "string", "maxLength": 64 }, "previousId": { "type": "string", "nullable": true, "maxLength": 64 } }, "required": [ "currentId", "repository" ] }, "description": "(Deprecated) Use `refs` instead. An optional list of head commits to associate with the release, one per repository." }, "refs": { "type": "array", "items": { "type": "object", "properties": { "commit": { "type": "string" }, "repository": { "type": "string", "maxLength": 200 }, "previousCommit": { "type": "string", "nullable": true, "maxLength": 64 } }, "required": [ "commit", "repository" ] }, "description": "An optional list of commit references, one per repository, used to associate commits with the release." } }, "required": [ "projects", "version" ] }, "ReleaseThresholdStatusResponse": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the threshold" }, "date_added": { "type": "string", "format": "date-time", "description": "When the threshold was created (ISO 8601)" }, "environment": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the environment" }, "name": { "type": "string", "description": "Name of the environment" } }, "required": [ "id", "name" ], "nullable": true, "description": "Environment the threshold applies to. Null for all environments" }, "project": { "type": "object", "properties": { "stats": { "anyOf": [ { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 } }, { "type": "object", "additionalProperties": { "type": "integer" } } ], "description": "Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested" }, "transactionStats": { "type": "array", "items": { "type": "array", "items": { "type": "integer" }, "minLength": 2, "maxLength": 2 }, "description": "Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested" }, "sessionStats": { "type": "object", "properties": { "currentCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the current period, as a percentage. Null when there's no session data" }, "previousCrashFreeRate": { "type": "number", "format": "double", "nullable": true, "description": "Crash-free rate in the previous period, as a percentage. Null when there's no session data" }, "hasHealthData": { "type": "boolean", "description": "Whether the project has release health (session) data" } }, "required": [ "currentCrashFreeRate", "hasHealthData", "previousCrashFreeRate" ], "description": "Crash-free session rates for the current and previous stats period. Only included when session stats are requested" }, "id": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the project" }, "slug": { "type": "string", "pattern": "^[-a-zA-Z0-9_]+$", "description": "Slug of the project" }, "name": { "type": "string", "description": "Name of the project" }, "platform": { "type": "string", "nullable": true, "description": "Platform of the project" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the project was created (ISO 8601)" }, "isBookmarked": { "type": "boolean", "description": "Whether the requesting user bookmarked the project" }, "isMember": { "type": "boolean", "description": "Whether the requesting user is a member of a team with access to the project" }, "features": { "type": "array", "items": { "type": "string" }, "description": "Features enabled for the project" }, "firstEvent": { "type": "string", "format": "date-time", "nullable": true, "description": "When the project received its first event (ISO 8601)" }, "firstTransactionEvent": { "type": "boolean", "description": "Whether the project has sent transactions" }, "access": { "type": "array", "items": { "type": "string" }, "description": "Scopes the requesting user has on the project through team membership and organization role" }, "hasAccess": { "type": "boolean", "description": "Whether the requesting user has access to the project" }, "hasFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback" }, "hasFlags": { "type": "boolean", "description": "Whether the project has sent feature flags" }, "hasMinifiedStackTrace": { "type": "boolean", "description": "Whether the project has sent an event with a minified stack trace" }, "hasMonitors": { "type": "boolean", "description": "Whether the project has cron monitors" }, "hasNewFeedbacks": { "type": "boolean", "description": "Whether the project has sent user feedback from the user feedback widget" }, "hasProfiles": { "type": "boolean", "description": "Whether the project has sent profiles" }, "hasReplays": { "type": "boolean", "description": "Whether the project has sent replays" }, "hasSessions": { "type": "boolean", "description": "Whether the project has sent sessions" }, "hasInsightsHttp": { "type": "boolean", "description": "Whether the project has sent HTTP request spans used by Insights" }, "hasInsightsDb": { "type": "boolean", "description": "Whether the project has sent database spans used by Insights" }, "hasInsightsAssets": { "type": "boolean", "description": "Whether the project has sent asset spans used by Insights" }, "hasInsightsAppStart": { "type": "boolean", "description": "Whether the project has sent app start spans used by Insights" }, "hasInsightsScreenLoad": { "type": "boolean", "description": "Whether the project has sent screen load spans used by Insights" }, "hasInsightsVitals": { "type": "boolean", "description": "Whether the project has sent web vitals spans used by Insights" }, "hasInsightsCaches": { "type": "boolean", "description": "Whether the project has sent cache spans used by Insights" }, "hasInsightsQueues": { "type": "boolean", "description": "Whether the project has sent queue spans used by Insights" }, "hasInsightsAgentMonitoring": { "type": "boolean", "description": "Whether the project has sent AI agent spans used by Insights" }, "hasInsightsMCP": { "type": "boolean", "description": "Whether the project has sent MCP spans used by Insights" }, "hasLogs": { "type": "boolean", "description": "Whether the project has sent logs. Always true outside sentry.io" }, "hasTraceMetrics": { "type": "boolean", "description": "Whether the project has sent trace metrics. Always true outside sentry.io" }, "isInternal": { "type": "boolean", "description": "Whether this is the Sentry install's own internal project" }, "isPublic": { "type": "boolean", "description": "Whether the project is public" }, "avatar": { "type": "object", "properties": { "avatarType": { "enum": [ "letter_avatar", "upload", "gravatar" ], "type": "string", "description": "Avatar type" }, "avatarUuid": { "type": "string", "pattern": "^[0-9a-f]{32}$", "nullable": true, "description": "ID of the uploaded avatar image, or null" }, "avatarUrl": { "type": "string", "nullable": true, "description": "URL of the avatar image, or null if none is set" } }, "description": "Avatar of the project. Always a letter avatar" }, "color": { "type": "string", "description": "Hex color code for the project, derived from its slug unless set explicitly" }, "status": { "type": "string", "description": "Status of the project: active, deleted, or unknown" } }, "required": [ "access", "avatar", "color", "dateCreated", "features", "firstEvent", "firstTransactionEvent", "hasAccess", "hasFeedbacks", "hasFlags", "hasInsightsAgentMonitoring", "hasInsightsAppStart", "hasInsightsAssets", "hasInsightsCaches", "hasInsightsDb", "hasInsightsHttp", "hasInsightsMCP", "hasInsightsQueues", "hasInsightsScreenLoad", "hasInsightsVitals", "hasLogs", "hasMinifiedStackTrace", "hasMonitors", "hasNewFeedbacks", "hasProfiles", "hasReplays", "hasSessions", "hasTraceMetrics", "id", "isBookmarked", "isInternal", "isMember", "isPublic", "name", "platform", "slug", "status" ], "description": "Project the threshold applies to" }, "release": { "type": "string", "description": "Version of the release the threshold was checked against" }, "threshold_type": { "enum": [ "total_error_count", "new_issue_count", "unhandled_issue_count", "regressed_issue_count", "failure_rate", "crash_free_session_rate", "crash_free_user_rate" ], "type": "string", "description": "Metric the threshold checks: total_error_count, new_issue_count, unhandled_issue_count, regressed_issue_count, failure_rate, crash_free_session_rate or crash_free_user_rate" }, "trigger_type": { "enum": [ "over", "under" ], "type": "string", "description": "Whether the threshold fails when the metric goes over or under value" }, "value": { "type": "integer", "description": "Value the metric is compared with" }, "window_in_seconds": { "type": "integer", "description": "Time after the release or deploy during which the threshold is checked, in seconds" }, "end": { "type": "string", "format": "date-time", "description": "End of the window the threshold was checked in (ISO 8601)" }, "is_healthy": { "type": "boolean", "description": "Whether the metric stayed within the threshold" }, "key": { "type": "string", "description": "Key that groups thresholds of the same project and release" }, "project_slug": { "type": "string", "description": "Slug of the project" }, "project_id": { "type": "integer", "description": "ID of the project" }, "start": { "type": "string", "format": "date-time", "description": "Start of the window the threshold was checked in: the latest deploy, or the release date (ISO 8601)" }, "metric_value": { "anyOf": [ { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Value of the metric in the window. Null when it couldn't be computed" } }, "required": [ "end", "is_healthy", "key", "metric_value", "project_id", "project_slug", "start" ] } } }, "ReplayCounts": { "type": "object", "additionalProperties": { "type": "integer" } }, "ReplayDeletionJobCreate": { "type": "object", "properties": { "data": { "type": "object", "properties": { "rangeStart": { "type": "string", "format": "date-time" }, "rangeEnd": { "type": "string", "format": "date-time" }, "environments": { "type": "array", "items": { "type": "string" } }, "query": { "type": "string", "nullable": true } }, "required": [ "environments", "query", "rangeEnd", "rangeStart" ] } }, "required": [ "data" ] }, "ReplayDeletionJobCreateData": { "type": "object", "properties": { "rangeStart": { "type": "string", "format": "date-time" }, "rangeEnd": { "type": "string", "format": "date-time" }, "environments": { "type": "array", "items": { "type": "string" } }, "query": { "type": "string", "nullable": true } }, "required": [ "environments", "query", "rangeEnd", "rangeStart" ] }, "RepositoryProjectPathConfig": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "repository_id": { "type": "integer", "description": "The ID of a repository belonging to the installed integration." }, "project_id": { "type": "integer", "description": "The ID of the project to associate with the code mapping." }, "stack_root": { "type": "string", "description": "The path prefix to replace in stack trace filenames.", "pattern": "^[^\\s'\\\"]+$" }, "source_root": { "type": "string", "description": "The repository path prefix to substitute for the stack trace prefix.", "pattern": "^[^\\s'\\\"]+$" }, "default_branch": { "type": "string", "description": "The default branch to use when resolving source files. May be empty for Perforce.", "pattern": "^(^(?![\\/]))([\\w\\.\\/-]+)(?,number]` or `tags[,boolean]`" }, "rawName": { "type": "string", "description": "The name the attribute is stored under" }, "type": { "anyOf": [ { "enum": [ "str", "int", "float", "bool" ], "type": "string" }, { "enum": [ "array" ], "type": "string" } ], "description": "The type of the attribute value: `str`, `int`, `float`, `bool` or `array`" }, "value": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "boolean" }, { "type": "string" }, { "type": "array", "items": { "anyOf": [ { "type": "number", "format": "double" }, { "type": "boolean" }, { "type": "string" } ] } } ], "description": "The attribute value. An `int` value is a string, so 64-bit integers keep their precision. An `array` value is a list of values of one type" } }, "required": [ "name", "type", "value" ] }, "description": "The attributes of the item, sorted by type and then by name" }, "meta": { "type": "object", "additionalProperties": { "description": "Any JSON value", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "description": "Processing metadata, keyed by attribute name, for attributes that were changed during ingestion, such as a value that was trimmed for length" }, "links": { "type": "array", "items": { "type": "object", "properties": { "itemId": { "type": "string", "description": "The ID of the linked span" }, "traceId": { "type": "string", "description": "The ID of the trace the linked span belongs to" }, "sampled": { "type": "boolean", "description": "Whether the linked span was sampled" }, "attributes": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "The name of the link attribute, such as `sentry.link.type`" }, "value": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "boolean" } ], "description": "The link attribute value" }, "type": { "enum": [ "str", "int", "float", "bool" ], "type": "string", "description": "The type of the link attribute value" } }, "required": [ "name", "type", "value" ] }, "description": "The attributes of the link. Attributes with values that aren't a string, number or boolean are left out" } }, "required": [ "itemId", "traceId" ] }, "nullable": true, "description": "The span links of the item, or null if it has none" }, "event": { "type": "object", "properties": { "contexts": { "description": "The contexts of the event the item came from", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "extra": { "description": "The extra data of the event the item came from", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] }, "breadcrumbs": { "description": "The breadcrumbs of the event the item came from. Breadcrumb timestamps are ISO 8601 strings", "anyOf": [ { "type": "object", "additionalProperties": true, "nullable": true }, { "type": "array", "items": {} }, { "type": "string" }, { "type": "number" }, { "type": "boolean" } ] } }, "description": "Fields of the event the item came from that are stored with it. Only present when at least one of them is" } }, "required": [ "attributes", "itemId", "links", "meta", "timestamp" ] }, "TraceItemStatsResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "attributeDistributions": { "type": "object", "properties": { "data": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "object", "properties": { "label": { "type": "string", "description": "Value of the attribute" }, "value": { "type": "number", "format": "double", "description": "Number of items with the value" } }, "required": [ "label", "value" ] } }, "description": "Value distribution of each attribute, by attribute name" } }, "required": [ "data" ], "description": "Value distributions of the attributes" } }, "required": [ "attributeDistributions" ] }, "description": "Requested stats" } }, "required": [ "data" ] }, "TraceLogsResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "The ID of the log" }, "project.id": { "type": "integer", "description": "The ID of the project the log belongs to" }, "trace": { "type": "string", "description": "The ID of the trace the log belongs to" }, "severity_number": { "type": "integer", "description": "The OpenTelemetry severity number of the log, from 1 to 24, or 0 if unset" }, "severity": { "type": "string", "description": "The severity text of the log, such as `info` or `error`" }, "timestamp": { "type": "string", "format": "date-time", "description": "When the log was recorded" }, "timestamp_precise": { "type": "integer", "description": "When the log was recorded, in nanoseconds since the Unix epoch" }, "message": { "type": "string", "description": "The body of the log" } }, "required": [ "id", "message", "project.id", "severity", "severity_number", "timestamp", "timestamp_precise", "trace" ] }, "description": "The logs, sorted by the `sort` parameter" }, "meta": { "type": "object", "properties": { "fields": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Type of each returned field, keyed by field name" }, "full_scan": { "type": "boolean", "description": "Whether the query scanned the full data set rather than a downsampled sample" }, "bytes_scanned": { "type": "integer", "nullable": true, "description": "Number of bytes the query scanned, or null if it wasn't reported" }, "routingHint": { "type": "string", "description": "Opaque routing hint of the query. Pass it unchanged as routing_hint when fetching the details of a log" } }, "required": [ "fields" ], "description": "Metadata about the query and its fields" }, "confidence": { "type": "array", "items": { "type": "object", "additionalProperties": { "enum": [ "low", "high", null ], "type": "string", "nullable": true } }, "description": "Sampling confidence of each row in `data`, keyed by field. Logs are not aggregated, so each entry is an empty object" } }, "required": [ "confidence", "data", "meta" ] }, "UpdateClientKey": { "type": "object", "properties": { "name": { "type": "string", "description": "The name for the client key" }, "isActive": { "type": "boolean", "description": "Activate or deactivate the client key." }, "rateLimit": { "type": "object", "description": "Applies a rate limit to cap the number of errors accepted during a given time window. To\ndisable entirely set `rateLimit` to null.\n```json\n{\n \"rateLimit\": {\n \"window\": 7200, // time in seconds\n \"count\": 1000 // error cap\n }\n}\n```", "properties": { "count": { "type": "integer", "minimum": 0, "nullable": true }, "window": { "type": "integer", "maximum": 86400, "minimum": 0, "nullable": true } } }, "browserSdkVersion": { "enum": [ "latest", "7.x" ], "type": "string", "description": "The Sentry Javascript SDK version to use. The currently supported options are:\n\n* `latest` - Most recent version\n* `7.x` - Version 7 releases" }, "dynamicSdkLoaderOptions": { "type": "object", "description": "Configures multiple options for the Javascript Loader Script.\n- `Performance Monitoring`\n- `Debug Bundles & Logging`\n- `Session Replay` - Note that the loader will load the ES6 bundle instead of the ES5 bundle.\n- `User Feedback` - Note that the loader will load the ES6 bundle instead of the ES5 bundle.\n- `Logs and Metrics` - Note that the loader will load the ES6 bundle instead of the ES5 bundle. Requires SDK >= 10.0.0.\n```json\n{\n \"dynamicSdkLoaderOptions\": {\n \"hasReplay\": true,\n \"hasPerformance\": true,\n \"hasDebug\": true,\n \"hasFeedback\": true,\n \"hasLogsAndMetrics\": true\n }\n}\n```", "properties": { "hasReplay": { "type": "boolean" }, "hasPerformance": { "type": "boolean" }, "hasDebug": { "type": "boolean" }, "hasFeedback": { "type": "boolean" }, "hasLogsAndMetrics": { "type": "boolean" } } } } }, "UpdateOrgMemberRoles": { "type": "object", "properties": { "orgRole": { "enum": [ "billing", "member", "manager", "owner", "admin" ], "type": "string", "description": "The organization role of the member. The options are:\n\n* `billing` - Can manage payment and compliance details.\n* `member` - Can view and act on events, as well as view most other data within the organization.\n* `manager` - Has full management access to all teams and projects. Can also manage\n the organization's membership.\n* `owner` - Has unrestricted access to the organization, its data, and its\n settings. Can add, modify, and delete projects and members, as well as\n make billing and plan changes.\n* `admin` - Can edit global integrations, manage projects, and add/remove teams.\n They automatically assume the Team Admin role for teams they join.\n Note: This role can no longer be assigned in Business and Enterprise plans. Use `TeamRoles` instead.\n " }, "teamRoles": { "type": "array", "items": { "type": "object", "additionalProperties": {} }, "nullable": true, "description": "\nConfigures the team role of the member. The two roles are:\n- `contributor` - Can view and act on issues. Depending on organization settings, they can also add team members.\n- `admin` - Has full management access to their team's membership and projects.\n```json\n{\n \"teamRoles\": [\n {\n \"teamSlug\": \"ancient-gabelers\",\n \"role\": \"admin\"\n },\n {\n \"teamSlug\": \"powerful-abolitionist\",\n \"role\": \"contributor\"\n }\n ]\n}\n```\n" } } }, "UptimeDomainCheckFailureConfigValidator": { "type": "object", "description": "Validator for the uptime detector config field.", "properties": { "environment": { "type": "string", "nullable": true, "description": "Name of the environment to create uptime issues in.", "maxLength": 64 }, "recovery_threshold": { "type": "integer", "minimum": 1, "default": 1, "description": "Number of consecutive successful checks required to mark monitor as recovered." }, "downtime_threshold": { "type": "integer", "minimum": 1, "default": 3, "description": "Number of consecutive failed checks required to mark monitor as down." }, "mode": { "type": "integer", "default": 1 } } }, "UptimeMonitorDataSourceValidator": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "url": { "type": "string", "format": "uri", "maxLength": 255 }, "headers": { "type": "object", "additionalProperties": {}, "description": "Additional headers to send with the check request." }, "timeout_ms": { "type": "integer", "maximum": 60000, "minimum": 1000, "description": "The number of milliseconds the request will wait for a response before timing-out." }, "method": { "enum": [ "GET", "POST", "HEAD", "PUT", "DELETE", "PATCH", "OPTIONS" ], "type": "string", "description": "The HTTP method used to make the check request.\n\n* `GET`\n* `POST`\n* `HEAD`\n* `PUT`\n* `DELETE`\n* `PATCH`\n* `OPTIONS`" }, "trace_sampling": { "type": "boolean", "default": false, "description": "When enabled allows check requets to be considered for dowstream performance tracing." }, "response_capture_enabled": { "type": "boolean", "default": true, "description": "When enabled, response body and headers will be captured on check failures." }, "body": { "type": "string", "nullable": true, "description": "The body to send with the check request." }, "interval_seconds": { "enum": [ 60, 300, 600, 1200, 1800, 3600 ], "type": "integer", "description": "Time in seconds between uptime checks.\n\n* `60` - 1 minute\n* `300` - 5 minutes\n* `600` - 10 minutes\n* `1200` - 20 minutes\n* `1800` - 30 minutes\n* `3600` - 1 hour" }, "assertion": { "type": "object", "additionalProperties": {}, "nullable": true, "description": "The assertion to send with the check request." } }, "required": [ "interval_seconds", "timeout_ms", "url" ] }, "UserReport": { "type": "object", "properties": { "name": { "type": "string", "description": "User's name.", "maxLength": 128 }, "email": { "type": "string", "format": "email", "description": "User's email address.", "maxLength": 75 }, "comments": { "type": "string", "description": "Comments supplied by user.", "maxLength": 4096 }, "event_id": { "type": "string", "description": "The event ID. This can be retrieved from the [beforeSend callback](https://docs.sentry.io/platforms/javascript/configuration/filtering/#using-beforesend).", "maxLength": 32 } }, "required": [ "comments", "email", "event_id", "name" ] }, "WidgetLayout": { "type": "object", "description": "Widget grid layout position and dimensions.\n\nThe dashboard uses a 6-column grid. Required keys: x, y, w, h, minH.\nConstraints: x (0-5), y (>= 0), w (1-6), h (>= 1), minH (>= 1), and x + w <= 6.", "properties": { "x": { "type": "integer", "maximum": 5, "minimum": 0, "description": "Column position (0-indexed)." }, "y": { "type": "integer", "minimum": 0, "description": "Row position (0-indexed)." }, "w": { "type": "integer", "maximum": 6, "minimum": 1, "description": "Width in grid columns (1-6)." }, "h": { "type": "integer", "minimum": 1, "description": "Height in grid rows." }, "min_h": { "type": "integer", "minimum": 1, "description": "Minimum height in grid rows." } }, "required": [ "h", "min_h", "w", "x", "y" ] }, "Workflow": { "type": "object", "properties": { "id": { "type": "string", "description": "Workflow ID" }, "name": { "type": "string", "description": "Workflow name" }, "type": { "type": "string", "description": "Type of the workflow, such as alert" }, "organizationId": { "type": "string", "description": "ID of the organization the workflow belongs to" }, "createdBy": { "type": "string", "nullable": true, "description": "ID of the user who created the workflow" }, "dateCreated": { "type": "string", "format": "date-time", "description": "When the workflow was created (ISO 8601)" }, "dateUpdated": { "type": "string", "format": "date-time", "description": "When the workflow was last updated (ISO 8601)" }, "triggers": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } }, "nullable": true, "description": "Conditions on which the workflow triggers" }, "actionFilters": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition group" }, "organizationId": { "type": "string", "description": "ID of the organization" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "How the conditions in the group combine" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the condition" }, "type": { "type": "string", "description": "Type of the condition, such as first_seen_event or level" }, "comparison": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "required": [ "comparisonType", "value", "time" ], "additionalProperties": false, "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the issue must be older or newer than the age" }, "value": { "type": "integer", "minimum": 0, "description": "Age of the issue, in units of time" }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ], "description": "Unit of the age" } } }, { "type": "object", "required": [ "sensitivity", "seasonality", "thresholdType" ], "additionalProperties": false, "properties": { "sensitivity": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "How sensitive anomaly detection is" }, "seasonality": { "type": "string", "enum": [ "auto", "hourly", "daily", "weekly", "hourly_daily", "hourly_weekly", "hourly_daily_weekly", "daily_weekly" ], "description": "Seasonal pattern that anomaly detection accounts for" }, "thresholdType": { "type": "integer", "enum": [ 0, 1, 2 ], "description": "Anomalies to detect: 0 above, 1 below, 2 above or below the expected value" } } }, { "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ], "description": "Who the issue must be assigned to" }, "targetIdentifier": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "description": "ID of the team or member. Not set for Unassigned" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the attribute against. Not set for is and ns" } } }, { "type": "integer", "minimum": 1 }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of events in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in events over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Number of affected users in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "integer", "minimum": 0, "description": "Percent increase in affected users over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "description": "ID of the issue category" }, "include": { "type": "boolean", "description": "Whether the issue must be in the category or not. Defaults to true" } } }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0, "description": "Number of times the issue must have occurred" } } }, { "type": "integer", "enum": [ 25, 50, 75 ] }, { "type": "integer", "enum": [ 1 ] }, { "type": "object", "required": [ "value" ], "additionalProperties": false, "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ], "description": "Slug of the issue type" }, "include": { "type": "boolean", "description": "Whether the issue must be of the type or not. Defaults to true" } } }, { "type": "object", "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false, "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ], "description": "Whether to compare against the oldest or newest adopted release" }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ], "description": "Whether the event's release must be older or newer than that release" }, "environment": { "type": "string", "description": "Environment the release was adopted in" } } }, { "type": "object", "required": [ "level", "match" ], "additionalProperties": false, "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ], "description": "Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal" }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ], "description": "How to compare the event's level: eq, gte or lte" } } }, { "type": "object", "required": [ "interval", "value" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "maximum": 100, "description": "Percent of sessions affected in the interval that meets the condition" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "object", "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false, "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ], "description": "Time window to count in, such as 1h" }, "value": { "type": "number", "minimum": 0, "description": "Percent increase in affected sessions over the comparison interval that meets the condition" }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ], "description": "Earlier time window to compare the count against, such as 1w" }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } }, { "type": "object", "additionalProperties": false, "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ], "description": "Event attribute to match, such as message or user.email" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag or attribute against. Not set for is and ns" } } } ] }, "description": "Tag or attribute filters that events must match to count" } } }, { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, { "type": "object", "additionalProperties": false, "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$", "description": "Tag key to match" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ], "description": "How to compare, such as eq for equals, co for contains or is for is set" }, "value": { "type": "string", "description": "Value to compare the tag against. Not set for is and ns" } } } ], "description": "Value the condition compares against, which depends on its type" }, "conditionResult": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number", "format": "double" }, { "type": "object", "nullable": true, "enum": [ null ] } ], "description": "Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions" } }, "required": [ "comparison", "conditionResult", "id", "type" ] }, "description": "Conditions in the group" }, "actions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of the action" }, "type": { "enum": [ "slack", "slack_staging", "msteams", "discord", "pagerduty", "opsgenie", "github", "github_enterprise", "jira", "jira_server", "vsts", "email", "sentry_app", "plugin", "webhook", "seer_workflow" ], "type": "string", "description": "Type of the action" }, "integrationId": { "type": "string", "nullable": true, "description": "ID of the integration the action uses. Null for actions without one" }, "data": { "anyOf": [ { "type": "object", "description": "Schema for Discord action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } } }, { "type": "object", "additionalProperties": false, "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } } }, { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "required": [ "additionalFields" ], "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "required": [ "repo" ], "properties": { "repo": { "type": "string", "description": "Repository to create the issue in, as owner/name" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true, "description": "Labels to add to the issue" }, "assignee": { "type": "string", "nullable": true, "description": "User to assign the issue to" } } } } }, { "type": "object", "description": "Schema for ticket creation action data blob", "additionalProperties": false, "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object", "description": "A field of the ticket form, as the integration's issue config defines it", "properties": { "name": { "type": "string", "description": "Name of the field" }, "label": { "type": "string", "description": "Label of the field" }, "type": { "type": "string", "description": "Type of the field, such as select or text" } } }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": { "anyOf": [ { "type": "string", "nullable": true }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } ], "description": "Value of the ticket form field with this name" }, "default": {} } } }, { "type": "object", "description": "Schema for MSTeams action data blob", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } } }, { "type": "object", "additionalProperties": false, "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } } }, { "type": "object", "description": "Settings of the legacy alert rule action the action was migrated from", "additionalProperties": { "type": "string" } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The data schema for a Sentry App Action", "type": "object", "additionalProperties": false, "properties": { "settings": { "type": "array", "description": "Values of the Sentry App's alert rule settings form, each with a name and value" } } }, { "type": "object", "description": "Schema for Slack action data blob", "additionalProperties": false, "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } } } ], "description": "Extra data for the action, which depends on its type" }, "config": { "anyOf": [ { "description": "The configuration schema for a Discord Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for an email Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "type": "object", "nullable": true, "enum": [ null ], "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetDisplay", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a on-call Action", "type": "object", "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Plugin Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "type": "object", "additionalProperties": false, "properties": {}, "maxProperties": 0 }, { "description": "The configuration schema for a Sentry App Action", "type": "object", "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "nullable": true, "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "sentry_app" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for a Messaging Action", "type": "object", "required": [ "targetType" ], "additionalProperties": false, "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "string", "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "string", "enum": [ "specific" ], "description": "Kind of target the action notifies, such as specific, user or team" } } }, { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string", "description": "ID of the target, such as a channel, user or team ID" }, "targetDisplay": { "type": "object", "nullable": true, "enum": [ null ], "description": "Display name of the target, such as a channel name" }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true, "description": "Kind of target the action notifies, such as specific, user or team" } } } ], "description": "Configuration of the action, such as targetType and targetIdentifier" }, "status": { "enum": [ "active", "disabled", "pending_deletion", "deletion_in_progress" ], "type": "string", "description": "Status of the action" } } }, "description": "Actions to fire when the conditions pass" } } }, "nullable": true, "description": "Filters to run before actions fire, each with the actions to fire" }, "environment": { "type": "string", "nullable": true, "description": "Name of the environment the workflow is limited to. Null for all environments" }, "config": { "type": "object", "additionalProperties": false, "properties": { "frequency": { "description": "How often the workflow should fire for a Group (minutes)", "type": "integer", "minimum": 0 } }, "description": "Configuration of the workflow, such as frequency in minutes" }, "detectorIds": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "IDs of the monitors connected to the workflow" }, "enabled": { "type": "boolean", "description": "Whether the workflow is enabled" }, "lastTriggered": { "type": "string", "format": "date-time", "nullable": true, "description": "When the workflow last fired (ISO 8601)" }, "owner": { "type": "string", "nullable": true, "description": "Team or user that owns the workflow, such as user:123 or team:456" } }, "required": [ "actionFilters", "config", "createdBy", "dateCreated", "dateUpdated", "detectorIds", "enabled", "environment", "id", "lastTriggered", "name", "organizationId", "owner", "triggers", "type" ] }, "WorkflowAction": { "oneOf": [ { "title": "Discord Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "discord" ] }, "data": { "type": "object", "description": "Schema for Discord action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Discord Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Email Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "email" ] }, "data": { "type": "object", "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for an email Action", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "The stringified Sentry User.id or Team.id. Resolve users with the organization members endpoint and teams with the organization teams endpoint. Member IDs, email addresses, team slugs, and 'me' are not accepted. Omit this field when targetType is issue_owners." }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Github Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "github" ] }, "data": { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "properties": { "repo": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true }, "assignee": { "type": "string", "nullable": true } }, "required": [ "repo" ] } }, "required": [ "additionalFields" ], "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Github_Enterprise Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "github_enterprise" ] }, "data": { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "properties": { "repo": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true }, "assignee": { "type": "string", "nullable": true } }, "required": [ "repo" ] } }, "required": [ "additionalFields" ], "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Jira Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "jira" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Jira_Server Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "jira_server" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Msteams Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "msteams" ] }, "data": { "type": "object", "description": "Schema for MSTeams action data blob", "properties": {}, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetDisplay", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Opsgenie Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "opsgenie" ] }, "data": { "type": "object", "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a on-call Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Pagerduty Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "pagerduty" ] }, "data": { "type": "object", "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a on-call Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Seer_Workflow Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "seer_workflow" ] }, "data": { "type": "object", "properties": {}, "additionalProperties": false }, "config": { "type": "object", "properties": {}, "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Sentry_App Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "sentry_app" ] }, "data": { "description": "The data schema for a Sentry App Action", "type": "object", "properties": { "settings": { "type": "array" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Sentry App Action", "type": "object", "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "sentry_app" ] } }, "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Slack Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "slack" ] }, "data": { "type": "object", "description": "Schema for Slack action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Slack_Staging Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "slack_staging" ] }, "data": { "type": "object", "description": "Schema for Slack action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Azure_Devops Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "vsts" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Webhook Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "webhook" ] }, "data": { "type": "object" }, "config": { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "nullable": true }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true } } }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] } ], "discriminator": { "propertyName": "type" } }, "WorkflowValidator": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "name": { "type": "string", "description": "The name of the alert", "maxLength": 256 }, "id": { "type": "string", "description": "The ID of the existing alert" }, "enabled": { "type": "boolean", "default": true, "description": "Whether the alert is enabled or disabled" }, "detectorIds": { "type": "array", "items": { "type": "integer" }, "description": "The IDs of the monitors to connect this alert to. Use 'Fetch an Organization's Monitors' to find the IDs." }, "config": { "type": "object", "additionalProperties": {}, "description": "\n Typically the frequency at which the alert will fire, in minutes.\n\n - `0`: 0 minutes\n - `5`: 5 minutes\n - `10`: 10 minutes\n - `30`: 30 minutes\n - `60`: 1 hour\n - `180`: 3 hours\n - `720`: 12 hours\n - `1440`: 24 hours\n\n ```json\n {\n \"frequency\": 60\n }\n ```\n " }, "environment": { "type": "string", "nullable": true, "description": "The name of the environment for the alert to evaluate in" }, "triggers": { "allOf": [ { "type": "object", "properties": { "id": { "type": "integer" }, "logicType": { "type": "string", "enum": [ "any-short" ] }, "conditions": { "type": "array", "items": { "oneOf": [ { "title": "Every Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "every_event" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "First Seen Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "first_seen_event" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Resolved Trigger Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_resolved_trigger" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Reappeared Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "reappeared_event" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Regression Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "regression_event" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Seer Activity Trigger Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "seer_activity_trigger" ] }, "comparison": { "type": "array", "items": { "type": "string", "enum": [ "rca_completed", "solution_completed", "coding_completed", "pr_ready_for_review" ] }, "minItems": 1, "uniqueItems": true }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] } ], "discriminator": { "propertyName": "type" } } } }, "required": [ "logicType" ] } ], "description": "The conditions on which the alert will trigger. See available options below.\n ```json\n {\n \"triggers\": {\n \"organizationId\": \"1\",\n \"logicType\": \"any-short\",\n \"conditions\": [\n {\n \"type\": \"first_seen_event\",\n \"comparison\": true,\n \"conditionResult\": true\n },\n {\n \"type\": \"issue_resolved_trigger\",\n \"comparison\": true,\n \"conditionResult\": true\n },\n {\n \"type\": \"reappeared_event\",\n \"comparison\": true,\n \"conditionResult\": true\n },\n {\n \"type\": \"regression_event\",\n \"comparison\": true,\n \"conditionResult\": true\n },\n {\n \"type\": \"seer_activity_trigger\",\n \"comparison\": [\n \"rca_completed\",\n \"solution_completed\",\n \"coding_completed\",\n \"pr_ready_for_review\"\n ],\n \"conditionResult\": true\n }\n ]\n }\n }\n ```\n " }, "actionFilters": { "type": "array", "items": { "type": "object", "description": "Allows parameters to be defined in snake case, but passed as camel case.\n\nErrors are output in camel case.", "properties": { "id": { "type": "integer" }, "logicType": { "enum": [ "any", "any-short", "all", "none" ], "type": "string", "description": "* `any`\n* `any-short`\n* `all`\n* `none`" }, "conditions": { "type": "array", "items": { "oneOf": [ { "title": "Age Comparison Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "age_comparison" ] }, "comparison": { "type": "object", "properties": { "comparisonType": { "type": "string", "enum": [ "older", "newer" ] }, "value": { "type": "integer", "minimum": 0 }, "time": { "type": "string", "enum": [ "minute", "hour", "day", "week" ] } }, "required": [ "comparisonType", "value", "time" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Assigned To Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "assigned_to" ] }, "comparison": { "type": "object", "properties": { "targetType": { "type": "string", "enum": [ "Unassigned", "Team", "Member" ] }, "targetIdentifier": { "oneOf": [ { "type": "integer" }, { "type": "string" } ] } }, "required": [ "targetType" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Attribute Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_attribute" ] }, "comparison": { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Frequency Count Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_frequency_count" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Frequency Percent Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_frequency_percent" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ] }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Unique User Frequency Count Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_unique_user_frequency_count" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Event Unique User Frequency Percent Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "event_unique_user_frequency_percent" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "15m", "1h", "1d", "1w", "30d" ] }, "value": { "type": "integer", "minimum": 0 }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ] }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Category Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_category" ] }, "comparison": { "type": "object", "properties": { "value": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ] }, "include": { "type": "boolean" } }, "required": [ "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Occurrences Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_occurrences" ] }, "comparison": { "type": "object", "properties": { "value": { "type": "integer", "minimum": 0 } }, "required": [ "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Priority Deescalating Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_priority_deescalating" ] }, "comparison": { "type": "integer", "enum": [ 25, 50, 75 ] }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Priority Greater Or Equal Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_priority_greater_or_equal" ] }, "comparison": { "type": "integer", "enum": [ 25, 50, 75 ] }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Issue Type Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "issue_type" ] }, "comparison": { "type": "object", "properties": { "value": { "type": "string", "enum": [ "performance_slow_db_query", "performance_render_blocking_asset_span", "performance_n_plus_one_db_queries", "performance_n_plus_one_db_queries_experimental", "performance_consecutive_db_queries", "performance_file_io_main_thread", "performance_consecutive_http", "performance_n_plus_one_api_calls", "performance_n_plus_one_api_calls_experimental", "performance_m_n_plus_one_db_queries", "performance_m_n_plus_one_db_queries_experimental", "performance_uncompressed_assets", "performance_db_main_thread", "performance_large_http_payload", "performance_http_overhead", "performance_p95_endpoint_regression", "performance_streamed_spans_exp", "db_query_injection_vulnerability", "query_injection_vulnerability", "profile_file_io_main_thread", "profile_image_decode_main_thread", "profile_json_decode_main_thread", "profile_regex_main_thread", "profile_frame_drop", "profile_function_regression", "llm_detected_experimental", "llm_detected_experimental_v2", "ai_detected_http", "ai_detected_db", "ai_detected_runtime_performance", "ai_detected_security", "ai_detected_code_health", "ai_detected_general", "replay_click_rage", "replay_hydration_error", "feedback", "web_vitals", "issue_stream", "metric_issue", "error", "uptime_domain_failure", "send-test-notification", "monitor_check_in_failure", "sourcemap_configuration", "low_value_span_configuration", "preprod_size_analysis" ] }, "include": { "type": "boolean" } }, "required": [ "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Latest Adopted Release Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "latest_adopted_release" ] }, "comparison": { "type": "object", "properties": { "releaseAgeType": { "type": "string", "enum": [ "oldest", "newest" ] }, "ageComparison": { "type": "string", "enum": [ "older", "newer" ] }, "environment": { "type": "string" } }, "required": [ "releaseAgeType", "ageComparison", "environment" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Latest Release Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "latest_release" ] }, "comparison": { "type": "boolean" }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Level Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "level" ] }, "comparison": { "type": "object", "properties": { "level": { "type": "integer", "enum": [ 0, 10, 20, 30, 40, 50 ] }, "match": { "type": "string", "enum": [ "eq", "gte", "lte" ] } }, "required": [ "level", "match" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Percent Sessions Count Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "percent_sessions_count" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ] }, "value": { "type": "number", "minimum": 0, "maximum": 100 }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Percent Sessions Percent Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "percent_sessions_percent" ] }, "comparison": { "type": "object", "properties": { "interval": { "type": "string", "enum": [ "1m", "5m", "10m", "30m", "1h" ] }, "value": { "type": "number", "minimum": 0 }, "comparisonInterval": { "type": "string", "enum": [ "5m", "15m", "1h", "1d", "1w", "30d" ] }, "filters": { "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, { "type": "object", "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "attribute", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "attribute": { "type": "string", "enum": [ "message", "platform", "environment", "type", "error.handled", "error.unhandled", "error.main_thread", "exception.type", "exception.value", "user.id", "user.email", "user.username", "user.ip_address", "http.method", "http.url", "http.status_code", "sdk.name", "stacktrace.code", "stacktrace.module", "stacktrace.filename", "stacktrace.abs_path", "stacktrace.package", "unreal.crash_type", "app.in_foreground", "os.distribution_name", "os.distribution_version", "symbolicated_in_app", "ota_updates.channel", "ota_updates.runtime_version", "ota_updates.update_id" ] }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "attribute", "match", "value" ] } ], "additionalProperties": false } ] } } }, "required": [ "interval", "value", "comparisonInterval" ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] }, { "title": "Tagged Event Condition", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "type": "string", "enum": [ "tagged_event" ] }, "comparison": { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "type": "string", "enum": [ "co", "ew", "eq", "is", "in", "nc", "new", "ne", "ns", "nsw", "nin", "sw" ] }, "value": { "type": "string" } }, "oneOf": [ { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "enum": [ "is", "ns" ] } }, "required": [ "key", "match" ], "not": { "required": [ "value" ] } }, { "properties": { "key": { "type": "string", "pattern": "^[a-zA-Z0-9_\\.:-]+$" }, "match": { "not": { "enum": [ "is", "ns" ] } }, "value": { "type": "string" } }, "required": [ "key", "match", "value" ] } ], "additionalProperties": false }, "conditionResult": {} }, "required": [ "type", "comparison", "conditionResult" ] } ], "discriminator": { "propertyName": "type" } } }, "actions": { "type": "array", "items": { "oneOf": [ { "title": "Discord Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "discord" ] }, "data": { "type": "object", "description": "Schema for Discord action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Discord Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Email Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "email" ] }, "data": { "type": "object", "properties": { "fallthroughType": { "type": "string", "description": "The fallthrough type for issue owners email notifications", "enum": [ "AllMembers", "ActiveMembers", "NoOne" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for an email Action", "type": "object", "properties": { "targetIdentifier": { "type": "string", "nullable": true, "description": "The stringified Sentry User.id or Team.id. Resolve users with the organization members endpoint and teams with the organization teams endpoint. Member IDs, email addresses, team slugs, and 'me' are not accepted. Omit this field when targetType is issue_owners." }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "user", "team", "issue_owners" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Github Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "github" ] }, "data": { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "properties": { "repo": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true }, "assignee": { "type": "string", "nullable": true } }, "required": [ "repo" ] } }, "required": [ "additionalFields" ], "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Github_Enterprise Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "github_enterprise" ] }, "data": { "type": "object", "description": "Schema for GitHub ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "properties": { "repo": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" }, "default": [], "nullable": true }, "assignee": { "type": "string", "nullable": true } }, "required": [ "repo" ] } }, "required": [ "additionalFields" ], "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Jira Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "jira" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Jira_Server Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "jira_server" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Msteams Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "msteams" ] }, "data": { "type": "object", "description": "Schema for MSTeams action data blob", "properties": {}, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetDisplay", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Opsgenie Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "opsgenie" ] }, "data": { "type": "object", "properties": { "priority": { "type": "string", "description": "The priority of the opsgenie action", "enum": [ "P1", "P2", "P3", "P4", "P5" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a on-call Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Pagerduty Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "pagerduty" ] }, "data": { "type": "object", "properties": { "priority": { "type": "string", "description": "The priority of the pagerduty action", "enum": [ "default", "critical", "warning", "error", "info" ] } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a on-call Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetIdentifier", "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Seer_Workflow Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "seer_workflow" ] }, "data": { "type": "object", "properties": {}, "additionalProperties": false }, "config": { "type": "object", "properties": {}, "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Sentry_App Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "sentry_app" ] }, "data": { "description": "The data schema for a Sentry App Action", "type": "object", "properties": { "settings": { "type": "array" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Sentry App Action", "type": "object", "properties": { "targetIdentifier": { "type": "string", "pattern": "^[0-9]+$" }, "targetDisplay": { "type": "string", "nullable": true }, "targetType": { "type": "string", "enum": [ "sentry_app" ] } }, "required": [ "targetType", "targetIdentifier" ], "additionalProperties": false }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] }, { "title": "Slack Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "slack" ] }, "data": { "type": "object", "description": "Schema for Slack action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Slack_Staging Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "slack_staging" ] }, "data": { "type": "object", "description": "Schema for Slack action data blob", "properties": { "tags": { "type": "string", "description": "Tags to add to the message" }, "notes": { "type": "string", "description": "Notes to add to the message" } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Messaging Action", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "type": "string" }, "targetType": { "type": "string", "enum": [ "specific" ] } }, "required": [ "targetType" ], "additionalProperties": false }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Azure_Devops Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "vsts" ] }, "data": { "type": "object", "description": "Schema for ticket creation action data blob", "properties": { "dynamicFormFields": { "type": "array", "description": "Dynamic form fields from customer configuration", "items": { "type": "object" }, "default": [] }, "additionalFields": { "type": "object", "description": "Additional fields that aren't part of standard fields", "additionalProperties": true, "default": {} } }, "additionalProperties": false }, "config": { "description": "The configuration schema for a Ticketing Action", "type": "object", "properties": { "targetIdentifier": { "nullable": true }, "targetDisplay": { "nullable": true }, "targetType": { "type": "string", "enum": [ "specific" ] } } }, "status": { "type": "string" }, "integrationId": { "type": "string" } }, "required": [ "type", "data", "config", "integrationId" ] }, { "title": "Webhook Workflow Action", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "webhook" ] }, "data": { "type": "object" }, "config": { "description": "The configuration schema for Webhook Actions", "type": "object", "properties": { "targetIdentifier": { "type": "string" }, "targetDisplay": { "nullable": true }, "targetType": { "type": "integer", "enum": [ null ], "nullable": true } } }, "status": { "type": "string" } }, "required": [ "type", "data", "config" ] } ], "discriminator": { "propertyName": "type" } } } }, "required": [ "actions", "logicType" ] }, "description": "The filters to run before the action will fire and the action(s) to fire.\n\n `logicType` can be one of `any-short`, `all`, or `none`.\n\n Below is a basic example. See below for all other options.\n\n ```json\n \"actionFilters\": [\n {\n \"logicType\": \"any\",\n \"conditions\": [\n {\n \"type\": \"level\",\n \"comparison\": {\n \"level\": 50,\n \"match\": \"eq\"\n },\n \"conditionResult\": true\n }\n ],\n \"actions\": [\n {\n \"id\": \"123\",\n \"type\": \"email\",\n \"integrationId\": null,\n \"data\": {},\n \"config\": {\n \"targetType\": \"user\",\n \"targetDisplay\": null,\n \"targetIdentifier\": \"56789\"\n },\n \"status\": \"active\"\n }\n ]\n }\n ]\n ```\n\n ## Conditions\n\n **Issue Age**\n - `time`: One of `minute`, `hour`, `day`, or `week`.\n - `value`: A positive integer.\n - `comparisonType`: One of `older` or `newer`.\n ```json\n {\n \"type\": \"age_comparison\",\n \"comparison\": {\n \"time\": \"minute\",\n \"value\": 10,\n \"comparisonType\": \"older\"\n },\n \"conditionResult\": true\n }\n\n ```\n\n **Issue Assignment**\n - `targetType`: Who the issue is assigned to\n - `Unassigned`: Unassigned\n - `Member`: Assigned to a user\n - `Team`: Assigned to a team\n - `targetIdentifier`: The ID of the user or team from the `targetType`. Enter \"\" if `targetType` is `Unassigned`.\n ```json\n {\n \"type\": \"assigned_to\",\n \"comparison\": {\n \"targetType\": \"Member\",\n \"targetIdentifier\": 123456\n },\n \"conditionResult\": true\n }\n ```\n\n **Issue Category**\n - `value`: The issue category to filter to.\n - `1`: Error issues\n - `6`: Feedback issues\n - `10`: Outage issues\n - `11`: Metric issues\n - `12`: DB Query issues\n - `13`: HTTP Client issues\n - `14`: Front end issues\n - `15`: Mobile issues\n - `17`: Preprod issues\n - `19`: Configuration issues\n ```json\n {\n \"type\": \"issue_category\",\n \"comparison\": {\n \"value\": 1\n },\n \"conditionResult\": true\n }\n ```\n\n **Issue Frequency**\n - `value`: A positive integer representing how many times the issue has to happen before the alert will fire.\n ```json\n {\n \"type\": \"issue_occurrences\",\n \"comparison\": {\n \"value\": 10\n },\n \"conditionResult\": true\n }\n ```\n\n **De-escalation**\n - `comparison`: The priority threshold the issue must de-escalate below.\n - `75`: High priority\n - `50`: Medium priority\n - `25`: Low priority\n ```json\n {\n \"type\": \"issue_priority_deescalating\",\n \"comparison\": 75,\n \"conditionResult\": true\n }\n ```\n\n **Issue Priority**\n - `comparison`: The priority the issue must be for the alert to fire.\n - `75`: High priority\n - `50`: Medium priority\n - `25`: Low priority\n ```json\n {\n \"type\": \"issue_priority_greater_or_equal\",\n \"comparison\": 75,\n \"conditionResult\": true\n }\n ```\n\n **Number of Users Affected**\n - `value`: A positive integer representing the number of users that must be affected before the alert will fire.\n - `filters`: A list of additional sub-filters to evaluate before the alert will fire.\n - `interval`: The time period in which to evaluate the value. e.g. Number of users affected by an issue is more than `value` in `interval`.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n ```json\n {\n \"type\": \"event_unique_user_frequency_count\",\n \"comparison\": {\n \"value\": 100,\n \"filters\": [{\"key\": \"foo\", \"match\": \"eq\", \"value\": \"bar\"}],\n \"interval\": \"1h\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Number of Events**\n - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire\n - `interval`: The time period in which to evaluate the value. e.g. Number of events in an issue is more than `value` in `interval`.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n ```json\n {\n \"type\": \"event_frequency_count\",\n \"comparison\": {\n \"value\": 100,\n \"interval\": \"1h\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Percent of Events**\n - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire\n - `interval`: The time period in which to evaluate the value.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n - `comparisonInterval`: The time period to compare against.\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n ```json\n {\n \"type\": \"event_frequency_percent\",\n \"comparison\": {\n \"value\": 100,\n \"interval\": \"1h\",\n \"comparisonInterval\": \"1w\"\n },\n \"conditionResult\": true\n }\n\n ```\n\n **Percentage of Sessions Affected Count**\n - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire\n - `interval`: The time period in which to evaluate the value. e.g. Percentage of sessions affected by an issue is more than `value` in `interval`.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `10m`: 10 minutes\n - `30m`: 30 minutes\n - `1h`: 1 hour\n ```json\n {\n \"type\": \"percent_sessions_count\",\n \"comparison\": {\n \"value\": 10,\n \"interval\": \"1h\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Percentage of Sessions Affected Percent**\n - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire\n - `interval`: The time period in which to evaluate the value.\n - `1m`: 1 minute\n - `5m`: 5 minutes\n - `10m`: 10 minutes\n - `30m`: 30 minutes\n - `1h`: 1 hour\n - `comparisonInterval`: The time period to compare against.\n - `5m`: 5 minutes\n - `15m`: 15 minutes\n - `1h`: 1 hour\n - `1d`: 1 day\n - `1w`: 1 week\n - `30d`: 30 days\n ```json\n {\n \"type\": \"percent_sessions_percent\",\n \"comparison\": {\n \"value\": 10,\n \"interval\": \"1h\",\n \"comparisonInterval\": \"1w\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Event Attribute**\n The event's `attribute` value `match` `value`\n\n - `attribute`: The event attribute to match on. Valid values are: `message`, `platform`, `environment`, `type`, `error.handled`, `error.unhandled`, `error.main_thread`, `exception.type`, `exception.value`, `user.id`, `user.email`, `user.username`, `user.ip_address`, `http.method`, `http.url`, `http.status_code`, `sdk.name`, `stacktrace.code`, `stacktrace.module`, `stacktrace.filename`, `stacktrace.abs_path`, `stacktrace.package`, `unreal.crash_type`, `app.in_foreground`.\n - `match`: The comparison operator\n - `co`: Contains\n - `nc`: Does not contain\n - `eq`: Equals\n - `ne`: Does not equal\n - `sw`: Starts with\n - `ew`: Ends with\n - `is`: Is set\n - `ns`: Is not set\n - `value`: A string. Must be omitted when match is `is` or `ns`; required otherwise.\n\n ```json\n {\n \"type\": \"event_attribute\",\n \"comparison\": {\n \"match\": \"co\",\n \"value\": \"bar\",\n \"attribute\": \"message\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Tagged Event**\n The event's tags `key` match `value`\n - `key`: The tag value\n - `match`: The comparison operator\n - `co`: Contains\n - `nc`: Does not contain\n - `eq`: Equals\n - `ne`: Does not equal\n - `sw`: Starts with\n - `ew`: Ends with\n - `is`: Is set\n - `ns`: Is not set\n - `value`: A string. Must be omitted when match is `is` or `ns`; required otherwise.\n\n ```json\n {\n \"type\": \"tagged_event\",\n \"comparison\": {\n \"key\": \"level\",\n \"match\": \"eq\",\n \"value\": \"error\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Latest Release**\n The event is from the latest release\n\n ```json\n {\n \"type\": \"latest_release\",\n \"comparison\": true,\n \"conditionResult\": true\n }\n ```\n\n **Release Age**\n ```json\n {\n \"type\": \"latest_adopted_release\",\n \"comparison\": {\n \"environment\": \"production\",\n \"ageComparison\": \"older\",\n \"releaseAgeType\": \"oldest\"\n },\n \"conditionResult\": true\n }\n ```\n\n **Event Level**\n The event's level is `match` `level`\n - `match`: The comparison operator\n - `eq`: Equal\n - `gte`: Greater than or equal\n - `lte`: Less than or equal\n - `level`: The event level\n - `50`: Fatal\n - `40`: Error\n - `30`: Warning\n - `20`: Info\n - `10`: Debug\n - `0`: Sample\n\n ```json\n {\n \"type\": \"level\",\n \"comparison\": {\n \"level\": 50,\n \"match\": \"eq\"\n },\n \"conditionResult\": true\n }\n ```\n\n ## Actions\n A list of actions that take place when all required conditions and filters for the alert are met. See below for a list of possible actions.\n\n\n **Notify on Preferred Channel**\n - `data`: A dictionary with the fallthrough type option when choosing to notify Suggested Assignees. Leave empty if notifying a user or team.\n - `fallthroughType`\n - `ActiveMembers`\n - `AllMembers`\n - `NoOne`\n - `config`: A dictionary with the configuration options for notification.\n - `targetType`: The type of recipient to notify\n - `user`: User\n - `team`: Team\n - `issue_owners`: Suggested Assignees\n - `targetDisplay`: null\n - `targetIdentifier`: The id of the user or team to notify. Leave null for Suggested Assignees.\n\n ```json\n {\n \"type\":\"email\",\n \"integrationId\":null,\n \"data\":{},\n \"config\":{\n \"targetType\":\"user\",\n \"targetDisplay\":null,\n \"targetIdentifier\":\"232692\"\n },\n \"status\":\"active\"\n },\n {\n \"type\":\"email\",\n \"integrationId\":null,\n \"data\":{\n \"fallthroughType\":\"ActiveMembers\"\n },\n \"config\":{\n \"targetType\":\"issue_owners\",\n \"targetDisplay\":null,\n \"targetIdentifier\":\"\"}\n ,\n \"status\":\"active\"\n }\n ```\n **Notify on Slack**\n - `targetDisplay`: The name of the channel to notify in.\n `integrationId`: The stringified ID of the integration.\n\n ```json\n {\n \"type\":\"slack\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"\",\n \"targetDisplay\":\"notify-errors\"\n },\n \"integrationId\":\"1\",\n \"data\":{},\n \"status\":\"active\"\n }\n ```\n\n **Notify on PagerDuty**\n - `targetDisplay`: The name of the service to create the ticket in.\n - `integrationId`: The stringified ID of the integration.\n - `data[\"priority\"]`: The severity level for the notification.\n\n ```json\n {\n \"type\":\"pagerduty\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"123456\",\n \"targetDisplay\":\"Error Service\"\n },\n \"integrationId\":\"2345\",\n \"data\":{\n \"priority\":\"default\"\n },\n \"status\":\"active\"\n }\n ```\n\n **Notify on Discord**\n - `targetDisplay`: The name of the service to create the ticket in.\n - `integrationId`: The stringified ID of the integration.\n - `data[\"tags\"]`: Comma separated list of tags to add to the notification.\n\n ```json\n {\n \"type\":\"discord\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"12345\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"1234\",\n \"data\":{\n \"tags\":\"transaction,environment\"\n },\n \"status\":\"active\"\n }\n ```\n\n **Notify on MSTeams**\n - `targetIdentifier` - The integration ID associated with the Microsoft Teams team.\n - `targetDisplay` - The name of the channel to send the notification to.\n - `integrationId`: The stringified ID of the integration.\n ```json\n {\n \"type\":\"msteams\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"19:a4b3kghaghgkjah357y6847@thread.skype\",\n \"targetDisplay\":\"notify-errors\"\n },\n \"integrationId\":\"1\",\n \"data\":{},\n \"status\":\"active\"\n }\n ```\n\n **Notify on OpsGenie**\n - `targetDisplay`: The name of the Opsgenie team.\n - `targetIdentifier`: The ID of the Opsgenie team to send the notification to.\n - `integrationId`: The stringified ID of the integration.\n - `data[\"priority\"]`: The priority level for the notification.\n\n ```json\n {\n \"type\":\"opsgenie\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\"123456-Error-Service\",\n \"targetDisplay\":\"Error Service\"\n },\n \"integrationId\":\"2345\",\n \"data\":{\n \"priority\":\"P3\"\n },\n \"status\":\"active\"\n }\n ```\n\n **Notify on Azure DevOps**\n - `integrationId`: The stringified ID of the integration.\n - `data` - A list of any fields you want to include in the ticket as objects.\n\n ```json\n {\n \"type\":\"vsts\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"2345\",\n \"data\":{...},\n \"status\":\"active\"\n }\n ```\n\n **Create a Jira ticket**\n - `integrationId`: The stringified ID of the integration.\n - `data` - A list of any fields you want to include in the ticket as objects.\n\n ```json\n {\n \"type\":\"jira\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"2345\",\n \"data\":{...},\n \"status\":\"active\"\n }\n ```\n\n **Create a Jira Server ticket**\n - `integrationId`: The stringified ID of the integration.\n - `data` - A list of any fields you want to include in the ticket as objects.\n\n ```json\n {\n \"type\":\"jira_server\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"2345\",\n \"data\":{...},\n \"status\":\"active\"\n }\n ```\n\n **Create a GitHub issue**\n - `integrationId`: The stringified ID of the integration.\n - `data` - A list of any fields you want to include in the ticket as objects.\n\n ```json\n {\n \"type\":\"github\",\n \"config\":{\n \"targetType\":\"specific\",\n \"targetIdentifier\":\",\n \"targetDisplay\":\"\"\n },\n \"integrationId\":\"2345\",\n \"data\":{\n \"additional_fields\": {\n \"assignee\": \"\",\n \"integration\": \"2345\",\n \"labels\": [],\n \"repo\": \"example-repo\",\n },\n \"dynamic_form_fields\": [\n {\n \"choices\": [[\"YourOrg/example-repo\", \"example-repo\"]],\n \"default\": \"YourOrg/example-repo\",\n \"label\": \"GitHub Repository\",\n \"name\": \"repo\",\n \"required\": true\n \"type\": \"select\",\n \"updatesForm\": true,\n \"url\": \"/extensions/github/search/example-repo/1234567/\",\n },\n ],\n },\n \"status\":\"active\"\n }\n ```\n " }, "owner": { "type": "string", "nullable": true, "description": "\n The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.\n\n **User**\n ```json\n \"user:123456\"\n ```\n\n **Team**\n ```json\n \"team:456789\"\n ```\n " } }, "required": [ "name" ] }, "_LegacyBrowserFilter": { "type": "object", "properties": { "active": { "type": "boolean", "description": "Toggle the browser-extensions, localhost, filtered-transaction, or web-crawlers filter on or off." }, "subfilters": { "type": "array", "items": { "enum": [ "ie", "edge", "safari", "firefox", "chrome", "opera", "android", "opera_mini", "ie_pre_9", "ie9", "ie10", "ie11", "opera_pre_15", "android_pre_4", "safari_pre_6", "opera_mini_pre_8", "edge_pre_79" ], "type": "string", "description": "* `ie`\n* `edge`\n* `safari`\n* `firefox`\n* `chrome`\n* `opera`\n* `android`\n* `opera_mini`\n* `ie_pre_9`\n* `ie9`\n* `ie10`\n* `ie11`\n* `opera_pre_15`\n* `android_pre_4`\n* `safari_pre_6`\n* `opera_mini_pre_8`\n* `edge_pre_79`" }, "description": "\nSpecifies which legacy browser filters should be active. Anything excluded from the list will be\ndisabled. The options are:\n- `ie` - Internet Explorer Version 11 and lower\n- `edge` - Edge Version 110 and lower\n- `safari` - Safari Version 15 and lower\n- `firefox` - Firefox Version 110 and lower\n- `chrome` - Chrome Version 110 and lower\n- `opera` - Opera Version 99 and lower\n- `android` - Android Version 3 and lower\n- `opera_mini` - Opera Mini Version 34 and lower\n\nDeprecated options:\n- `ie_pre_9` - Internet Explorer Version 8 and lower\n- `ie9` - Internet Explorer Version 9\n- `ie10` - Internet Explorer Version 10\n- `ie11` - Internet Explorer Version 11\n- `safari_pre_6` - Safari Version 5 and lower\n- `opera_pre_15` - Opera Version 14 and lower\n- `opera_mini_pre_8` - Opera Mini Version 8 and lower\n- `android_pre_4` - Android Version 3 and lower\n- `edge_pre_79` - Edge Version 18 and lower (non Chromium based)\n" } } } }, "securitySchemes": { "auth_token": { "type": "http", "scheme": "bearer" }, "dsn": { "type": "http", "scheme": "DSN" } } }, "servers": [ { "url": "https://{region}.sentry.io/api/0", "variables": { "region": { "default": "us", "description": "The data-storage-location for an organization", "enum": [ "us", "de" ] } } } ], "tags": [ { "name": "Investigations", "description": "Private endpoints for investigation notebooks and agent workflows. Requires the organizations:investigations feature and open organization membership. Notebook and workflow versions are independent optimistic concurrency tokens.", "x-display-description": true }, { "name": "Notebooks", "description": "Endpoints for notebooks, which people and Seer agents write. Requires the organizations:investigations feature and open organization membership. A notebook's version is an optimistic concurrency token.", "x-display-description": true }, { "name": "Teams", "description": "Endpoints for teams", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/teams/&template=api_error_template.md" } }, { "name": "Organizations", "description": "Endpoints for organizations", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/organizations/&template=api_error_template.md" } }, { "name": "Projects", "description": "Endpoints for projects", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/projects/&template=api_error_template.md" } }, { "name": "Events", "x-sidebar-name": "Events & Issues", "description": "Endpoints for events and issues", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/events/&template=api_error_template.md" } }, { "name": "Releases", "description": "Endpoints for releases", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/releases/&template=api_error_template.md" } }, { "name": "Integration", "x-sidebar-name": "Integration Platform", "description": "Endpoints for the integration platform", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/integration-platform/&template=api_error_template.md" } }, { "name": "SCIM", "x-sidebar-name": "SCIM", "description": "System for Cross-Domain Identity Management ([SCIM](http://www.simplecloud.info/)) is a standard implemented by Identity Providers and applications in order to facilitate federated identity management. Through these APIs you can add and delete members as well as teams, and look up which SCIM features, resource types, and schemas Sentry supports. Sentry SaaS customers must be on a Business Plan with SAML2 Enabled. SCIM uses a bearer token for authentication that is created when SCIM is enabled. For how to enable SCIM, see our docs [here](/organization/authentication/sso/#scim-provisioning).\n Sentry's SCIM API does not currently support syncing passwords, or setting any User attributes other than `active`.", "x-display-description": true, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/integration-platform/&template=api_error_template.md" } }, { "name": "Discover", "x-sidebar-name": "Discover & Performance", "description": "Discover and Performance allow you to slice and dice your Error and Transaction events", "x-display-description": true, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/integration-platform/&template=api_error_template.md" } }, { "name": "Explore", "x-sidebar-name": "Explore", "description": "Explore allow you to slice and dice your events", "x-display-description": true, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/integration-platform/&template=api_error_template.md" } }, { "name": "Dashboards", "x-sidebar-name": "Dashboards", "description": "Endpoints for Dashboards", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/integration-platform/&template=api_error_template.md" } }, { "name": "Crons", "x-sidebar-name": "Crons", "description": "Endpoints for Crons", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/integration-platform/&template=api_error_template.md" } }, { "name": "Replays", "x-sidebar-name": "Replays", "description": "Endpoints for Replays", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/integration-platform/&template=api_error_template.md" } }, { "name": "Spike Protection", "x-sidebar-name": "Spike Protection Notifications", "description": "Endpoints for Spike Protection Notifications", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/integration-platform/&template=api_error_template.md" } }, { "name": "Monitors", "x-sidebar-name": "Monitors & Alerts", "description": "Endpoints for Monitors and Alerts", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/monitors/&template=api_error_template.md" } }, { "name": "Integrations", "x-sidebar-name": "Integrations", "description": "Endpoints for Integrations", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/integration-platform/&template=api_error_template.md" } }, { "name": "Environments", "x-sidebar-name": "Environments", "description": "Endpoints for Environments", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/integration-platform/&template=api_error_template.md" } }, { "name": "Users", "x-sidebar-name": "Users", "description": "Endpoints for Users", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/integration-platform/&template=api_error_template.md" } }, { "name": "Seer", "description": "Endpoints for Seer features", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/seer/&template=api_error_template.md" } }, { "name": "Mobile Builds", "description": "Endpoints for mobile build analysis", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/organizations/preprodartifacts/size-analysis/&template=api_error_template.md" } }, { "name": "Snapshots", "description": "Endpoints for snapshot testing", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/snapshots/&template=api_error_template.md" } }, { "name": "Profiling", "description": "Endpoints for retrieving profiling data, flamegraphs, and profile chunks", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/profiling/&template=api_error_template.md" } }, { "name": "Flags", "description": "Endpoints for retrieving feature flag change logs", "x-display-description": false, "externalDocs": { "description": "Found an error? Let us know.", "url": "https://github.com/getsentry/sentry-docs/issues/new/?title=API%20Documentation%20Error:%20/api/flags/&template=api_error_template.md" } } ] }