---
title: "Rescan Agent"
method: POST
path: "/api/agents/{path}/rescan"
tags: ["Agent Management"]
---

# Rescan Agent

`POST /api/agents/{path}/rescan`

Trigger a manual security scan for an A2A agent.

Initiates a new security scan for the specified agent and returns
the results. This endpoint is useful for re-scanning agents after
updates or for on-demand security assessments.

**Authentication:** JWT Bearer token or session cookie
**Authorization:** Requires admin privileges

**Path Parameters:**
- `path` (required): Agent path (e.g., /code-reviewer)

**Response:**
Returns the newly generated security scan results.

**Example:**
```bash
curl -X POST http://localhost/api/agents/code-reviewer/rescan \
  --cookie-jar .cookies --cookie .cookies
```

## Path parameters

- `path` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/ascending-llc/apis/mcp-gateway-registry.md) · [All operations](https://skmtc.net/ascending-llc/apis/mcp-gateway-registry/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ascending-llc/mcp-gateway-registry/versions/31381943e2e7/schema)
