Returns an organization as identified by its token.
Mend API (2.0)
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 10 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.
Note: To help you get started with the Mend SCA API 2.0, we recommend reviewing our onboarding guide -> Getting Started with Mend SCA API 2.0. This resource covers initial setup, authentication instructions, and helpful tips to help you successfully begin working with the Mend SCA API 2.0. If you have a dedicated instance of Mend, contact your Mend representative to access this API on your instance.
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payload{ "supportToken": "1171c60d", "retVal": { "uuid": "123e4567-e89b-12d3-a456-426655440000", "name": "Context A" } }
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
{ "name": "Entity A" }
{ "supportToken": "1171c60d", "retVal": { "uuid": "123e4567-e89b-12d3-a456-426655440000", "name": "Organization A" } }
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/projects
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payloadOK
- 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": [ { … } ] }
Request
Creates a new project within a new product. If project name exists will return existing project
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/projects
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
{ "projectName": "Project A", "projectDescription": "Description for project", "productName": "Product A" }
{ "additionalData": { "created": "true" }, "supportToken": "1171c60d", "retVal": { "project": { … }, "product": { … } } }
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/products
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payloadOK
- 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": [ { … } ] }
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/products
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
{ "productName": "Product A" }
{ "additionalData": { "created": "true" }, "supportToken": "1171c60d", "retVal": { "uuid": "123e4567-e89b-12d3-a456-426655440000", "name": "Product A" } }
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payload{ "supportToken": "1171c60d", "retVal": [ { … } ] }
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/productEntities
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payloadOK
- 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": [ { … } ] }
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/entities
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payloadOK
- 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": [ { … } ] }
Request
You can access a different organization by asking for a new JWT token for the new org. The previous JWT is still valid for the previous org until it expires. All JWT tokens are valid for 30 minutes.
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/changeOrganization/{otherOrgToken}
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payload{ "supportToken": "1171c60d", "retVal": { "correlationId": "string", "userUuid": "string", "userName": "string", "email": "string", "refreshToken": "string", "jwtToken": "string", "orgName": "Organization A", "orgUuid": "123e4567-e89b-12d3-a456-426655440000" } }