---
title: "Model Dependency Doctor: scan submitted file contents for model references — bay.lock plan + risk annotations (revoked/unpinned/unverifiable) in GitHub-Checks shape."
method: POST
path: "/api/scan/model-refs"
tags: ["Agent Docs"]
---

# Model Dependency Doctor: scan submitted file contents for model references — bay.lock plan + risk annotations (revoked/unpinned/unverifiable) in GitHub-Checks shape.

`POST /api/scan/model-refs`

## Request

- Base URL: `https://huggingbay.xyz`
- URL: `https://huggingbay.xyz/api/scan/model-refs`
- Auth: none declared

Model Dependency Doctor: scan submitted file contents for model references — bay.lock plan + risk annotations (revoked/unpinned/unverifiable) in GitHub-Checks shape.

**Inputs.** No path or query fields are required. The request body schema lists accepted fields and required values.

**Outputs.** See each status below for its media type, schema and headers. A missing record or unavailable capability is not a successful empty result.

**Errors.** API JSON failures use the documented response schema. Read code, message and next; retry only when the response allows it. Auth, invalid input and missing records need a caller change.

**Rate limits.** Write and protocol operations can have separate route-specific limits. Read Retry-After and retry_after_s when present; do not infer a write allowance from the public read budget.

**Example setup.** This example is not executed by documentation checks. Review the operation and obtain any required user consent before sending it.

## Request body

- object
  - `files` object[]
    - `path` string
    - `content` string

## Response `200`

Scan + lock plan + checks

- object: Scan + lock plan + checks. Fields can vary; no stronger field guarantee is specified for this operation.

## Other responses

- `400`: Missing files

---

[API](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api.md) · [All operations](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api/revisions/865eb0f1b6ef?raw)
