UUID of the project
- Remap source files at application level
Mend API (3.0)
Mend's enhanced API enables automation of workflows in a REST compliant format. The API features:
- Access for any user with Mend credentials, via a user key available in the user's profile page in the Mend Platform.
- Improved security with a JWT token per organization, which expires every 30 minutes.
- Added scalability with support for cursor pagination and limiting results size.
- Broader functionality available programmatically.
- New standard API documentation for easy navigation and search.
If you have a dedicated instance of Mend, contact your Mend representative to access this API on your instance.
Note: To help you get started with the Mend API 3.0, we recommend reviewing our onboarding guide -> Getting Started with API 3.0. This resource covers initial setup, authentication instructions, and helpful tips to help you successfully begin working with the Mend API 3.0.
Request
Returns an inventory list of the source files associated with each library in a project. Supports filtering by library UUID using the search parameter. Example: ?search=libraryUuid==b366b0ef-b211-4c37-a47c-0077e4de709f
- Generated server urlhttps://baseUrl/api/v3.0/projects/{projectUuid}/dependencies/sourceFiles/inventory
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payload{ "additionalData": { "totalItems": "422", "next": "http://someUrl?cursor=3", "cursor": 3 }, "supportToken": "1171c60d", "response": [ { … } ] }
Request
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.
Request body containing source file UUIDs and optional filters. Fields: sourceFileUuids (required, array of UUIDs), recommendedForAllFiles (required, boolean).
- Generated server urlhttps://baseUrl/api/v3.0/projects/{projectUuid}/dependencies/sourceFiles/matchSuggestions
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
{ "sourceFileUuids": [ "123e4567-e89b-12d3-a456-426655440000" ], "recommendedForAllFiles": false }
{ "supportToken": "1171c60d", "response": [ { … } ] }
Request
Returns library match suggestions from Mend based on manual search criteria. Uses V3 MQL search format. Available search filters: date:between:date1,date2 (e.g., between:2019-05-01,2019-06-01), license:[like|regex]:value, name:[like|equals|regex]:value, owner:like:value, version:like:value. Example: ?search=name==openssl.
- Generated server urlhttps://baseUrl/api/v3.0/projects/{projectUuid}/dependencies/sourceFiles/searchForMatch
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payload{ "supportToken": "1171c60d", "response": [ { … } ] }
Request
Returns a list of libraries together with the location of their source files. Supports filtering by library UUID using the search parameter. Example: ?search=libraryUuid==b366b0ef-b211-4c37-a47c-0077e4de709f
- Generated server urlhttps://baseUrl/api/v3.0/applications/{applicationUuid}/dependencies/sourceFiles/inventory
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payload{ "additionalData": { "totalItems": "422", "next": "http://someUrl?cursor=3", "cursor": 3 }, "supportToken": "1171c60d", "response": [ { … } ] }
Request
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.
Request body containing source file UUIDs and optional filters. Fields: sourceFileUuids (required, array of UUIDs), recommendedForAllFiles (required, boolean).
- Generated server urlhttps://baseUrl/api/v3.0/applications/{applicationUuid}/dependencies/sourceFiles/matchSuggestions
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
{ "sourceFileUuids": [ "123e4567-e89b-12d3-a456-426655440000" ], "recommendedForAllFiles": false }
{ "supportToken": "1171c60d", "response": [ { … } ] }
Request
Returns library match suggestions from Mend based on manual search criteria. Uses V3 MQL search format. Available search filters: date:between:date1,date2 (e.g., between:2019-05-01,2019-06-01), license:[like|regex]:value, name:[like|equals|regex]:value, owner:like:value, version:like:value. Example: ?search=name==openssl.
- Generated server urlhttps://baseUrl/api/v3.0/applications/{applicationUuid}/dependencies/sourceFiles/searchForMatch
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payload{ "supportToken": "1171c60d", "response": [ { … } ] }
Request
Remaps the specified source files to a target library for the specified application(s). This operation runs asynchronously and returns 202 Accepted with async process status. Requires exactly one of: targetLibraryUuid OR matchSuggestionId (not both, not neither). Request body fields: applicationUuids (required, array), sourceFileUuids (required, array), targetLibraryUuid (conditional), matchSuggestionId (conditional), comment (optional), sendEmailNotification (optional, boolean).
Request body containing remapping details. Fields: applicationUuids (required, array), sourceFileUuids (required, array), targetLibraryUuid (conditional, UUID string - use if remapping from search for a match), matchSuggestionId (conditional, base64 string - use if remapping from match suggestion), comment (optional, string), sendEmailNotification (optional, boolean). IMPORTANT: Provide exactly one of targetLibraryUuid OR matchSuggestionId, not both.
The UUID of the library to which source files should be remapped. Exactly one of targetLibraryUuid or matchSuggestionId must be provided
The Id of the library to which source files should be remapped. Exactly one of targetLibraryUuid or matchSuggestionId must be provided
- Generated server urlhttps://baseUrl/api/v3.0/orgs/{orgUuid}/applications/dependencies/sourceFiles/remapping
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
{ "applicationUuids": [ "123e4567-e89b-12d3-a456-426655440000" ], "targetLibraryUuid": "123e4567-e89b-12d3-a456-426655440000", "matchSuggestionId": "ZWJlMTZhZjYtMmE2YS00MWQ1LWFiNTQtYWQ3YWE3OWZhNzFl", "sourceFileUuids": [ "123e4567-e89b-12d3-a456-426655440000" ], "comment": "string", "sendEmailNotification": true }
{ "uuid": "caf69794-9882-4b55-82db-6b6da4fe2a92", "status": "PENDING", "userEmail": "user@example.com", "requestToken": "2cd6a43b" }
Request
Remaps the specified source files to a target library across the entire organization. This operation runs asynchronously and returns 202 Accepted with async process status. Requires exactly one of: targetLibraryUuid OR matchSuggestionId (not both, not neither). Request body fields: sourceFileUuids (required, array), targetLibraryUuid (conditional), matchSuggestionId (conditional), comment (optional), sendEmailNotification (optional, boolean).
Request body containing remapping details. Fields: sourceFileUuids (required, array), targetLibraryUuid (conditional, UUID string - use if remapping from search for a match), matchSuggestionId (conditional, base64 string - use if remapping from match suggestion), comment (optional, string), sendEmailNotification (optional, boolean). IMPORTANT: Provide exactly one of targetLibraryUuid OR matchSuggestionId, not both.
The UUID of the library to which source files should be remapped. Exactly one of targetLibraryUuid or matchSuggestionId must be provided
The Id of the library to which source files should be remapped. Exactly one of targetLibraryUuid or matchSuggestionId must be provided
- Generated server urlhttps://baseUrl/api/v3.0/orgs/{orgUuid}/dependencies/sourceFiles/remapping
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
{ "targetLibraryUuid": "123e4567-e89b-12d3-a456-426655440000", "matchSuggestionId": "ZWJlMTZhZjYtMmE2YS00MWQ1LWFiNTQtYWQ3YWE3OWZhNzFl", "sourceFileUuids": [ "123e4567-e89b-12d3-a456-426655440000" ], "comment": "string", "sendEmailNotification": true }
{ "uuid": "caf69794-9882-4b55-82db-6b6da4fe2a92", "status": "PENDING", "userEmail": "user@example.com", "requestToken": "2cd6a43b" }