Tuti APIDocs

Get docs insights

Get how the docs did in the last 30 days: views, the top 20 articles, the latest 10 “No” comments, the top 10 searches that found nothing, and the top 20 gaps. Where plans are sold, on a plan with Reporting (402 otherwise)

GET/docs/insights

Authorization Bearer token

Responses

  • 200How the docs did in the last 30 days

    application/json · object

    How the docs did in the last 30 days

    • sincestringrequired

      Where the 30 days start: midnight UTC (ISO 8601)

    • viewsintegerrequired

      Article views in that time

    • articlesarray of objectrequired

      The top 20 articles, most viewed first

      Show 5 properties
      • slugstringrequired

        The article's slug

      • titlestringrequired

        Its title

      • viewsintegerrequired

        Its views

      • helpfulintegerrequired

        How many readers found it helpful

      • notHelpfulintegerrequired

        How many didn't

    • commentsarray of objectrequired

      The latest 10 comments readers left with a “No”

      Show 3 properties
      • articleobjectrequired

        The article it's on

        Show 2 properties
        • slugstringrequired

          The article's slug

        • titlestringrequired

          Its title

      • commentstringrequired

        What the reader said was missing

      • atstringrequired

        When (ISO 8601)

    • searchesobjectrequired

      Searches in the docs

      Show 3 properties
      • totalintegerrequired

        Docs searches

      • failedintegerrequired

        Searches that found nothing

      • topFailedarray of objectrequired

        The 10 searches that found nothing most often, without those dismissed (docs.dismissGap)

        Show 2 properties
        • querystringrequired

          What was searched for

        • countintegerrequired

          How often

    • gapsarray of objectrequired

      Questions the AI couldn't answer or whose answer got a thumbs-down, grouped, most asked first, without those dismissed (docs.dismissGap)

      Show 9 properties
      • questionstringrequired

        The question, as last asked; grouped with the others like it (case and spacing don't matter)

      • followsstring · nullablerequired

        The question the latest asking followed up on (a follow-up such as “And on my phone?” means little alone), or null

      • noAnswerintegerrequired

        How often the AI couldn't answer it

      • causestring · nullablerequired

        Why the latest “I don't know” happened: nothing in the docs was close enough, the AI cited nothing, an article it cited was unpublished meanwhile, the question named an off-limits topic, out of AI credits, or unknown (asked before causes were kept); null when it only got thumbs-down

        One of"no_relevant_section""no_valid_citation""source_unpublished""off_limits""no_credits""unknown"

      • notHelpfulintegerrequired

        How often its answer got a thumbs-down

      • escalatedintegerrequired

        How many were passed to the team (docs.escalate)

      • lastAskedstringrequired

        The latest time it was asked (ISO 8601)

      • answerstring · nullablerequired

        The latest answer that got a thumbs-down, or null

      • articleobject · nullablerequired

        The first article that answer cited that's still there: the one to improve; null for none

        Show 2 properties
        • slugstringrequired

          The article's slug

        • titlestringrequired

          Its title

  • 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

  • 402The project's plan doesn't include this or is at its limit, it's out of AI credits, or a payment didn't go through. The message says what's needed.

    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/docs/insights' \
  --header 'Authorization: Bearer YOUR_API_KEY'
const response = await fetch("https://tuti.so/api/v1/docs/insights", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY"
  },
});
const text = await response.text();
import requests

response = requests.get(
    "https://tuti.so/api/v1/docs/insights",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
)
print(response.text)
{
  "since": "2026-10-21T00:00:00.000Z",
  "views": 1840,
  "articles": [
    {
      "slug": "getting-started",
      "title": "Getting started",
      "views": 412,
      "helpful": 37,
      "notHelpful": 4
    }
  ],
  "comments": [
    {
      "article": {
        "slug": "invite-your-team",
        "title": "Invite your team"
      },
      "comment": "It doesn't say how to invite people by email.",
      "at": "2026-11-18T14:05:00.000Z"
    }
  ],
  "searches": {
    "total": 620,
    "failed": 48,
    "topFailed": [
      {
        "query": "crypto",
        "count": 6
      }
    ]
  },
  "gaps": [
    {
      "question": "Can I pay with crypto?",
      "follows": null,
      "noAnswer": 3,
      "cause": "no_relevant_section",
      "notHelpful": 1,
      "escalated": 1,
      "lastAsked": "2026-11-18T16:20:00.000Z",
      "answer": null,
      "article": null
    }
  ]
}
{
  "error": {
    "code": "unauthorized",
    "message": "This API key isn't valid or was revoked"
  }
}
{
  "error": {
    "code": "plan_required",
    "message": "A custom domain needs the Pro plan. See Settings → Billing."
  }
}
{
  "error": {
    "code": "rate_limited",
    "message": "Up to 600 requests a minute per key"
  }
}
{
  "error": {
    "code": "internal_error",
    "message": "Something went wrong"
  }
}