---
agentTools:
  projectIndex: https://productplan.readme.io/llms.txt
---

# Get Roadmap Comments

Returns a list of all Comments for the specified Roadmap.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "ProductPlan API V2",
    "version": "v2"
  },
  "paths": {
    "/api/v2/roadmaps/{id}/comments": {
      "get": {
        "summary": "Get Roadmap Comments",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "description": "Indicates which page number to retrieve (based on a given page size)",
              "default": 1
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "schema": {
              "type": "integer",
              "description": "The amount of items to return with each page (default: 200, max: 500)",
              "default": 200
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "tags": [
          "Roadmaps"
        ],
        "description": "Returns a list of all Comments for the specified Roadmap.",
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "lists roadmap comments",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CommentRead"
                      },
                      "required": [
                        "items"
                      ]
                    },
                    "paging": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "results",
                    "paging"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "roadmap not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "bad pagination parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Roadmaps"
    }
  ],
  "servers": [
    {
      "url": "https://{defaultHost}",
      "variables": {
        "defaultHost": {
          "default": "app.productplan.com"
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "BarReference": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The bar's unique database identifier.",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Title of the bar.",
            "example": "Sail to Monkey Island"
          },
          "url": {
            "type": "string",
            "description": "URL to view the bar in a browser.",
            "example": "https://app.productplan.com/bars/1"
          },
          "api_path": {
            "type": "string",
            "description": "API path for the bar.",
            "example": "/api/v2/bars/1"
          }
        },
        "required": [
          "id",
          "name",
          "url",
          "api_path"
        ],
        "additionalProperties": false
      },
      "CommentRead": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The comment's unique database identifier.",
            "example": 1
          },
          "bar": {
            "type": "object",
            "nullable": true,
            "description": "Related bar resource, to which the comment belongs.",
            "$ref": "#/components/schemas/BarReference"
          },
          "roadmap": {
            "type": "object",
            "nullable": true,
            "description": "Related roadmap resource, to which the comment's bar belongs.",
            "$ref": "#/components/schemas/RoadmapReference"
          },
          "body": {
            "type": "string",
            "description": "Contents of the comment",
            "example": "This is a really awesome idea!"
          },
          "owner": {
            "type": "object",
            "nullable": true,
            "description": "The user who commented.",
            "$ref": "#/components/schemas/UserShow"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time the comment was first created."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time the comment was last updated."
          }
        },
        "required": [
          "id",
          "bar",
          "roadmap",
          "body",
          "owner",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "Error": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "errors"
        ],
        "additionalProperties": false
      },
      "Pagination": {
        "type": "object",
        "properties": {
          "record_count": {
            "type": "integer",
            "description": "The total number of elements existing in the collection (pre-paging)"
          },
          "page_count": {
            "type": "integer",
            "description": "The total number of pages"
          },
          "current_page": {
            "type": "integer",
            "description": "The current page"
          },
          "page_size": {
            "type": "integer",
            "description": "The number of elements returned in the current page"
          }
        },
        "required": [
          "record_count",
          "page_count",
          "current_page",
          "page_size"
        ],
        "additionalProperties": false
      },
      "RoadmapReference": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The roadmap's unique database identifier.",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Title of the roadmap.",
            "example": "Adventures of Guybrush Threepwood"
          },
          "url": {
            "type": "string",
            "description": "URL to view the roadmap in a browser.",
            "example": "https://app.productplan.com/roadmaps/1"
          },
          "api_path": {
            "type": "string",
            "description": "API path for the roadmap.",
            "example": "/api/v2/roadmaps/1"
          }
        },
        "required": [
          "id",
          "name",
          "url",
          "api_path"
        ],
        "additionalProperties": false
      },
      "UserShow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The user's unique database identifier.",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "The user's full name",
            "example": "Guybrush Threepwood"
          },
          "email": {
            "type": "string",
            "description": "The user's email address",
            "example": "guybrush@threepwood.test"
          },
          "license_type": {
            "type": "string",
            "enum": [
              "editor",
              "viewer"
            ],
            "description": "The users license type",
            "example": "editor"
          }
        },
        "required": [
          "id",
          "name",
          "email",
          "license_type"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 145,
      "2": 51,
      "3": 180,
      "4": 236,
      "5": 85,
      "6": 77,
      "7": 0,
      "8": 85,
      "9": 123,
      "10": 158,
      "11": 250
    }
  }
}
```