---
title: "POST /v1/workspaces/{workspaceId}/triage-rules/run-past-mail"
method: POST
path: "/v1/workspaces/{workspaceId}/triage-rules/run-past-mail"
---

# POST /v1/workspaces/{workspaceId}/triage-rules/run-past-mail

`POST /v1/workspaces/{workspaceId}/triage-rules/run-past-mail`

## Request

- Base URL: `https://api.bangermail.com`
- URL: `https://api.bangermail.com/v1/workspaces/{workspaceId}/triage-rules/run-past-mail`
- Auth: HTTP bearer

## Request body

- object
  - `mailbox_id` string, uuid, required
  - `rule_ids` string[]
  - `days` integer
  - `include_other_actions` boolean: Also archive

## Response `202`

Successful response.

- object
  - `data` object, required
    - `queued_threads` integer, required
    - `days` integer, required
    - `labels_only` boolean, required

---

[API](https://skmtc.dev/bangermail/apis/banger-api.md) · [All operations](https://skmtc.dev/bangermail/apis/banger-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bangermail/apis/banger-api/revisions/a149909267f9?raw)
