Mend's enhanced API enables automation of workflows in a REST compliant format. The API features:
If you have a dedicated instance of Mend, contact your Mend representative to access this API on your instance.
The "accessToken" in the request body is used only when refreshing an existing token. Sending a valid JWT in the body allows the system to generate a new access token more efficiently. This method should not be used when initially calling the endpoint to generate a new access token.
https://baseUrl/api/v3.0/login/accessToken
{ "accessToken": "string" }
{ "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 } }
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.
https://baseUrl/api/v3.0/login
{ "email": "jon.smith@mail.com", "userKey": "***********" }
{ "supportToken": "1171c60d", "response": { "userUuid": "string", "userName": "string", "email": "string", "refreshToken": "string", "jwtTTL": 0, "systemAccess": true, "serviceSystemAccess": true, "sessionStartTime": 0, "systemAccessStartTime": 0 } }