Tuti APIDocs

List tabs

List the docs' tabs in order, with what each one's path shows (see tabs.update). Without tabs, the docs are one page

GET/tabs

Authorization Bearer token

Responses

  • 200The docs' tabs

    application/json · object

    The docs' tabs

    • tabsarray of DocsTabrequired

      The tabs, in order; empty when the docs have none

      Show 9 properties
      • slugstringrequired

        Its slug, from its name: the end of its address, /docs/<slug>

      • namestringrequired

        Its name

      • orderintegerrequired

        Its place among the tabs, 0 first: readers see the first one when they open the docs

      • accessstringrequired

        Who may read it, on top of the levels above it: inherit, signed_in or groups (readers in one of groups)

        One of"inherit""signed_in""groups"

      • groupsarray of stringrequired

        With groups access, the keys of the reader groups that may read it

      • noAccessstringrequired

        What people it isn't for see of it: inherit, lock (listed with a lock) or hide

        One of"inherit""lock""hide"

      • collectionsintegerrequired

        How many top-level collections it has (each with the ones in it)

      • landingstringrequired

        What its path shows: an overview (search and a card per top-level collection), its first article in reading order, or a page the team picked

        One of"overview""first""page"

      • landingPagestring · nullablerequired

        With page: the slug of the article or collection it shows (null once it's deleted)

  • 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

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

response = requests.get(
    "https://tuti.so/api/v1/tabs",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
)
print(response.text)
{
  "tabs": [
    {
      "slug": "guides",
      "name": "Guides",
      "order": 0,
      "access": "inherit",
      "groups": [],
      "noAccess": "inherit",
      "collections": 3,
      "landing": "overview",
      "landingPage": null
    }
  ]
}
{
  "error": {
    "code": "unauthorized",
    "message": "This API key isn't valid or was revoked"
  }
}
{
  "error": {
    "code": "rate_limited",
    "message": "Up to 600 requests a minute per key"
  }
}
{
  "error": {
    "code": "internal_error",
    "message": "Something went wrong"
  }
}