---
title: "Unban All Checks For Agent Run"
method: POST
path: "/v1/organizations/{org_id}/agent/run/unban"
tags: ["agents", "agents", "agents"]
---

# Unban All Checks For Agent Run

`POST /v1/organizations/{org_id}/agent/run/unban`

Unban all checks for a PR.

This endpoint:
1. Removes the ban flag from the PR to allow future CI/CD check suite events to be processed
2. Handles both URL-based bans and parent-agent-run-based bans

## Path parameters

- `org_id` integer, required

## Headers

- `authorization` unknown

## Request body

- StopAgentRunInput
  - `agent_run_id` integer, required
  - `before_card_order_id` string, nullable — Kanban order key of the card that should come before this agent run in the CANCELLED column
  - `after_card_order_id` string, nullable — Kanban order key of the card that should come after this agent run in the CANCELLED column

## Response `200`

Successful Response

- unknown

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `429` — Too Many Requests

## Changes

- **2025-09-19** `da85cdc15834` — 2 info
  - added the new optional request property `after_card_order_id`
  - added the new optional request property `before_card_order_id`
- **2025-08-15** `69bfde65bf75` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/codegen-sh/apis/developer-api/changes/v1/organizations/:org_id/agent/run/unban/post.md)

---

[API](https://skmtc.dev/codegen-sh/apis/developer-api.md) · [All operations](https://skmtc.dev/codegen-sh/apis/developer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/codegen-sh/developer-api/revisions/e68a3133f727/schema)
