Lista comentários de uma tarefa
curl --request GET \
--url https://app.tarefy.com/nodeapi/v2/comments/{taskId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.tarefy.com/nodeapi/v2/comments/{taskId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.tarefy.com/nodeapi/v2/comments/{taskId}', 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://app.tarefy.com/nodeapi/v2/comments/{taskId}",
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://app.tarefy.com/nodeapi/v2/comments/{taskId}"
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://app.tarefy.com/nodeapi/v2/comments/{taskId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tarefy.com/nodeapi/v2/comments/{taskId}")
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{
"status": true,
"data": {
"comments": [
{
"id": 9801,
"content": "<p>Comentário interno da equipe.</p>",
"type": null,
"isClient": false,
"isClientVisible": false,
"createdAt": "2026-06-02T13:30:00.000Z",
"updatedAt": "2026-06-02T13:30:00.000Z",
"editedAt": null,
"mentions": "12, 34",
"author": {
"id": 7,
"name": "Douglas Araujo",
"email": "douglas@tarefy.com",
"profilePhoto": null
},
"attachments": [
{
"id": 501,
"name": "briefing.pdf",
"file": "https://signed-url.example.com/briefing.pdf",
"createdAt": "2026-06-02T13:31:00.000Z"
}
],
"hasRead": true
},
{
"id": 9802,
"content": "<p>Comentário enviado pelo cliente.</p>",
"type": null,
"isClient": true,
"isClientVisible": true,
"createdAt": "2026-06-02T14:00:00.000Z",
"updatedAt": "2026-06-02T14:00:00.000Z",
"editedAt": null,
"mentions": null,
"author": {
"id": 44,
"name": "Cliente Exemplo",
"email": "cliente@example.com",
"profilePhoto": null
},
"attachments": [],
"hasRead": false
}
],
"internalComments": [
{
"id": 9801,
"content": "<p>Comentário interno da equipe.</p>",
"type": null,
"isClient": false,
"isClientVisible": false,
"createdAt": "2026-06-02T13:30:00.000Z",
"updatedAt": "2026-06-02T13:30:00.000Z",
"editedAt": null,
"mentions": "12, 34",
"author": {
"id": 7,
"name": "Douglas Araujo",
"email": "douglas@tarefy.com",
"profilePhoto": null
},
"attachments": [],
"hasRead": true
}
],
"clientComments": [
{
"id": 9802,
"content": "<p>Comentário enviado pelo cliente.</p>",
"type": null,
"isClient": true,
"isClientVisible": true,
"createdAt": "2026-06-02T14:00:00.000Z",
"updatedAt": "2026-06-02T14:00:00.000Z",
"editedAt": null,
"mentions": null,
"author": {
"id": 44,
"name": "Cliente Exemplo",
"email": "cliente@example.com",
"profilePhoto": null
},
"attachments": [],
"hasRead": false
}
],
"total": 2
}
}Comments
Lista comentários de uma tarefa
Lista comentários de uma tarefa com controle de acesso.
Use type=internal para comentários internos e type=client para comentários de cliente.
Usuários externos/clientes recebem somente comentários de cliente, mesmo se informarem outro tipo.
GET
/
v2
/
comments
/
{taskId}
Lista comentários de uma tarefa
curl --request GET \
--url https://app.tarefy.com/nodeapi/v2/comments/{taskId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.tarefy.com/nodeapi/v2/comments/{taskId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.tarefy.com/nodeapi/v2/comments/{taskId}', 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://app.tarefy.com/nodeapi/v2/comments/{taskId}",
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://app.tarefy.com/nodeapi/v2/comments/{taskId}"
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://app.tarefy.com/nodeapi/v2/comments/{taskId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tarefy.com/nodeapi/v2/comments/{taskId}")
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{
"status": true,
"data": {
"comments": [
{
"id": 9801,
"content": "<p>Comentário interno da equipe.</p>",
"type": null,
"isClient": false,
"isClientVisible": false,
"createdAt": "2026-06-02T13:30:00.000Z",
"updatedAt": "2026-06-02T13:30:00.000Z",
"editedAt": null,
"mentions": "12, 34",
"author": {
"id": 7,
"name": "Douglas Araujo",
"email": "douglas@tarefy.com",
"profilePhoto": null
},
"attachments": [
{
"id": 501,
"name": "briefing.pdf",
"file": "https://signed-url.example.com/briefing.pdf",
"createdAt": "2026-06-02T13:31:00.000Z"
}
],
"hasRead": true
},
{
"id": 9802,
"content": "<p>Comentário enviado pelo cliente.</p>",
"type": null,
"isClient": true,
"isClientVisible": true,
"createdAt": "2026-06-02T14:00:00.000Z",
"updatedAt": "2026-06-02T14:00:00.000Z",
"editedAt": null,
"mentions": null,
"author": {
"id": 44,
"name": "Cliente Exemplo",
"email": "cliente@example.com",
"profilePhoto": null
},
"attachments": [],
"hasRead": false
}
],
"internalComments": [
{
"id": 9801,
"content": "<p>Comentário interno da equipe.</p>",
"type": null,
"isClient": false,
"isClientVisible": false,
"createdAt": "2026-06-02T13:30:00.000Z",
"updatedAt": "2026-06-02T13:30:00.000Z",
"editedAt": null,
"mentions": "12, 34",
"author": {
"id": 7,
"name": "Douglas Araujo",
"email": "douglas@tarefy.com",
"profilePhoto": null
},
"attachments": [],
"hasRead": true
}
],
"clientComments": [
{
"id": 9802,
"content": "<p>Comentário enviado pelo cliente.</p>",
"type": null,
"isClient": true,
"isClientVisible": true,
"createdAt": "2026-06-02T14:00:00.000Z",
"updatedAt": "2026-06-02T14:00:00.000Z",
"editedAt": null,
"mentions": null,
"author": {
"id": 44,
"name": "Cliente Exemplo",
"email": "cliente@example.com",
"profilePhoto": null
},
"attachments": [],
"hasRead": false
}
],
"total": 2
}
}Authorizations
JWT token obtained from /v2/auth/login. Send it in the header:
Authorization: Bearer <your_token>
Path Parameters
ID interno da tarefa no banco.
Example:
12345
Query Parameters
Tipo de comentário a retornar. internal retorna comentários internos; client retorna comentários visíveis ao cliente.
Available options:
all, internal, client ⌘I

