---
title: "Shop Mentions Search"
method: GET
path: "/api/v1/agents/shop/mentions"
tags: ["v1", "Agent Chat", "agent-chat"]
---

# Shop Mentions Search

`GET /api/v1/agents/shop/mentions`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/agents/shop/mentions`
- Auth: none declared

Search projects, quotes, equipment, and personnel by name for @-mention
typeahead. Returns discrete id + display label per result so the client
can insert a canonical reference.

JEEVY-667 scope-routing R0 (SPEC-667-scope-routing.md F3): projects and
quotes are filtered through ``visible_ids`` with the SAME full-scope
``ctx`` the shop agent's own search tools use
(``core.agents.shop.tools.search._only_visible``'s pattern) -- this is
a REST endpoint, not a governed tool call, so it never went through
that filter before; a floor viewer or a non-US viewer saw every
project/quote title and number in the shop, including export-controlled,
deleted, or (for a floor viewer) unassigned ones. Equipment and
personnel are NOT entities ``visible_ids`` models at all (no
``ENTITY_TABLES`` entry) -- they're shop-wide roster/asset data with no
row-level visibility rule anywhere in this codebase (every other
equipment/personnel list call site is unscoped the same way), so row-
level filtering never applies to them, by design (no such rule exists).

JEEVY-2077: the SEPARATE, narrower gap R0 found on this same endpoint
-- equipment/personnel were never checked against the viewer's MODULE
permissions at all (``require_equipment_view_permission``/
``require_personnel_view_permission``'s own ``check_permission``
gate, enforced on every OTHER equipment/personnel REST route, but
this one has no FastAPI dependency to run it since it also serves
projects/quotes a floor viewer with neither module can still see). A
viewer whose role excludes a module now gets an empty list for that
key, same as a search with no matches.

## Query parameters

- `q` string: Search query for project/quote name/number, equipment name, or personnel name.

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
