---
title: "Take the next open incident (the fixer)"
method: POST
path: "/v1/admin/incidents/next"
tags: ["Admin"]
---

# Take the next open incident (the fixer)

`POST /v1/admin/incidents/next`

## Request

- Base URL: `http://api.technooptimist.io`
- URL: `http://api.technooptimist.io/v1/admin/incidents/next`
- Auth: HTTP bearer

Atomically marks the oldest `new` incident of the lane as `seen` and returns it with samples; `{ incident: null }` when there is nothing to do. `lane=tech` (default: the Opus fixer) or `lane=content` (the content bot: wrong data, routine 'needs review' reports).

## Query parameters

- `lane` 'tech' | 'content'

## Headers

- `x-routine-name` string: Name of the routine making the write; recorded as `routine:<name>` in the audit log.

## Response `200`

Next

- object
  - `incident` object, nullable, required
  - `samples` Incident[], required

## Other responses

- `401`: Missing or invalid credentials
- `403`: Credential lacks the required scope

---

[API](https://skmtc.dev/technooptimist/apis/the-techno-optimist-api.md) · [All operations](https://skmtc.dev/technooptimist/apis/the-techno-optimist-api/llms.txt) · [OpenAPI document](https://skmtc.dev/technooptimist/apis/the-techno-optimist-api/revisions/b7bcde6a0f30?raw)
