Tuti APIAPI references

Get an API reference

Get an API reference as the team sees it: its groups in the team's order, its operations and types, which of them are on the help center, and what the spec's reader couldn't read.

GET/api-references/{slug}

Authorization Bearer token

Path parameters

  • slugstring · 1–80 charactersrequired

    The API reference's slug: its address in the docs

Query parameters

  • specboolean or string

    true adds the spec's text (spec)

Responses

  • 200The API reference

    application/json · object

    The API reference

    • slugstringrequired

      Its address in the docs (/docs/<slug>): from its name when it was added, and kept when it's renamed

    • namestringrequired

      Its name in the docs' tree

    • tabstring · nullablerequired

      Its tab's slug; null when the docs have no tabs

    • formatstringrequired

      What the spec is: OpenAPI, or a GraphQL schema

      One of"openapi""graphql"

    • sourcestringrequired

      Where the spec is read from: text uploaded and replaced by hand (apiReferences.replace), an address (sourceUrl) or a file on GitHub (repoId, path, ref), read again every 6 hours and on apiReferences.sync

      One of"upload""url""github"

    • sourceUrlstring · nullablerequired

      The address a url reference's spec is read from, as a URL parser writes it; null otherwise

    • repoIdinteger · nullablerequired

      GitHub's id for a github reference's repository (githubRepositories.list); null otherwise

    • pathstring · nullablerequired

      The file's path in that repository; null otherwise

    • refstring · nullablerequired

      The branch the file is read on; null otherwise

    • baseUrlstring · nullablerequired

      Where requests go when the spec's servers have no host; null when none is set

    • treeStylestringrequired

      How it sits in the docs' tree: each group a folder (folders) or a heading (headings), or one entry that lists the operations

      One of"folders""headings""entry"

    • tryItbooleanrequired

      Whether readers can send requests from its pages

    • countsobjectrequired

      Its operations, counted

      Show 3 properties
      • operationsintegerrequired

        How many operations the spec has

      • onHelpCenterintegerrequired

        How many of them are on the help center

      • newintegerrequired

        How many a read added since the team last looked

    • publishedbooleanrequired

      Whether it's on the help center: a draft is on it nowhere

    • syncedAtstringrequired

      When the spec was last read successfully

    • syncTriedAtstringrequired

      When its source was last read, whether that worked or not

    • changedAtstringrequired

      When a read last changed what the spec has

    • syncErrorstring · nullablerequired

      Why the last read failed, or found no operations, so the pages stayed as they were; null once one works

    • titlestringrequired

      The API's own name, from the spec; empty when it has none

    • versionstring · nullablerequired

      The API's version, from the spec

    • descriptionstringrequired

      The API's description, from the spec, in Markdown

    • groupsarray of objectrequired

      Its groups, in the team's order

      Show 4 properties
      • keystringrequired

        What the team's order and choices go by: its name in the spec (an OpenAPI tag), or GraphQL's queries, mutations and subscriptions

      • namestringrequired

        Its name

      • descriptionstringrequired

        What it's for, from the spec, in Markdown

      • onHelpCenterbooleanrequired

        Whether the team left the group on the help center

    • groupOrderarray of stringrequired

      The groups' keys the team ordered, in that order; the others come after

    • operationsarray of objectrequired

      Its operations, in the spec's order

      Show 11 properties
      • keystringrequired

        What it's known by across reads, so the team's choices stay: its method and path with each parameter's name left out, or mutation createPost

      • slugstringrequired

        Its page's address under the reference

      • titlestringrequired

        Its title on its page

      • kindstringrequired

        Its method, or GraphQL's query, mutation or subscription

        One of"GET""POST""PUT""PATCH""DELETE""HEAD""OPTIONS""TRACE""query""mutation""subscription"

      • pathstringrequired

        OpenAPI: its path with its parameters. GraphQL: the field's name

      • groupstringrequired

        The key of the group it's listed in

      • alsoInarray of stringrequired

        The keys of the other groups it's in

      • deprecatedbooleanrequired

        Whether the spec marks it deprecated

      • onHelpCenterbooleanrequired

        Whether it's on the help center: it's off when the team took it off itself (hidden), and while a group it's in is

      • hiddenbooleanrequired

        Whether the team took it off the help center itself

      • newbooleanrequired

        Whether a read added it since the team last looked

    • typesarray of objectrequired

      Its named types (OpenAPI's schemas, GraphQL's types)

      Show 4 properties
      • namestringrequired

        Its name in the spec

      • slugstringrequired

        Its page's address under the reference

      • kindstringrequired

        What kind of type it is

        One of"object""input""enum""scalar""union""interface"

      • onHelpCenterbooleanrequired

        Whether it has a page: only while an operation on the help center uses it

    • warningsarray of objectrequired

      What the reader couldn't read, by kind: its pages are built without it

      Show 4 properties
      • codestringrequired

        The kind of problem

      • messagestringrequired

        The problem in a sentence

      • countintegerrequired

        How many places have it

      • wherearray of stringrequired

        The first 20 places in the spec

    • specstring

      The spec's text, with spec=true

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

response = requests.get(
    "https://tuti.so/api/v1/api-references/public-api",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
)
print(response.text)
{
  "slug": "public-api",
  "name": "Public API",
  "tab": "developers",
  "format": "openapi",
  "source": "url",
  "sourceUrl": "https://api.example.com/openapi.json",
  "repoId": null,
  "path": null,
  "ref": null,
  "baseUrl": "https://api.example.com",
  "treeStyle": "folders",
  "tryIt": true,
  "counts": {
    "operations": 24,
    "onHelpCenter": 22,
    "new": 2
  },
  "published": true,
  "syncedAt": "2026-11-19T09:00:00.000Z",
  "syncTriedAt": "2026-11-19T09:00:00.000Z",
  "changedAt": "2026-11-18T16:30:00.000Z",
  "syncError": null,
  "title": "Acme API",
  "version": "1.0.0",
  "description": "The Acme REST API.",
  "groups": [
    {
      "key": "Posts",
      "name": "Posts",
      "description": "Everything about posts.",
      "onHelpCenter": true
    }
  ],
  "groupOrder": [
    "Posts"
  ],
  "operations": [
    {
      "key": "GET /posts/{}",
      "slug": "list-posts",
      "title": "List posts",
      "kind": "GET",
      "path": "/posts/{number}",
      "group": "Posts",
      "alsoIn": [],
      "deprecated": false,
      "onHelpCenter": true,
      "hidden": false,
      "new": false
    }
  ],
  "types": [
    {
      "name": "Post",
      "slug": "post",
      "kind": "object",
      "onHelpCenter": true
    }
  ],
  "warnings": [
    {
      "code": "UNKNOWN_REF",
      "message": "A $ref names a schema the spec doesn't have",
      "count": 1,
      "where": [
        "POST /posts › responses › 400"
      ]
    }
  ],
  "spec": "openapi: 3.1.0\n…"
}
{
  "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"
  }
}