0

Retrieve seer issue fix state

by
Published Oct 17, 2025

Retrieve the current detailed state of an issue fix process for a specific issue including: - Current status - Steps performed and their outcomes - Repository information and permissions - Root Cause Analysis - Proposed Solution - Generated code changes This endpoint although documented is still experimental and the payload may change in the future.

Script sentry Verified

The script

Submitted by hugo697 Bun
Verified 235 days ago
1
//native
2
/**
3
 * Retrieve seer issue fix state
4
 * Retrieve the current detailed state of an issue fix process for a specific issue including:
5

6
- Current status
7
- Steps performed and their outcomes
8
- Repository information and permissions
9
- Root Cause Analysis
10
- Proposed Solution
11
- Generated code changes
12

13
This endpoint although documented is still experimental and the payload may change in the future.
14
 */
15
export async function main(auth: RT.Sentry, issue_id: string) {
16
	const url = new URL(
17
		`https://${auth.region}.sentry.io/api/0/organizations/${auth.organizationSlug}/issues/${issue_id}/autofix/`
18
	)
19

20
	const response = await fetch(url, {
21
		method: 'GET',
22
		headers: {
23
			Authorization: 'Bearer ' + auth.token
24
		},
25
		body: undefined
26
	})
27
	if (!response.ok) {
28
		const text = await response.text()
29
		throw new Error(`${response.status} ${text}`)
30
	}
31
	return await response.json()
32
}
33