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.
- Generated server url
https://baseUrl/api/v3.0/orgs/{orgUuid}/projects/{projectUuid}/scans/{scanUuid}/tags
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
application/json
{ "key": "Tag Key A", "value": "Tag Value A" }
Response
application/json
{ "supportToken": "1171c60d", "response": { "key": "commit", "value": "123abc", "displayName": "commit:123abc", "createdAt": "2019-08-24T14:15:22Z" } }
- Generated server url
https://baseUrl/api/v3.0/orgs/{orgUuid}/projects/{projectUuid}/scans/{scanUuid}/tags
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
application/json
{ "key": "Tag Key A", "value": "Tag Value A" }
Response
application/json
{ "supportToken": "1171c60d", "response": { "key": "commit", "value": "123abc", "displayName": "commit:123abc", "createdAt": "2019-08-24T14:15:22Z" } }
- Generated server url
https://baseUrl/api/v3.0/orgs/{orgUuid}/projects/{projectUuid}/scans/{scanUuid}
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payload
Response
application/json
{ "supportToken": "1171c60d", "response": { "uuid": "string", "name": "string", "engine": "UNIFIED", "status": "RUNNING", "projectId": 0, "productId": 0, "domainId": 0, "projectUuid": "string", "processUuid": "string", "hasViolations": true, "startTime": "2019-08-24T14:15:22Z", "endTime": "2019-08-24T14:15:22Z", "lastModified": "2019-08-24T14:15:22Z", "configurationName": "string", "reference": "string" } }
- Generated server url
https://baseUrl/api/v3.0/orgs/{orgUuid}/projects/{projectUuid}/scans/{scanUuid}
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
application/json
{ "status": "PLACE_HOLDER_01" }
Response
application/json
{ "supportToken": "1171c60d", "response": { "uuid": "string", "name": "string", "engine": "UNIFIED", "status": "RUNNING", "projectId": 0, "productId": 0, "domainId": 0, "projectUuid": "string", "processUuid": "string", "hasViolations": true, "startTime": "2019-08-24T14:15:22Z", "endTime": "2019-08-24T14:15:22Z", "lastModified": "2019-08-24T14:15:22Z", "configurationName": "string", "reference": "string" } }
- Generated server url
https://baseUrl/api/v3.0/orgs/{orgUuid}/projects/{projectUuid}/scans/{scanUuid}/summary
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payload
Response
application/json
{ "supportToken": "1171c60d", "response": { "uuid": "string", "name": "string", "processUuid": "string", "scanTime": "2019-08-24T14:15:22Z", "scanStatus": "string", "engine": "UNIFIED", "scanDuration": "string", "projectName": "string", "projectUuid": "string", "tags": [ … ], "applicationName": "string", "applicationUuid": "string", "reference": "string", "statistics": { … } } }
- Generated server url
https://baseUrl/api/v3.0/orgs/{orgUuid}/projects/{projectUuid}/scans
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payload
Response
application/json
{ "additionalData": { "totalItems": "422", "next": "http://someUrl?cursor=3", "cursor": 3 }, "supportToken": "1171c60d", "response": [ { … } ] }