Read a post's comments
curl --request GET \
--url https://api.captureflow.ai/v1/posts/{id}/comments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.captureflow.ai/v1/posts/{id}/comments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.captureflow.ai/v1/posts/{id}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.captureflow.ai/v1/posts/{id}/comments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.captureflow.ai/v1/posts/{id}/comments"
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(string(body))
}HttpResponse<String> response = Unirest.get("https://api.captureflow.ai/v1/posts/{id}/comments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.captureflow.ai/v1/posts/{id}/comments")
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{
"object": "post_comments",
"post": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": {
"untrusted_content": true,
"source": "<string>",
"text": "<string>",
"truncated": true
},
"status": "<string>",
"owner_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"app_url": "<string>"
},
"unresolved_count": 0,
"threads": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "<string>",
"version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"body": {
"untrusted_content": true,
"source": "<string>",
"text": "<string>",
"truncated": true
},
"selected_text": {
"untrusted_content": true,
"source": "<string>",
"text": "<string>",
"truncated": true
},
"author": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"role": "owner",
"is_client": true
},
"resolved": true,
"resolved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deleted": true,
"edited_at": "<string>",
"created_at": "<string>",
"replies": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "<string>",
"version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"body": {
"untrusted_content": true,
"source": "<string>",
"text": "<string>",
"truncated": true
},
"selected_text": {
"untrusted_content": true,
"source": "<string>",
"text": "<string>",
"truncated": true
},
"author": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"role": "owner",
"is_client": true
},
"resolved": true,
"resolved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deleted": true,
"edited_at": "<string>",
"created_at": "<string>"
}
]
}
]
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}Comments
Read a post's comments
The review comments people left on the post in CaptureFlow, as threads (a first comment and its replies), for every platform and version unless narrowed. author.is_client tells the client’s comments from the agency’s.
GET
/
posts
/
{id}
/
comments
Read a post's comments
curl --request GET \
--url https://api.captureflow.ai/v1/posts/{id}/comments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.captureflow.ai/v1/posts/{id}/comments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.captureflow.ai/v1/posts/{id}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.captureflow.ai/v1/posts/{id}/comments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.captureflow.ai/v1/posts/{id}/comments"
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(string(body))
}HttpResponse<String> response = Unirest.get("https://api.captureflow.ai/v1/posts/{id}/comments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.captureflow.ai/v1/posts/{id}/comments")
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{
"object": "post_comments",
"post": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": {
"untrusted_content": true,
"source": "<string>",
"text": "<string>",
"truncated": true
},
"status": "<string>",
"owner_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"app_url": "<string>"
},
"unresolved_count": 0,
"threads": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "<string>",
"version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"body": {
"untrusted_content": true,
"source": "<string>",
"text": "<string>",
"truncated": true
},
"selected_text": {
"untrusted_content": true,
"source": "<string>",
"text": "<string>",
"truncated": true
},
"author": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"role": "owner",
"is_client": true
},
"resolved": true,
"resolved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deleted": true,
"edited_at": "<string>",
"created_at": "<string>",
"replies": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "<string>",
"version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"body": {
"untrusted_content": true,
"source": "<string>",
"text": "<string>",
"truncated": true
},
"selected_text": {
"untrusted_content": true,
"source": "<string>",
"text": "<string>",
"truncated": true
},
"author": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"role": "owner",
"is_client": true
},
"resolved": true,
"resolved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deleted": true,
"edited_at": "<string>",
"created_at": "<string>"
}
]
}
]
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"details": {}
}
}Path Parameters
Query Parameters
The workspace to act in (ids from list_workspaces). Optional when the key or app has a default or a lock, or you belong to one workspace.
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Owners and admins only: act as this member of the workspace, like View As (user ids from list_members). Every use is audited.
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
