v1

latestOpenAPI 3.0.3Apache 2.02026-07-142201861.5 MB
Seer

Start Seer Issue Fix

Trigger a Seer Issue Fix run for a specific issue.

The issue fix process can:

  • Identify the root cause of the issue
  • Propose a solution
  • Generate code changes
  • Create a pull request with the fix

The process runs asynchronously, and you can get the state using the GET endpoint.

post/api/0/organizations/{organization_id_or_slug}/issues/{issue_id}/autofix/

Path parameters

organization_id_or_slugstring required

The ID or slug of the organization the resource belongs to.

issue_idstring required

The ID of the issue you'd like to query.

Request body

step'root_cause' | 'solution' | 'code_changes' | 'pr_iteration' | 'open_pr' | 'coding_agent_handoff'

Which autofix step to run.

  • root_cause
  • solution
  • code_changes
  • pr_iteration
  • open_pr
  • coding_agent_handoff
stopping_point'root_cause' | 'solution' | 'code_changes' | 'open_pr'

Where the issue fix process should stop. If not provided, will run to root cause.

  • root_cause
  • solution
  • code_changes
  • open_pr
run_idinteger

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_idstring uuid

Existing run's UUID to continue. Preferred over run_id, and takes precedence when both are given.

integration_idinteger

Coding agent integration ID. Required for coding_agent_handoff step (unless provider is specified).

providerstring

Coding agent provider (e.g., 'github_copilot'). Alternative to integration_id for user-authenticated providers.

user_contextstring

Optional user context to append to the step prompt.

repo_namestring

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_indexinteger

Block index to insert at. When provided, truncates blocks after this point for retry-from-step.

referrerstring

Referrer identifying where the issue fix was triggered from.

Response

run_idinteger required
sentry_run_idstring nullable required