Tuti APIPortal

Get the branding

Get the portal's branding: logos, favicon, colour, links, fonts, the docs' home, its search listing, custom code, and whether it says "Powered by tuti".

GET/branding

Authorization Bearer token

Responses

  • 200The portal's branding

    application/json · Branding

    The portal's branding

    • logoUploadedImage · nullablerequired

      The portal's logo

      Show 4 properties
      • idstringrequired

        The upload's id

      • urlstringrequired

        A lasting link to the image

      • widthintegerrequired

        Its width in pixels

      • heightintegerrequired

        Its height in pixels

    • logoDarkUploadedImage · nullablerequired

      Shown instead of the logo in dark mode; without it the logo shows in both

      Show 4 properties
      • idstringrequired

        The upload's id

      • urlstringrequired

        A lasting link to the image

      • widthintegerrequired

        Its width in pixels

      • heightintegerrequired

        Its height in pixels

    • faviconUploadedImage · nullablerequired

      The portal's favicon

      Show 4 properties
      • idstringrequired

        The upload's id

      • urlstringrequired

        A lasting link to the image

      • widthintegerrequired

        Its width in pixels

      • heightintegerrequired

        Its height in pixels

    • colorstring · nullablerequired

      The accent colour, #rrggbb; null for the brand green

    • headerLinksarray of PortalLinkrequired

      Links in the portal's header

      Show 2 properties
      • labelstringrequired

        What it says

      • urlstringrequired

        Where it goes: a full https:// address

    • footerLinksarray of PortalLinkrequired

      Links in the portal's footer

      Show 2 properties
      • labelstringrequired

        What it says

      • urlstringrequired

        Where it goes: a full https:// address

    • poweredBybooleanrequired

      Whether the footer says "Powered by tuti": always, unless it was turned off (poweredBy false) on a project with a licence or the add-on

    • contentActionsobjectrequired

      What readers can do with an article

      Show 5 properties
      • menubooleanrequired

        The “Copy page” menu at all

      • copyMarkdownbooleanrequired

        Copy as Markdown, in the menu

      • chatGptbooleanrequired

        Open in ChatGPT, in the menu

      • claudebooleanrequired

        Open in Claude, in the menu

      • updatedDatebooleanrequired

        The article's “Updated” date

    • docsHomeobjectrequired

      The docs' home

      Show 3 properties
      • titlestring · at most 80 charactersrequired

        The title at its top; empty for the default; up to 80 characters

      • subtitlestring · at most 200 charactersrequired

        The subtitle under it; empty for the default; up to 200 characters

      • popularbooleanrequired

        Whether each tab's overview lists its most-read articles, once there are three (on for new projects)

    • colorSchemestringrequired

      Light or dark mode for readers who haven't picked one; system is their device's

      One of"system""light""dark"

    • themeSwitchbooleanrequired

      Whether readers get a light/dark switch in the portal's footer; off, every reader gets colorScheme, except under a path of your site, where a theme the site keeps stays

    • logoTextstringrequired

      Text beside the logo (empty: none; without a logo, the project's name shows)

    • logoLinkstring · nullablerequired

      Where the logo goes, an https address; null for the portal's home

    • sidebarLinksarray of PortalLinkrequired

      Links above the docs' tree

      Show 2 properties
      • labelstringrequired

        What it says

      • urlstringrequired

        Where it goes: a full https:// address

    • seoobjectrequired

      The portal's search listing, and how it shows where it's shared

      Show 2 properties
      • titlestring · at most 70 charactersrequired

        Its title; empty for the project's name; up to 70 characters

      • descriptionstring · at most 160 charactersrequired

        Its description; up to 160 characters

    • seoImageUploadedImage · nullablerequired

      The image a link to the portal shows

      Show 4 properties
      • idstringrequired

        The upload's id

      • urlstringrequired

        A lasting link to the image

      • widthintegerrequired

        Its width in pixels

      • heightintegerrequired

        Its height in pixels

    • fontsobjectrequired

      Fonts for headings and for text, from the portal fonts; null for the page's own

      Show 2 properties
      • headingstring · nullablerequired

        For headings

        One of"inter""roboto""open-sans""lato""montserrat""poppins""source-sans-3""nunito""work-sans""dm-sans""manrope""ibm-plex-sans""space-grotesk""merriweather""lora""playfair-display"

      • bodystring · nullablerequired

        For text

        One of"inter""roboto""open-sans""lato""montserrat""poppins""source-sans-3""nunito""work-sans""dm-sans""manrope""ibm-plex-sans""space-grotesk""merriweather""lora""playfair-display"

    • customCssstringrequired

      The team's CSS, on every portal page

    • customHtmlstringrequired

      The team's HTML, scripts too, at the end of each page, only where the portal is on your own domain or a path of your site: never on its Tuti address, in the widget or on the app's own domain

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

response = requests.get(
    "https://tuti.so/api/v1/branding",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
)
print(response.text)
{
  "logo": {
    "id": "cm3media0001",
    "url": "https://media.example.com/cm3media0001/480.webp",
    "width": 480,
    "height": 120
  },
  "logoDark": {
    "id": "cm3media0001",
    "url": "https://media.example.com/cm3media0001/480.webp",
    "width": 480,
    "height": 120
  },
  "favicon": {
    "id": "cm3media0001",
    "url": "https://media.example.com/cm3media0001/480.webp",
    "width": 480,
    "height": 120
  },
  "color": "#5b21b6",
  "headerLinks": [
    {
      "label": "Status",
      "url": "https://status.example.com"
    }
  ],
  "footerLinks": [
    {
      "label": "Status",
      "url": "https://status.example.com"
    }
  ],
  "poweredBy": true,
  "contentActions": {
    "menu": true,
    "copyMarkdown": true,
    "chatGpt": true,
    "claude": true,
    "updatedDate": true
  },
  "docsHome": {
    "title": "Acme Help Center",
    "subtitle": "Guides and answers for every part of Acme",
    "popular": true
  },
  "colorScheme": "system",
  "themeSwitch": true,
  "logoText": "Help",
  "logoLink": "https://example.com",
  "sidebarLinks": [
    {
      "label": "Status",
      "url": "https://status.example.com"
    }
  ],
  "seo": {
    "title": "Acme Help Center",
    "description": "Guides and answers for every part of Acme"
  },
  "seoImage": {
    "id": "cm3media0001",
    "url": "https://media.example.com/cm3media0001/480.webp",
    "width": 480,
    "height": 120
  },
  "fonts": {
    "heading": "inter",
    "body": null
  },
  "customCss": "",
  "customHtml": ""
}
{
  "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"
  }
}