---
title: "Agent-callable security scan and fix"
method: POST
path: "/api/security-scan/agent"
tags: ["Admin"]
---

# Agent-callable security scan and fix

`POST /api/security-scan/agent`

## Request body

- object
  - `action` 'scan' | 'fix' | 'scan-and-fix', required
  - `fixScope` 'safe' | 'safe+restart' | 'all'
  - `ids` string[]
  - `force` boolean
  - `dryRun` boolean

## Response `200`

Scan and fix results

- object

## Other responses

- `400` — Invalid request
- `401` — Authentication required
- `403` — Insufficient permissions

## Changes

- **2026-03-21** `6f26b67f7a0a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/builderz-labs/apis/mission-control-api/changes/api/security-scan/agent/post.md)

---

[API](https://skmtc.dev/builderz-labs/apis/mission-control-api.md) · [All operations](https://skmtc.dev/builderz-labs/apis/mission-control-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/builderz-labs/mission-control-api/revisions/751f6c65ac77/schema)
