# Mend.io

> Read Mend.io projects, scans, open-source and code findings, licenses and policy violations, review code findings, and manage labels and groups.

App · 23 actions. Web page: https://docs.lodol.com/docs/integrations/mend

## Actions

### Add project label

Put a label on a project.

**Inputs**

- Project (`project_uuid`, text, required): The project.
- Namespace (`namespace`, text, required): The label's namespace.
- Value (`value`, text, required): The label's value.

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "response": {
      "message": "example"
    },
    "supportToken": "example"
  }
}
```

### Create group

Create a group of users.

**Inputs**

- Name (`name`, text, required): The group's name.
- Description (`description`, text, required): What the group is for.

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "response": {
      "description": "example",
      "name": "example",
      "roles": [
        {
          "role": "example",
          "scopeName": "example",
          "scopeType": "example",
          "scopeUuid": "example"
        }
      ],
      "userCount": 1,
      "users": 1,
      "uuid": "example"
    },
    "supportToken": "example"
  }
}
```

### Create label

Add a label (a namespace and value, such as team:payments) to the organization.

**Inputs**

- Namespace (`namespace`, text, required): The label's namespace, such as team.
- Value (`value`, text, required): The label's value, such as payments.

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "response": {
      "message": "example"
    },
    "supportToken": "example"
  }
}
```

### Delete group

Delete a group.

**Inputs**

- Group (`group_uuid`, text, required): The group.

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "response": {
      "message": "example"
    },
    "supportToken": "example"
  }
}
```

### Delete label

Remove a label from the organization.

**Inputs**

- Label (`label_uuid`, text, required): The label.

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "response": {
      "message": "example"
    },
    "supportToken": "example"
  }
}
```

### Get scan summary

Read a scan's status, engine and statistics.

**Inputs**

- Project (`project_uuid`, text, required): The project.
- Scan (`scan_uuid`, text, required): The scan of the chosen project.

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "response": {
      "agentName": "example",
      "agentVersion": "example",
      "applicationName": "example",
      "applicationUuid": "example",
      "configurationName": "example",
      "engine": "example",
      "name": "example",
      "projectName": "example",
      "projectUuid": "example",
      "reference": "example",
      "scanDuration": "example",
      "scanMode": "example",
      "scanStatus": "example",
      "scanTime": "example",
      "statistics": {},
      "tags": [
        {
          "displayName": "example",
          "key": "example",
          "value": "example"
        }
      ],
      "triggeredBy": "example",
      "uuid": "example"
    },
    "supportToken": "example"
  }
}
```

### List activity log

List the organization's activity and audit log.

**Inputs**

- Start date (`start_date`, date): The first day of the time window.
- Days (`days`, number): How many days the window covers. From 1 to 365.
- Engines (`engine_types`, list): Only events of these engines. One or more of: `SCA`, `SAST`, `IMG`, `IAC`, `AI`, `PLATFORM`.
- Limit (`limit`, number): Most records to return (Mend's default is 50). From 1 to 10000.
- Cursor (`cursor`, text): Where to carry on from: the cursor of the previous page (additionalData.cursor).

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "actorType": "example",
        "applicationName": "example",
        "applicationUuid": "example",
        "category": "example",
        "changeType": "example",
        "engineType": "example",
        "entityName": "example",
        "entityType": "example",
        "entityUuid": "example",
        "event": "example",
        "eventType": "example",
        "projectUuid": "example",
        "scopeName": "example",
        "scopeType": "example",
        "timestamp": "example",
        "userName": "example",
        "uuid": "example"
      }
    ],
    "supportToken": "example"
  }
}
```

### List application scans

List the scans of every project in an application.

**Inputs**

- Application (`application_uuid`, text, required): The application.
- Limit (`limit`, number): Most records to return (Mend's default is 50). From 1 to 10000.
- Cursor (`cursor`, text): Where to carry on from: the cursor of the previous page (additionalData.cursor).

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "agentName": "example",
        "agentVersion": "example",
        "applicationName": "example",
        "applicationUuid": "example",
        "configurationName": "example",
        "engine": "example",
        "name": "example",
        "projectName": "example",
        "projectUuid": "example",
        "reference": "example",
        "scanDuration": "example",
        "scanMode": "example",
        "scanStatus": "example",
        "scanTime": "example",
        "statistics": {},
        "tags": [
          {
            "displayName": "example",
            "key": "example",
            "value": "example"
          }
        ],
        "triggeredBy": "example",
        "uuid": "example"
      }
    ],
    "supportToken": "example"
  }
}
```

### List applications

List the organization's applications.

**Inputs**

- Limit (`limit`, number): Most records to return (Mend's default is 50). From 1 to 10000.
- Cursor (`cursor`, text): Where to carry on from: the cursor of the previous page (additionalData.cursor).

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "name": "example",
        "uuid": "example"
      }
    ],
    "supportToken": "example"
  }
}
```

### List code findings

List the weaknesses Mend's code scanning (SAST) found in a project.

**Inputs**

- Project (`project_uuid`, text, required): The project.
- Limit (`limit`, number): Most records to return (Mend's default is 50). From 1 to 10000.
- Cursor (`cursor`, text): Where to carry on from: the cursor of the previous page (additionalData.cursor).

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "appId": "example",
        "confidenceRating": 1,
        "createdTime": "example",
        "description": "example",
        "id": "example",
        "isNew": true,
        "projectId": "example",
        "reviewed": true,
        "scanId": "example",
        "severity": "example",
        "severityRating": 1,
        "sharedStep": {
          "file": "example",
          "line": 1,
          "snippet": "example"
        },
        "snapshotId": "example",
        "suppressed": true,
        "suppressionMessage": "example",
        "type": {
          "cwe": {
            "id": "example",
            "title": "example",
            "url": "example"
          },
          "description": "example",
          "name": "example"
        }
      }
    ],
    "supportToken": "example"
  }
}
```

### List dependency findings

List the vulnerable open-source libraries found in a project (SCA), with the fix for each.

**Inputs**

- Project (`project_uuid`, text, required): The project.
- Zero-day event (`zero_day`, text): Only findings of this zero-day event (its UUID or name).
- Limit (`limit`, number): Most records to return (Mend's default is 50). From 1 to 10000.
- Cursor (`cursor`, text): Where to carry on from: the cursor of the previous page (additionalData.cursor).

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "application": {
          "name": "example",
          "uuid": "example"
        },
        "component": {
          "artifactId": "example",
          "componentType": "example",
          "dependencyFile": "example",
          "description": "example",
          "directDependency": true,
          "groupId": "example",
          "language": "example",
          "libraryType": "example",
          "name": "example",
          "uuid": "example",
          "version": "example"
        },
        "exploitable": true,
        "findingInfo": {
          "detectedAt": "example",
          "findingStatus": "example",
          "modifiedAt": "example",
          "status": "example"
        },
        "malicious": true,
        "name": "example",
        "project": {
          "applicationName": "example",
          "applicationUuid": "example",
          "name": "example",
          "path": "example",
          "uuid": "example"
        },
        "reachability": "example",
        "topFix": {
          "fixResolution": "example",
          "message": "example",
          "type": "example",
          "url": "example"
        },
        "type": "example",
        "updateToVersion": "example",
        "uuid": "example",
        "violations": 1,
        "vulnerability": {
          "description": "example",
          "modifiedDate": "example",
          "name": "example",
          "publishDate": "example",
          "score": 1,
          "severity": "example",
          "type": "example"
        }
      }
    ],
    "supportToken": "example"
  }
}
```

### List groups

List the organization's groups and their roles.

**Inputs**

- Limit (`limit`, number): Most records to return (Mend's default is 50). From 1 to 10000.
- Cursor (`cursor`, text): Where to carry on from: the cursor of the previous page (additionalData.cursor).

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "description": "example",
        "name": "example",
        "roles": [
          {
            "role": "example",
            "scopeName": "example",
            "scopeType": "example",
            "scopeUuid": "example"
          }
        ],
        "userCount": 1,
        "users": 1,
        "uuid": "example"
      }
    ],
    "supportToken": "example"
  }
}
```

### List labels

List the organization's labels.

**Inputs**

- Limit (`limit`, number): Most records to return (Mend's default is 50). From 1 to 10000.
- Cursor (`cursor`, text): Where to carry on from: the cursor of the previous page (additionalData.cursor).

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "applications": 1,
        "createdAt": "example",
        "createdBy": "example",
        "displayName": "example",
        "namespace": "example",
        "projects": 1,
        "system": true,
        "uuid": "example",
        "value": "example"
      }
    ],
    "supportToken": "example"
  }
}
```

### List project labels

List the labels on a project.

**Inputs**

- Project (`project_uuid`, text, required): The project.

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "applications": 1,
        "createdAt": "example",
        "createdBy": "example",
        "displayName": "example",
        "namespace": "example",
        "projects": 1,
        "system": true,
        "uuid": "example",
        "value": "example"
      }
    ],
    "supportToken": "example"
  }
}
```

### List project libraries

List the open-source libraries a project uses.

**Inputs**

- Project (`project_uuid`, text, required): The project.
- Limit (`limit`, number): Most records to return (Mend's default is 50). From 1 to 10000.
- Cursor (`cursor`, text): Where to carry on from: the cursor of the previous page (additionalData.cursor).

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "artifactId": "example",
        "description": "example",
        "directDependency": true,
        "groupId": "example",
        "libraryType": "example",
        "name": "example",
        "purl": "example",
        "sha1": "example",
        "type": "example",
        "uuid": "example",
        "version": "example"
      }
    ],
    "supportToken": "example"
  }
}
```

### List project licenses

List the licenses of a project's libraries, with their risk (Mend's due diligence).

**Inputs**

- Project (`project_uuid`, text, required): The project.
- Limit (`limit`, number): Most records to return (Mend's default is 50). From 1 to 10000.
- Cursor (`cursor`, text): Where to carry on from: the cursor of the previous page (additionalData.cursor).

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "component": {
          "artifactId": "example",
          "componentType": "example",
          "dependencyFile": "example",
          "description": "example",
          "directDependency": true,
          "groupId": "example",
          "language": "example",
          "libraryType": "example",
          "name": "example",
          "uuid": "example",
          "version": "example"
        },
        "copyrights": [
          {}
        ],
        "license": {
          "information": "example",
          "textUrl": "example",
          "type": "example",
          "uuid": "example"
        },
        "name": "example",
        "project": {
          "applicationName": "example",
          "applicationUuid": "example",
          "name": "example",
          "path": "example",
          "uuid": "example"
        },
        "riskScore": {
          "explanation": "example",
          "riskScore": 1
        },
        "uuid": "example"
      }
    ],
    "supportToken": "example"
  }
}
```

### List project scans

List a project's scans by every engine.

**Inputs**

- Project (`project_uuid`, text, required): The project.
- Limit (`limit`, number): Most records to return (Mend's default is 50). From 1 to 10000.
- Cursor (`cursor`, text): Where to carry on from: the cursor of the previous page (additionalData.cursor).

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "agentName": "example",
        "agentVersion": "example",
        "applicationName": "example",
        "applicationUuid": "example",
        "configurationName": "example",
        "engine": "example",
        "name": "example",
        "projectName": "example",
        "projectUuid": "example",
        "reference": "example",
        "scanDuration": "example",
        "scanMode": "example",
        "scanStatus": "example",
        "scanTime": "example",
        "statistics": {},
        "tags": [
          {
            "displayName": "example",
            "key": "example",
            "value": "example"
          }
        ],
        "triggeredBy": "example",
        "uuid": "example"
      }
    ],
    "supportToken": "example"
  }
}
```

### List project violations

List the findings in a project that break the organization's policies.

**Inputs**

- Project (`project_uuid`, text, required): The project.
- Limit (`limit`, number): Most records to return (Mend's default is 50). From 1 to 10000.
- Cursor (`cursor`, text): Where to carry on from: the cursor of the previous page (additionalData.cursor).

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "createdAt": "example",
        "engine": "example",
        "findingType": "example",
        "name": "example",
        "originName": "example",
        "originUuid": "example",
        "projectName": "example",
        "projectUuid": "example",
        "risk": "example",
        "sla": "example",
        "updatedAt": "example",
        "uuid": "example",
        "violationType": "example"
      }
    ],
    "supportToken": "example"
  }
}
```

### List projects

List the organization's projects and the application each is in.

**Inputs**

- Exclude inactive (`exclude_inactive`, true/false): Leave out inactive projects. Mend leaves them out unless this is off.
- Limit (`limit`, number): Most records to return (Mend's default is 50). From 1 to 10000.
- Cursor (`cursor`, text): Where to carry on from: the cursor of the previous page (additionalData.cursor).

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "applicationName": "example",
        "applicationUuid": "example",
        "name": "example",
        "path": "example",
        "uuid": "example"
      }
    ],
    "supportToken": "example"
  }
}
```

### List users

List the organization's users.

**Inputs**

- Limit (`limit`, number): Most records to return (Mend's default is 50). From 1 to 10000.
- Cursor (`cursor`, text): Where to carry on from: the cursor of the previous page (additionalData.cursor).

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "accountStatus": "example",
        "email": "example",
        "name": "example",
        "userType": "example",
        "uuid": "example"
      }
    ],
    "supportToken": "example"
  }
}
```

### List zero-day events

List zero-day vulnerability events Mend has published, such as a new critical flaw in a popular library.

**Inputs**

- From date (`from_date`, date): Only events created on or after this day.
- To date (`to_date`, date): Only events created on or before this day.
- Limit (`limit`, number): Most records to return (Mend's default is 50). From 1 to 10000.
- Cursor (`cursor`, text): Where to carry on from: the cursor of the previous page (additionalData.cursor).

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "additionalData": {
      "cursor": "example",
      "next": "example",
      "totalItems": "example"
    },
    "response": [
      {
        "description": "example",
        "name": "example",
        "publishedAt": "example",
        "updatedAt": "example",
        "uuid": "example"
      }
    ],
    "supportToken": "example"
  }
}
```

### Remove project label

Take a label off a project.

**Inputs**

- Project (`project_uuid`, text, required): The project.
- Label (`label_uuid`, text, required): The label on the chosen project.

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "response": {
      "message": "example"
    },
    "supportToken": "example"
  }
}
```

### Review code finding

Mark a code finding reviewed, suppress it with a reason, or change its severity.

**Inputs**

- Project (`project_uuid`, text, required): The project.
- Finding snapshot ID (`finding_snapshot_id`, text, required): The finding's snapshot ID (snapshotId in the project's code findings).
- Reviewed (`reviewed`, true/false): Whether the finding has been reviewed.
- Suppressed (`suppressed`, true/false): Whether to suppress the finding.
- Suppression reason (`suppression_reason`, text): Why it is suppressed. Only when suppressing.
- Custom severity (`custom_severity`, text): A severity of your own for the finding. One of: `High`, `Medium`, `Low`.

**Outputs**

- `data` (object): The response from Mend.

**Example output**

```json
{
  "data": {
    "response": {
      "message": "example",
      "result": {},
      "success": true
    },
    "supportToken": "example"
  }
}
```
