---
title: "Get Mend library suggestions for source files at project level"
method: POST
path: "/api/v3.0/projects/{projectUuid}/dependencies/sourceFiles/matchSuggestions"
tags: ["Dependencies Source Files"]
---

# Get Mend library suggestions for source files at project level

`POST /api/v3.0/projects/{projectUuid}/dependencies/sourceFiles/matchSuggestions`

Returns Mend library suggestions for the specified source file UUIDs. Request body requires: sourceFileUuids (array), recommendedForAllFiles (boolean). Supports same search filters as searchForMatch: date, license, name, owner, version.

## Path parameters

- `projectUuid` string, required

## Request body

- LibraryMatchSuggestionsRequestDTOV3MatchSuggestions — Request payload for retrieving Mend library suggestions for source files. Requires sourceFileUuids and recommendedForAllFiles. Medium privilege users can optionally specify repository and version fields for more targeted suggestions.
  - `sourceFileUuids` string[], required
  - `recommendedForAllFiles` boolean, required — Flag indicating whether to get recommendations that apply to all specified files. Required field.
  - `applicationUuids` string[]

## Response `200`

OK

- DWRResponseV3CollectionSourceLibraryResponseDTOMatchSuggestions
  - `supportToken` string
  - `response` SourceLibraryResponseDTOMatchSuggestions[]
    - `name` string — Name of the library
    - `sha1` string — SHA-1 hash of the library
    - `licenses` LiteLicenseDTOMatchSuggestions[] — Collection of licenses associated with this library
      - `name` string, required
      - `severity` string
    - `version` string — Version of the library
    - `owner` string — Owner/organization of the library
    - `url` string — URL to the library source
    - `date` string, date-time — Release date of the library
    - `nonOfficialRelease` boolean — Indicates whether this is a non-official release
    - `matchSuggestionId` string, nullable — Base64 encoded match suggestion ID used for remapping operations.

## Other responses

- `400` — Bad Request
- `403` — Forbidden

---

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