# Get Comment Thread

GET https://api.webflow.com/v2/sites/{site_id}/comments/{comment_thread_id}

Get details of a specific comment thread.

  <Note title="Timing of comment threads">
    There may be a delay of up to 5 minutes before new comments appear in the system.
  </Note>

Required scope | `comments:read`


Reference: https://developers.webflow.com/data/reference/comments/get-comment-thread

## OpenAPI Specification

```yaml
openapi: 3.1.1
info:
  title: Get Comment Thread
  version: endpoint_sites/comments.get-comment-thread
paths:
  /sites/{site_id}/comments/{comment_thread_id}:
    get:
      operationId: get-comment-thread
      summary: Get Comment Thread
      description: |
        Get details of a specific comment thread.

          <Note title="Timing of comment threads">
            There may be a delay of up to 5 minutes before new comments appear in the system.
          </Note>

        Required scope | `comments:read`
      tags:
        - - subpackage_sites
          - subpackage_sites/comments
      parameters:
        - name: site_id
          in: path
          description: Unique identifier for a Site
          required: true
          schema:
            type: string
            format: objectid
        - name: comment_thread_id
          in: path
          description: Unique identifier for a Comment Thread
          required: true
          schema:
            type: string
            format: objectid
        - name: localeId
          in: query
          description: >
            Unique identifier for a specific Locale.


            [Lear more about
            localization.](/data/v2.0.0/docs/working-with-localization)
          required: false
          schema:
            type: string
        - name: offset
          in: query
          description: >-
            Offset used for pagination if the results have more than limit
            records
          required: false
          schema:
            type: integer
        - name: limit
          in: query
          description: 'Maximum number of records to be returned (max limit: 100)'
          required: false
          schema:
            type: integer
        - name: sortBy
          in: query
          description: >-
            Sort results by the provided value. Only allowed when sortOrder is
            provided.
          required: false
          schema:
            $ref: >-
              #/components/schemas/SitesSiteIdCommentsCommentThreadIdGetParametersSortBy
        - name: sortOrder
          in: query
          description: Sorts the results by asc or desc
          required: false
          schema:
            $ref: >-
              #/components/schemas/SitesSiteIdCommentsCommentThreadIdGetParametersSortOrder
        - name: Authorization
          in: header
          description: >-
            Bearer authentication of the form `Bearer <token>`, where token is
            your auth token.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Request was successful
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/sites_comments_get-comment-thread_Response_200
        '400':
          description: Request body was incorrectly formatted.
          content: {}
        '401':
          description: >-
            Provided access token is invalid or does not have access to
            requested resource
          content: {}
        '404':
          description: Requested resource not found
          content: {}
        '429':
          description: >-
            The rate limit of the provided access_token has been reached. Please
            have your application respect the X-RateLimit-Remaining header we
            include on API responses.
          content: {}
        '500':
          description: We had a problem with our server. Try again later.
          content: {}
components:
  schemas:
    SitesSiteIdCommentsCommentThreadIdGetParametersSortBy:
      type: string
      enum:
        - value: createdOn
        - value: lastUpdated
    SitesSiteIdCommentsCommentThreadIdGetParametersSortOrder:
      type: string
      enum:
        - value: asc
        - value: desc
    SitesSiteIdCommentsCommentThreadIdGetResponsesContentApplicationJsonSchemaAuthor:
      type: object
      properties:
        userId:
          type: string
          description: The unique identifier of the author
        email:
          type: string
          description: Email of the author
        name:
          type: string
          description: Name of the author
      required:
        - userId
        - email
        - name
    SitesSiteIdCommentsCommentThreadIdGetResponsesContentApplicationJsonSchemaMentionedUsersItems:
      type: object
      properties:
        userId:
          type: string
          description: The unique identifier of the mentioned user
        email:
          type: string
          description: Email of the user
        name:
          type: string
          description: Name of the  User
      required:
        - userId
        - email
        - name
    sites_comments_get-comment-thread_Response_200:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the comment thread
        siteId:
          type: string
          description: The site unique identifier
        pageId:
          type: string
          description: The page unique identifier
        localeId:
          type:
            - string
            - 'null'
          description: The locale unique identifier
        itemId:
          type:
            - string
            - 'null'
          description: The item unique identifier
        breakpoint:
          type: string
          description: The breakpoint the comment was left on
        url:
          type: string
          description: The URL of the page the comment was left on
        content:
          type: string
          description: The content of the comment reply
        isResolved:
          type: boolean
          default: false
          description: Boolean determining if the comment thread is resolved
        author:
          $ref: >-
            #/components/schemas/SitesSiteIdCommentsCommentThreadIdGetResponsesContentApplicationJsonSchemaAuthor
        mentionedUsers:
          type: array
          items:
            $ref: >-
              #/components/schemas/SitesSiteIdCommentsCommentThreadIdGetResponsesContentApplicationJsonSchemaMentionedUsersItems
          description: >-
            List of mentioned users. This is an empty array until email
            notifications are sent, which can take up to 5 minutes after the
            comment is created.
        createdOn:
          type: string
          format: date-string
          description: The date the item was created
        lastUpdated:
          type: string
          format: date-string
          description: The date the item was last updated
      required:
        - id
        - siteId
        - pageId
        - localeId
        - itemId
        - breakpoint
        - url
        - content
        - isResolved
        - author
        - mentionedUsers
        - createdOn
        - lastUpdated

```

## SDK Code Examples

```python
from webflow import Webflow

client = Webflow(
    access_token="YOUR_ACCESS_TOKEN",
)
client.sites.comments.get_comment_thread(
    site_id="580e63e98c9a982ac9b8b741",
    comment_thread_id="580e63e98c9a982ac9b8b741",
    locale_id="65427cf400e02b306eaa04a0",
    offset=1,
    limit=1,
    sort_by="createdOn",
    sort_order="asc",
)

```

```typescript
import { WebflowClient } from "webflow-api";

const client = new WebflowClient({ accessToken: "YOUR_ACCESS_TOKEN" });
await client.sites.comments.getCommentThread("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
    localeId: "65427cf400e02b306eaa04a0",
    offset: 1,
    limit: 1,
    sortBy: "createdOn",
    sortOrder: "asc"
});

```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/comments/580e63e98c9a982ac9b8b741?localeId=65427cf400e02b306eaa04a0&offset=0&limit=100"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/comments/580e63e98c9a982ac9b8b741?localeId=65427cf400e02b306eaa04a0&offset=0&limit=100")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
HttpResponse<String> response = Unirest.get("https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/comments/580e63e98c9a982ac9b8b741?localeId=65427cf400e02b306eaa04a0&offset=0&limit=100")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/comments/580e63e98c9a982ac9b8b741?localeId=65427cf400e02b306eaa04a0&offset=0&limit=100', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
var client = new RestClient("https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/comments/580e63e98c9a982ac9b8b741?localeId=65427cf400e02b306eaa04a0&offset=0&limit=100");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/comments/580e63e98c9a982ac9b8b741?localeId=65427cf400e02b306eaa04a0&offset=0&limit=100")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```