Create, read, update, and delete comments on tasks and goals. Comments support @mentions for team collaboration.
/api/v1/commentsread:commentsRetrieve comments for a specific task or goal.
task_iduuidFilter by task IDgoal_iduuidFilter by goal IDpageintegerPage number (default: 1)limitintegerItems per page (default: 50, max: 100)sort_orderstringSort direction: asc or desc (default: asc)curl -X GET "https://gateway.thekairos.app/v1/comments?task_id=550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": [
{
"id": "abc12345-e29b-41d4-a716-446655440000",
"team_id": "123e4567-e89b-12d3-a456-426614174000",
"task_id": "550e8400-e29b-41d4-a716-446655440000",
"goal_id": null,
"user_id": "456e7890-e12b-34d5-a678-901234567000",
"content": "Great progress! @[John Doe](user-123) can you review this?",
"mentions": ["user-123"],
"created_at": "2024-01-10T14:30:00Z",
"updated_at": "2024-01-10T14:30:00Z",
"user": {
"id": "456e7890-e12b-34d5-a678-901234567000",
"full_name": "Jane Smith",
"avatar_url": "https://..."
}
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 5,
"has_more": false
}
}task_id or goal_id to list comments. Listing all comments without a filter is not supported./api/v1/comments/:idread:commentsRetrieve a single comment by ID.
curl -X GET "https://gateway.thekairos.app/v1/comments/abc12345-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"id": "abc12345-e29b-41d4-a716-446655440000",
"team_id": "123e4567-e89b-12d3-a456-426614174000",
"task_id": "550e8400-e29b-41d4-a716-446655440000",
"goal_id": null,
"user_id": "456e7890-e12b-34d5-a678-901234567000",
"content": "Great progress! @[John Doe](user-123) can you review this?",
"mentions": ["user-123"],
"created_at": "2024-01-10T14:30:00Z",
"updated_at": "2024-01-10T14:30:00Z",
"user": {
"id": "456e7890-e12b-34d5-a678-901234567000",
"full_name": "Jane Smith",
"avatar_url": "https://..."
}
}
}/api/v1/commentswrite:commentsCreate a new comment on a task or goal.
contentstringrequiredComment content (supports @mentions)task_iduuidTask ID to comment ongoal_iduuidGoal ID to comment oncurl -X POST "https://gateway.thekairos.app/v1/comments" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"task_id": "550e8400-e29b-41d4-a716-446655440000",
"content": "Looks good! @[John Doe](user-123) please review when you have time."
}'{
"data": {
"id": "def67890-e29b-41d4-a716-446655440000",
"team_id": "123e4567-e89b-12d3-a456-426614174000",
"task_id": "550e8400-e29b-41d4-a716-446655440000",
"goal_id": null,
"user_id": "456e7890-e12b-34d5-a678-901234567000",
"content": "Looks good! @[John Doe](user-123) please review when you have time.",
"mentions": ["user-123"],
"created_at": "2024-01-10T15:00:00Z",
"updated_at": "2024-01-10T15:00:00Z"
}
}task_id or goal_id when creating a comment. A comment cannot exist without being attached to a task or goal./api/v1/comments/:idwrite:commentsUpdate an existing comment. Only the comment author can update it.
contentstringrequiredUpdated comment contentcurl -X PATCH "https://gateway.thekairos.app/v1/comments/abc12345-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Updated: This looks great! Ready for deployment."
}'{
"data": {
"id": "abc12345-e29b-41d4-a716-446655440000",
"content": "Updated: This looks great! Ready for deployment.",
"mentions": [],
"updated_at": "2024-01-10T16:00:00Z"
}
}/api/v1/comments/:idwrite:commentsDelete a comment. Only the comment author or team admins can delete comments.
curl -X DELETE "https://gateway.thekairos.app/v1/comments/abc12345-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"deleted": true
}
}Comments support @mentions to notify team members. Use the following format:
@[Display Name](user-id)When a comment with mentions is created, the mentioned users will receive notifications. The mentions array in the response contains the user IDs that were mentioned.
{
"content": "Hey @[John Doe](456e7890-e12b-34d5-a678-901234567000) can you take a look?",
"task_id": "550e8400-e29b-41d4-a716-446655440000"
}/api/v1/team/members.