Set the portal's and its docs' look. Fields left out stay as they are; a list sent replaces the list.
Needs a read + write key.
Tuti APIPortal
Set the portal's and its docs' look. Fields left out stay as they are; a list sent replaces the list.
Needs a read + write key.
/brandingAuthorization Bearer token
application/json · object · required
logostring · nullable · at least 1 characterThe portal's logo: the id of one of the images uploaded in the app, null to remove
logoDarkstring · nullable · at least 1 characterShown instead of the logo in dark mode; without it the logo shows in both: the id of one of the images uploaded in the app, null to remove
faviconstring · nullable · at least 1 characterThe portal's favicon: the id of one of the images uploaded in the app, null to remove
colorstring · nullable · matches ^#[0-9a-f]{6}$The accent colour, #rrggbb; null for the brand green
headerLinksarray of object · at most 5 itemsLinks in the portal's header, up to 5 https links (replaces the list)
labelstring · 1–40 charactersrequiredWhat it says, up to 40 characters
urlstring · at most 500 charactersrequiredWhere it goes: a full https:// address
footerLinksarray of object · at most 5 itemsLinks in the portal's footer, up to 5 https links (replaces the list)
labelstring · 1–40 charactersrequiredWhat it says, up to 40 characters
urlstring · at most 500 charactersrequiredWhere it goes: a full https:// address
poweredBybooleanWhether the footer says "Powered by tuti". false needs a licence for the project; where plans are sold, as on tuti.so, the "Powered by tuti" add-on on its paid plan instead
contentActionsobjectWhat readers can do with an article: each true or false
menubooleanThe “Copy page” menu at all
copyMarkdownbooleanCopy as Markdown, in the menu
chatGptbooleanOpen in ChatGPT, in the menu
claudebooleanOpen in Claude, in the menu
updatedDatebooleanThe article's “Updated” date
docsHomeobjectThe docs' home: a title and subtitle at its top, empty for the defaults, and its popular articles
titlestring · at most 80 charactersThe title at its top; empty for the default; up to 80 characters
subtitlestring · at most 200 charactersThe subtitle under it; empty for the default; up to 200 characters
popularbooleanWhether each tab's overview lists its most-read articles, once there are three (on for new projects)
colorSchemestringLight or dark mode for readers who haven't picked one; system is their device's
One of"system""light""dark"
themeSwitchbooleanWhether 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
logoTextstring · at most 40 charactersText beside the logo (empty: none; without a logo, the project's name shows); up to 40 characters
logoLinkstring · nullable · at most 500 charactersWhere the logo goes, an https address; null for the portal's home
sidebarLinksarray of object · at most 5 itemsLinks above the docs' tree, up to 5 (replaces the list)
labelstring · 1–40 charactersrequiredWhat it says, up to 40 characters
urlstring · at most 500 charactersrequiredWhere it goes: a full https:// address
seoobjectThe portal's search listing, and how it shows where it's shared
titlestring · at most 70 charactersIts title; empty for the project's name; up to 70 characters
descriptionstring · at most 160 charactersIts description; up to 160 characters
seoImagestring · nullable · at least 1 characterThe image a link to the portal shows: the id of one of the images uploaded in the app, null to remove
fontsobjectFonts for headings and for text, from the portal fonts; null for the page's own
headingstring · nullableFor 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 · nullableFor 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"
customCssstring · at most 50000 charactersThe team's CSS, on every portal page; up to 50000 characters
customHtmlstring · at most 50000 charactersThe 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; up to 50000 characters
200The portal's branding, as changedapplication/json · Branding
The portal's branding, as changed
logoUploadedImage · nullablerequiredThe portal's logo
idstringrequiredThe upload's id
urlstringrequiredA lasting link to the image
widthintegerrequiredIts width in pixels
heightintegerrequiredIts height in pixels
logoDarkUploadedImage · nullablerequiredShown instead of the logo in dark mode; without it the logo shows in both
idstringrequiredThe upload's id
urlstringrequiredA lasting link to the image
widthintegerrequiredIts width in pixels
heightintegerrequiredIts height in pixels
faviconUploadedImage · nullablerequiredThe portal's favicon
idstringrequiredThe upload's id
urlstringrequiredA lasting link to the image
widthintegerrequiredIts width in pixels
heightintegerrequiredIts height in pixels
colorstring · nullablerequiredThe accent colour, #rrggbb; null for the brand green
headerLinksarray of PortalLinkrequiredLinks in the portal's header
labelstringrequiredWhat it says
urlstringrequiredWhere it goes: a full https:// address
footerLinksarray of PortalLinkrequiredLinks in the portal's footer
labelstringrequiredWhat it says
urlstringrequiredWhere it goes: a full https:// address
poweredBybooleanrequiredWhether the footer says "Powered by tuti": always, unless it was turned off (poweredBy false) on a project with a licence or the add-on
contentActionsobjectrequiredWhat readers can do with an article
menubooleanrequiredThe “Copy page” menu at all
copyMarkdownbooleanrequiredCopy as Markdown, in the menu
chatGptbooleanrequiredOpen in ChatGPT, in the menu
claudebooleanrequiredOpen in Claude, in the menu
updatedDatebooleanrequiredThe article's “Updated” date
docsHomeobjectrequiredThe docs' home
titlestring · at most 80 charactersrequiredThe title at its top; empty for the default; up to 80 characters
subtitlestring · at most 200 charactersrequiredThe subtitle under it; empty for the default; up to 200 characters
popularbooleanrequiredWhether each tab's overview lists its most-read articles, once there are three (on for new projects)
colorSchemestringrequiredLight or dark mode for readers who haven't picked one; system is their device's
One of"system""light""dark"
themeSwitchbooleanrequiredWhether 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
logoTextstringrequiredText beside the logo (empty: none; without a logo, the project's name shows)
logoLinkstring · nullablerequiredWhere the logo goes, an https address; null for the portal's home
sidebarLinksarray of PortalLinkrequiredLinks above the docs' tree
labelstringrequiredWhat it says
urlstringrequiredWhere it goes: a full https:// address
seoobjectrequiredThe portal's search listing, and how it shows where it's shared
titlestring · at most 70 charactersrequiredIts title; empty for the project's name; up to 70 characters
descriptionstring · at most 160 charactersrequiredIts description; up to 160 characters
seoImageUploadedImage · nullablerequiredThe image a link to the portal shows
idstringrequiredThe upload's id
urlstringrequiredA lasting link to the image
widthintegerrequiredIts width in pixels
heightintegerrequiredIts height in pixels
fontsobjectrequiredFonts for headings and for text, from the portal fonts; null for the page's own
headingstring · nullablerequiredFor 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 · nullablerequiredFor 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"
customCssstringrequiredThe team's CSS, on every portal page
customHtmlstringrequiredThe 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
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
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat 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
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
403It isn't allowed: the key is read-only, its creator isn't a project owner or admin where only they may, only a person can do it in the app, a setting is off, or someone's address isn't confirmed. The code says which.application/json · Error
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
409It can't be done as things are now: for example the post was merged, or someone changed it meanwhile. The code says which.application/json · Error
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat 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
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
500Something went wrong on Tuti's side. Try again in a moment.application/json · Error
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
curl 'https://tuti.so/api/v1/branding' \
--request PATCH \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"color": "#5b21b6",
"headerLinks": [
{
"label": "Docs",
"url": "https://docs.example.com"
}
],
"footerLinks": [
{
"label": "Privacy",
"url": "https://example.com/privacy"
}
],
"poweredBy": false
}'const response = await fetch("https://tuti.so/api/v1/branding", {
method: "PATCH",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"color": "#5b21b6",
"headerLinks": [
{
"label": "Docs",
"url": "https://docs.example.com"
}
],
"footerLinks": [
{
"label": "Privacy",
"url": "https://example.com/privacy"
}
],
"poweredBy": false
}),
});
const text = await response.text();import requests
response = requests.patch(
"https://tuti.so/api/v1/branding",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
data="{\n \"color\": \"#5b21b6\",\n \"headerLinks\": [\n {\n \"label\": \"Docs\",\n \"url\": \"https://docs.example.com\"\n }\n ],\n \"footerLinks\": [\n {\n \"label\": \"Privacy\",\n \"url\": \"https://example.com/privacy\"\n }\n ],\n \"poweredBy\": false\n}",
)
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": "invalid_input",
"message": "title: Title is too short"
}
}{
"error": {
"code": "unauthorized",
"message": "This API key isn't valid or was revoked"
}
}{
"error": {
"code": "forbidden",
"message": "This key can only read. Create a read + write key to change things."
}
}{
"error": {
"code": "merged",
"message": "This post was merged into another one; vote there instead"
}
}{
"error": {
"code": "rate_limited",
"message": "Up to 600 requests a minute per key"
}
}{
"error": {
"code": "internal_error",
"message": "Something went wrong"
}
}