---
title: "List autofix history"
method: GET
path: "/autofix/history"
---

# List autofix history

`GET /autofix/history`

Returns a paginated list of autofix tasks in your account. Use the header X-Has-Next-Page for pagination.

## Query parameters

- `page` integer
- `per_page` integer

## Response `200`

A list of autofix history items

- object[]
  - `id` integer, required — The autofix task ID.
  - `type` 'dependency' | 'container' | 'pentest' | 'code_audit' | 'iac' | 'sast' | 'zen' | 'lockfile', required — The type of autofix task.
  - `status` 'creating' | 'preview_available' | 'preview_failed' | 'autofix_failed' | 'pr_open' | 'pr_merged' | 'pr_closed' | 'no_fix', required — The current status of the autofix task.
  - `triggered_by` object, required
    - `type` 'automatic' | 'user', required — Whether the autofix was triggered automatically by Aikido or by a user.
    - `user_id` integer, required — The Aikido user ID of the user who triggered the autofix. -1 for automatic triggers or unknown users.
  - `autofix_target` object, required
    - `code_repo_id` union, required — The code repository ID in Aikido.
      - integer
      - string
    - `location` string, required — The file path or lockfile location targeted by the autofix.
    - `title` string, required — A human readable title describing the autofix target.
  - `triggered_at` integer, required — Unix timestamp when the autofix task was triggered.
  - `finished_at` integer, nullable, required — Unix timestamp when the autofix task finished. Null while the task is still running.
  - `pull_request` object, nullable, required — The pull request created by the autofix. Can be null if no pull request was created.
    - `url` string, required — The URL of the pull request created by the autofix.

---

[API](https://skmtc.net/aikido/apis/authorization.md) · [All operations](https://skmtc.net/aikido/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aikido/authorization/versions/5445e7c21137/schema)
