Tuti APIFeedback

List comments

List a post's comments, each followed by its replies; to the team (an API key, a team member), with its internal notes between them

GET/posts/{number}/comments

Authorization Bearer token

Path parameters

  • numberinteger · more than 0required

    The post's number

Query parameters

  • sortstring

    Comments oldest first (the default) or newest first; each one's replies follow it, oldest first

    Default: "oldest"

    One of"oldest""newest"

Responses

  • 200The post's comments

    application/json · object

    The post's comments

    • commentsarray of Commentrequired

      The comments in order, each followed by its replies

      Show 9 properties
      • idstringrequired

        The comment's id: comments.like and a reply's replyTo take it

      • authorobjectrequired

        Who wrote it

        Show 2 properties
        • namestringrequired

          Their name

        • teambooleanrequired

          Whether they wrote it as the team: a team member, not signed in as a portal reader

      • bodystringrequired

        Its text, as plain text

      • contentmap of anyrequired

        Its text as a rich document (Tuti's content format, as the editor writes it: paragraphs, lists, images…)

      • createdAtstringrequired

        When it was written (ISO 8601)

      • replyTostring · nullablerequired

        The id of the comment it replies to; null for one that replies to none

      • likesintegerrequired

        How many like it

      • likedbooleanrequired

        Whether the caller likes it (a key: its creator)

      • internalboolean

        Only on an internal note, and true: only the team sees it, never on the portal, in emails or webhooks

        One oftrue

  • 400The request isn't valid: a field is missing, has the wrong type or is out of range, or the body isn't a JSON object. The message names the field.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 401No API key was sent, or it isn't valid: it was revoked, or whoever created it left the team.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 404Nothing by that name, number or id in this project.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 429Too many requests: past 600 a minute per key, try again after the seconds in the Retry-After header. Some operations have limits of their own (their description gives them), whose 429 has no Retry-After.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 500Something went wrong on Tuti's side. Try again in a moment.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

curl 'https://tuti.so/api/v1/posts/42/comments' \
  --header 'Authorization: Bearer YOUR_API_KEY'
const response = await fetch("https://tuti.so/api/v1/posts/42/comments", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY"
  },
});
const text = await response.text();
import requests

response = requests.get(
    "https://tuti.so/api/v1/posts/42/comments",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
)
print(response.text)
{
  "comments": [
    {
      "id": "cm3k9a1bc0002ab12cd34ef56",
      "author": {
        "name": "Olive Owner",
        "team": true
      },
      "body": "Thanks! This is planned for next month.",
      "content": {
        "type": "doc",
        "content": [
          {
            "type": "paragraph",
            "content": [
              {
                "type": "text",
                "text": "The dashboard is too bright at night."
              }
            ]
          }
        ]
      },
      "createdAt": "2026-11-04T14:02:00.000Z",
      "replyTo": null,
      "likes": 2,
      "liked": false,
      "internal": true
    }
  ]
}
{
  "error": {
    "code": "invalid_input",
    "message": "title: Title is too short"
  }
}
{
  "error": {
    "code": "unauthorized",
    "message": "This API key isn't valid or was revoked"
  }
}
{
  "error": {
    "code": "not_found",
    "message": "No such post"
  }
}
{
  "error": {
    "code": "rate_limited",
    "message": "Up to 600 requests a minute per key"
  }
}
{
  "error": {
    "code": "internal_error",
    "message": "Something went wrong"
  }
}