---
title: "Expire stale pending requests"
method: POST
path: "/api/v1/hitl/expire"
tags: ["HITL"]
---

# Expire stale pending requests

`POST /api/v1/hitl/expire`

## Request

- Base URL: `https://agent.getaxonflow.com`
- URL: `https://agent.getaxonflow.com/api/v1/hitl/expire`
- Auth: none declared. Required headers: `Authorization`
- TypeScript: <https://skmtc.dev/getaxonflow/apis/axonflow-agent-api/docs/api/v1/hitl/expire/post.ts> (a function with typed inputs; its response is checked against the schema)

Sweeps pending requests past their `expires_at` into the `expired`
state and returns the count. Intended for schedulers/ops automation;
the platform also expires lazily.

## Headers

- `Authorization` string, required

## Response `200`

Sweep result

- object
  - `success` boolean
  - `data` object
    - `expired_count` integer

---

[API](https://skmtc.dev/getaxonflow/apis/axonflow-agent-api.md) - [All operations](https://skmtc.dev/getaxonflow/apis/axonflow-agent-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getaxonflow/apis/axonflow-agent-api/revisions/34d30fcb7fa1?raw)
