コメント一覧(プロジェクト)
QUERY
https://api.youvico.com/api/projects/:id/comments- レート制限
- Default
- スコープ
- comments:read
プロジェクトのコメント一覧を取得します。
例
curl -X QUERY 'https://api.youvico.com/api/projects/bdbff5de-96d7-468f-9db0-85fe28bd6b62/comments' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{ "sort": { "type": "createdAt", "direction": "asc" } }'
{
"data": [
{
"id": "e3a9c4f1-5b2d-4c8e-9f7a-1d6b8e2c4a90",
"content": "Project brief is ready for review.",
"anchor": null,
"duration": null,
"createdAt": "2026-04-10 08:00:00.482913",
"updatedAt": "2026-04-10 08:05:12.118204",
"deletedAt": null,
"reply": {
"count": 1,
"lastCreatedAt": "2026-04-10 08:10:00.215374"
},
"attachments": [
{
"id": "CA1234567890ABCD",
"name": "brief.pdf",
"mimeType": "application/pdf",
"size": 1250000
}
],
"reactions": [
{
"type": "👍",
"count": 2,
"me": true
}
],
"parent": null,
"author": {
"id": "f6035d1a-29df-4d80-8d72-f1bbdddfb6ff",
"name": "Jin Seo",
"avatarUrl": "https://files.youvico.com/users/f6035d1a-29df-4d80-8d72-f1bbdddfb6ff/A1b2C3d4E5f6G7h8I9j0K1l2M3n4O5p6.avif"
}
}
],
"page": {
"next": null,
"prev": "WyIyMDI2LTA0LTEwIDA4OjAwOjAwLjQ4MjkxMyIsImUzYTljNGYxLTViMmQtNGM4ZS05ZjdhLTFkNmI4ZTJjNGE5MCJd"
}
}
リクエスト
curl -X QUERY 'https://api.youvico.com/api/projects/bdbff5de-96d7-468f-9db0-85fe28bd6b62/comments' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"sort": {
"type": "createdAt",
"direction": "asc"
}
}'
レスポンス200 OK
{
"data": [
{
"id": "e3a9c4f1-5b2d-4c8e-9f7a-1d6b8e2c4a90",
"content": "Project brief is ready for review.",
"anchor": null,
"duration": null,
"createdAt": "2026-04-10 08:00:00.482913",
"updatedAt": "2026-04-10 08:05:12.118204",
"deletedAt": null,
"reply": {
"count": 1,
"lastCreatedAt": "2026-04-10 08:10:00.215374"
},
"attachments": [
{
"id": "CA1234567890ABCD",
"name": "brief.pdf",
"mimeType": "application/pdf",
"size": 1250000
}
],
"reactions": [
{
"type": "👍",
"count": 2,
"me": true
}
],
"parent": null,
"author": {
"id": "f6035d1a-29df-4d80-8d72-f1bbdddfb6ff",
"name": "Jin Seo",
"avatarUrl": "https://files.youvico.com/users/f6035d1a-29df-4d80-8d72-f1bbdddfb6ff/A1b2C3d4E5f6G7h8I9j0K1l2M3n4O5p6.avif"
}
}
],
"page": {
"next": null,
"prev": "WyIyMDI2LTA0LTEwIDA4OjAwOjAwLjQ4MjkxMyIsImUzYTljNGYxLTViMmQtNGM4ZS05ZjdhLTFkNmI4ZTJjNGE5MCJd"
}
}
リクエスト
パス
idstringrequiredプロジェクトID
ボディ
sortobjectrequiredソート順
sort.typestringrequiredソート対象のフィールド
指定できる値: createdAtanchor
例: createdAt
sort.directionstringrequiredソート方向
指定できる値: ascdesc
例: asc
keywordstring2-255 characters
検索キーワード
usersarray1-20 items
コメントの作成者
users[].idstringrequiredUUID
作成者ユーザーID
hasAnchorbooleanアンカーのあるコメントかどうか
nextstringMaximum 2048 characters
page.next のカーソル
prevstringMaximum 2048 characters
page.prev のカーソル
レスポンス
200 OK を返します。
dataarrayコメント
data[].idstringコメントID
例: e3a9c4f1-5b2d-4c8e-9f7a-1d6b8e2c4a90
data[].contentstring?コメント本文
例: Project brief is ready for review.
data[].anchornumber?プロジェクトコメントでは常に null
例: null
data[].durationnumber?プロジェクトコメントでは常に null
例: null
data[].createdAtstringコメント作成日時
例: 2026-04-10 08:00:00.482913
data[].updatedAtstringコメント最終更新日時
例: 2026-04-10 08:05:12.118204
data[].deletedAtstring?コメント削除日時
例: null
data[].replyobject返信の概要
data[].attachmentsarrayコメント添付ファイル
data[].reactionsarray絵文字ごとのリアクション
data[].parentobject?親コメント
例: null
data[].authorobject?コメント作成者
pageobjectページネーションカーソル
page.nextstring?次のページのカーソル
例: null
page.prevstring?前のページのカーソル
例: WyIyMDI2LTA0LTEwIDA4OjAwOjAwLjQ4MjkxMyIsImUzYTljNGYxLTViMmQtNGM4ZS05ZjdhLTFkNmI4ZTJjNGE5MCJd