> For the complete documentation index, see [llms.txt](https://docs.malwation.com/cdr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.malwation.com/cdr/api-documentation/listen-submission.md).

# Listen Submission

Listen the submission that has been sent, with the resultId

## Listen Submission

This is how you listen the submission, by getting the *resultId* coming from the **Start Submission** request.

### Authentication

{% hint style="danger" %}
Please be careful while sending the header, its key is "**api-token**".
{% endhint %}

### Download Sanitized File

To get the sanitized file, there are some steps to do.&#x20;

* First thing is after *status key* is 2 (Completed) we can access the *result key.*
* In result key, there is an array field: ***files***

***Example of Files***

```json
"files": [
	{
		"name": "58b46901099bd149b6a9c186ddd5394e2d98cfafdecd179bc428e89c01303a2b_sanitized.docx",
		"id": "336ccc96-286c-4a12-afce-4efe2f8fdba4"
	}
],
```

* Array contains the extracted files after the process, which is sanitized file in our CDR case.
* The name of the file is just for information or for your use case. The main thing you will use to get the sanitized file is the **id field.**
* Please check the ***Download Sanitized File*** part the download the file with the given file id in the result of the submission.

{% openapi src="/files/J2xlLlCcLsvaChgJdyrQ" path="/listen/{submissionId}" method="get" %}
[api\_manager\_openapi.json](https://1474744516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4rrhRteyjvG2Jn5qIQa5%2Fuploads%2FixkzoY7HuxVdGSrPEoww%2Fapi_manager_openapi.json?alt=media\&token=2251dbaa-83b1-43aa-8ccc-328e1c6229d3)
{% endopenapi %}

### Example Response

```json
{
	"type": "file",
	"name": "sample.docx",
	"fileId": "58b46901099bd149b6a9c186ddd5394e2d98cfafdecd179bc428e89c01303a2b",
	"resultId": "a3d68330-4155-469c-a393-beaa645015da",
	"size": 46516,
	"hashes": {
		"sha256": "58b46901099bd149b6a9c186ddd5394e2d98cfafdecd179bc428e89c01303a2b",
		"sha1": "35d4cdeea9bf51902ca268af911c9d527af3d35e",
		"md5": "480f4b4ffb6cca1b872cf55329a8881e"
	},
	"status": 2,
	"level": 0,
	"files": [
		{
			"name": "58b46901099bd149b6a9c186ddd5394e2d98cfafdecd179bc428e89c01303a2b_sanitized.docx",
			"id": "336ccc96-286c-4a12-afce-4efe2f8fdba4"
		}
	],
	"message": "Submission is finished",
	"result": {
		"filename": "58b46901099bd149b6a9c186ddd5394e2d98cfafdecd179bc428e89c01303a2b_sanitized.docx",
		"log": {
			"description": "File sanitized successfully.",
			"removed": [
				"Metadata"
			],
			"sanitized": [
				"Image"
			],
			"processing time": "7.50170 seconds"
		}
	}
}
```
