# Exporting via API

# Introduction

This article explains how to use a HTTP POST request to export detected vulnerabilities in CSV format

## Requirements

* Login to Tutela
* Navigate to settings
*  Create a new API key

# Sample `cURL` request

**Run the following command:**

```bash
curl 'https://cs-vas-backend.cybersift.io/retrieveCveCsv' \
   -H 'Content-Type: application/json' \
   -H 'X-Tutela-API: 123456' \
   --data-raw '{"DateFilter":1615601845,"Status":"Resolved","Tags":"available"}'
```


:::warning
:warning: Trial Users [SAMPLE - Amend accordingly]

```bash
curl 'https://trial-backend.tutela.cybersift.io/retrieveCveCsv' \
   -H 'Content-Type: application/json' \
   -H 'X-Tutela-API: 123456' \
   --data-raw '{"DateFilter":1615601845,"Status":"Resolved","Tags":"available"}'
```

:::

**Response Sample:** 

```none
LastSeen,Address,Port,Service,Product,Version,Severity,CVE ID,CVE Details,Resolved,Notes,Public Exploit,CVE Description  2024-02-20 13:45:06 +0000 UTC,dvas0004_xps,,,VLC media player (VideoLAN),3.0.20,CRITICAL,CVE-2023-47359,https://nvd.nist.gov/vuln/detail/CVE-2023-47359,true," auto-closed by update / Windows KB",,Videolan VLC prior to version 3.0.20 contains an incorrect offset read that leads to a Heap-Based Buffer Overflow in function GetPacket() and results in a memory corruption.
```


## List of accepted search conditions

| `**Parameter**` | **Type** | **Description** | **Accepted Values / Format** |
|-----------|------|-------------|--------------------------|
| `**Cve**` | String | Filter by a specific CVE number. | e.g., "CVE-2023-1234"    |
| `**DateFilter**` | Integer | Filter by date using UNIX timestamp. | UNIX seconds             |
| `**DetectionType**` | String | The method used to detect the vulnerability. | `network_scan`, `application`, `host_agent` |
| `**Host**` | String | Filter by a specific host address. | e.g., "192.168.1.1"      |
| `**Port**` | String | Filter by a specific port number. | e.g., "80", "443"        |
| `**SearchQuery**` | String | Performs a free-text search. | Any text string          |
| `**Severity**` | String | General severity level of the finding. | `CRITICAL`, `HIGH`, `MEDIUM`, `LOW` |
| `**ShowLatest**` | Boolean | Whether to show only the most recent results. | `true`, `false`          |
| `**Status**` | String | The current state of the vulnerability. | "Pending", "Resolved"    |
| `**Tags**` | String | Filter based on assigned metadata tags. | Any text string          |
| `**TutelaSeverity**` | String | Tutela-specific severity rating. | `CRITICAL`, `HIGH`, `MEDIUM`, `LOW` |



---


:::info
tags:

* Tutela API Export
* Reporting

:::

---

**Documents**

- [1. Getting Started](https://outline.cybersift.io/s/tutela-docs/doc/1-getting-started-wi972eTn7N)
- [2. Vulnerability Scanning](https://outline.cybersift.io/s/tutela-docs/doc/2-vulnerability-scanning-giL9tJRfit)
- [3. Asset Management](https://outline.cybersift.io/s/tutela-docs/doc/3-asset-management-TVe3GfeqgX)
- [4. Online Presence Monitoring](https://outline.cybersift.io/s/tutela-docs/doc/4-online-presence-monitoring-7dAIDIi6OT)
- [5. Reporting](https://outline.cybersift.io/s/tutela-docs/doc/5-reporting-xCbDsqRFGR)
- [6. Tutela Integrations](https://outline.cybersift.io/s/tutela-docs/doc/6-tutela-integrations-GJJVFdWlTI)
- [7. Porta](https://outline.cybersift.io/s/tutela-docs/doc/7-porta-0KQ0fvqN3u)
- [FAQ](https://outline.cybersift.io/s/tutela-docs/doc/faq-IkXHcKeIFy)