Skip to main content

Comments

Get Comments

Returns all comments on a Figma file.

List all comments on a file, including resolved comments and replies.

GET https://api.figma.com/v1/files/:file_key/comments

Authentication

Requires a valid access token with file_content:read scope. Pass via X-Figma-Token header (personal access token) or Authorization: Bearer header (OAuth).

Parameters

Path parameters

The key of the file to retrieve comments from.

Query parameters

Example Request

curl -X GET "https://api.figma.com/v1/files/YOUR_FILE_KEY/comments" \
  -H "X-Figma-Token: YOUR_TOKEN"

Response

{
  "comments": [
    {
      "id": "123",
      "message": "Can we adjust the spacing here?",
      "created_at": "2024-01-15T10:30:00Z",
      "resolved_at": null,
      "user": {
        "id": "456",
        "handle": "designer",
        "img_url": "https://s3-alpha.figma.com/img/..."
      },
      "order_id": "1",
      "client_meta": {
        "x": 100,
        "y": 200,
        "node_id": ["1:23"]
      }
    }
  ]
}

Response Fields

FieldTypeDescription
commentsarrayList of comment objects
comments[].idstringUnique comment identifier
comments[].messagestringThe comment text
comments[].created_atstringISO 8601 timestamp of when the comment was posted
comments[].resolved_atstring or nullTimestamp when the comment was resolved, or null if unresolved
comments[].userobjectThe user who posted the comment
comments[].order_idstringUsed for ordering comments
comments[].client_metaobjectCanvas position where the comment is pinned

Filter resolved vs. unresolved comments client-side by checking the resolved_at field. A value of null means the comment is still open.