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/login/accessToken
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
application/json
{ "accessToken": "string" }
Response
application/json
{ "supportToken": "1171c60d", "response": { "userUuid": "string", "username": "string", "email": "string", "jwtToken": "string", "tokenType": "string", "orgName": "string", "orgUuid": "string", "accountName": "string", "accountUuid": "string", "tokenTTL": 0, "systemAccess": true, "serviceSystemAccess": true, "sessionStartTime": 0, "systemAccessStartTime": 0 } }
Bodyapplication/jsonrequired
Equivalent to a personal access token. Avoid pasting as plain text where it might be compromised. For a service user (recommended), you can find the user key in the Mend SCA App in Admin > Users. Learn more. For local testing purposes, you could also use one of your own personal user keys from your user profile page in the Mend SCA App.
Example: "***********"
- Generated server url
https://baseUrl/api/v3.0/login
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
application/json
{ "email": "jon.smith@mail.com", "userKey": "***********" }
Response
application/json
{ "supportToken": "1171c60d", "response": { "userUuid": "string", "userName": "string", "email": "string", "refreshToken": "string", "jwtTTL": 0, "systemAccess": true, "serviceSystemAccess": true, "sessionStartTime": 0, "systemAccessStartTime": 0 } }