---
title: "Get questionnaire comments"
method: GET
path: "/vendor/questionnaire/comments"
tags: ["vendors"]
---

# Get questionnaire comments

`GET /vendor/questionnaire/comments`

## Request

- Base URL: `https://cyber-risk.upguard.com/api/public`
- URL: `https://cyber-risk.upguard.com/api/public/vendor/questionnaire/comments`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/upguard/apis/upguard-cyberrisk-api/docs/vendor/questionnaire/comments/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns all comments for a questionnaire grouped by question ID with threaded replies.
Comments are organized in a map where keys are question IDs (or "top_level" for comments not associated with a question).
Within each group, comments are sorted by creation date in descending order (oldest first).
Each comment may have nested replies.
Note: Comments are only available for private questionnaires, not public questionnaires.

Required API key permissions: `VendorRisk` (select when creating API key in Account Settings)

## Query parameters

- `id` integer, required

## Response `200`

Questionnaire comments response

- GetQuestionnaireCommentsResponsePayload
  - `comments` object: Comments grouped by question ID (or "top_level" for comments not associated with a question) Each group contains comments sorted in descending order (oldest first) Each comment may have nested replies

## Other responses

- `403`: Account does not have access to requested entities
- `404`: The vendor was not found.
- `422`: An invalid parameter was supplied or a mandatory parameter was missing
- `429`: Too many requests have been made to this endpoint.
- `500`: An internal system error occurred

---

[API](https://skmtc.dev/upguard/apis/upguard-cyberrisk-api.md) - [All operations](https://skmtc.dev/upguard/apis/upguard-cyberrisk-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upguard/apis/upguard-cyberrisk-api/revisions/d044bf6dc61e?raw)
