---
title: "Add a comment to a file"
method: POST
path: "/files/{id}/comments"
tags: ["Files"]
---

# Add a comment to a file

`POST /files/{id}/comments`

## Request

- Base URL: `https://www.virustotal.com/api/v3`
- URL: `https://www.virustotal.com/api/v3/files/{id}/comments`
- Auth: none required

## Path parameters

- `id` string, required

## Headers

- `x-apikey` string, required

## Request body

- object
  - `data` string, json, required: A comment object

## Response `200`

200

- object

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/virustotal/apis/ioc-investigation.md) - [All operations](https://skmtc.dev/virustotal/apis/ioc-investigation/llms.txt) - [OpenAPI document](https://skmtc.dev/virustotal/apis/ioc-investigation/revisions/4d4fadbb8cbc?raw)
