Mend API (3.0.1)
Mend's enhanced SCA 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 App.
- Improved security with a JWT token per organization, which expires every 30 minutes.
- Added scalability with support for pagination, filtering and sorting search results.
- 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.
org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: Integrate tab > API Key).
library UUID (get a project's library by running Library - Project > Get Project Libraries.
- Generated server url
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/libraries/{libraryUuid}/customAttributes/{attributeUuid}/value
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
{ "value": "Custom attribute value" }
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }
Filter your search to return items whose property has a specific value. Use the syntax: property:operation:value where a colon (:) separates between property, operation and value.
- Property: the name of the property of the item
- Operation:
- equals - true if the value is identical to this value.
- Value: the value of the property.
- context:[equals]:value
- Generated server url
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/customAttributes
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payload
OK
- totalItems: The total count of data points returned in an API response.
- isLastPage: Defines whether the current page represents the conclusion of the API response. When “true”, this signifies you are viewing the last page of the API response. When “false”, this indicates there are further pages remaining.
{ "additionalData": { "totalItems": "422", "isLastPage": "true" }, "supportToken": "1171c60d", "retVal": [ { … } ] }