Take a docs article off the portal, and out of search and AI answers: it's back to a draft, with its unpublished changes as the draft's text
Needs a read + write key.
Tuti APIDocs
Take a docs article off the portal, and out of search and AI answers: it's back to a draft, with its unpublished changes as the draft's text
Needs a read + write key.
/articles/{slug}/unpublishAuthorization Bearer token
slugstring · 1–80 charactersrequiredThe article's slug: the end of its address, /docs/<slug>
200The article, now a draftapplication/json · Article
The article, now a draft
slugstringrequiredIts slug: the end of its address, /docs/<slug>. A draft's follows its title unless the team set it; a published one keeps it
titlestringrequiredIts title
statusstringrequiredpublished on the portal, or a draft only the team sees
One of"published""draft"
publishedAtstring · nullablerequiredWhen it was published (ISO 8601); null for a draft
showUpdatedDatebooleanrequiredWhether the portal shows “Updated <date>” once it's edited after it was published
listingstringrequiredWhere it's served once published: everywhere, unlisted (at its link only), hidden (nowhere public) or ai_only (only a source for AI answers)
One of"everywhere""unlisted""hidden""ai_only"
deletedAtstringWhen it was deleted (ISO 8601): only in the list of deleted articles
collectionobject · nullablerequiredThe collection it's in, or null for none
slugstringrequiredThe collection's slug
namestringrequiredThe collection's name
orderintegerrequiredIts place among the articles in its collection (or in none), 0 first: readers list them by this, then by title
bodystringrequiredIts text as plain text
contentmap of anyrequiredIts text as rich content: the editor's JSON document
urlstringrequiredIts page on the portal
accessstringOnly for the team: who may read it (changes at once, like the listing): inherit, signed_in or groups
One of"inherit""signed_in""groups"
groupsarray of stringOnly for the team: with groups access, the keys of the reader groups that may read it
noAccessstringOnly for the team: what people it isn't for see of it: inherit, lock or hide
One of"inherit""lock""hide"
customSlugbooleanOnly for the team: whether the team set its slug (else it comes from the title)
descriptionstringOnly for the team: its meta description for search engines (empty: from the text)
keywordsarray of stringOnly for the team: words docs search and AI answers find it by besides its text
noindexbooleanOnly for the team: whether search engines are asked not to list it
changesobject · nullableOnly for the team: a published article's saved changes that readers don't see yet (title, text, collection), until articles.publishChanges or articles.discardChanges; null when there are none
titlestringrequiredThe title saved
bodystringrequiredThe text saved, as plain text
contentmap of anyrequiredThe text saved, as rich content
collectionobject · nullablerequiredThe collection saved, or null for none
slugstringrequiredThe collection's slug
namestringrequiredThe collection's name
savedAtstringrequiredWhen they were last saved: send it as savedAt to publish or discard only these (ISO 8601)
createdAtstringrequiredWhen it was written (ISO 8601)
updatedAtstringrequiredWhen it was last changed (ISO 8601)
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
404Nothing by that name, number or id in this project.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/articles/getting-started/unpublish' \
--request POST \
--header 'Authorization: Bearer YOUR_API_KEY'const response = await fetch("https://tuti.so/api/v1/articles/getting-started/unpublish", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY"
},
});
const text = await response.text();import requests
response = requests.post(
"https://tuti.so/api/v1/articles/getting-started/unpublish",
headers={
"Authorization": "Bearer YOUR_API_KEY"
},
)
print(response.text){
"slug": "getting-started",
"title": "Getting started",
"status": "published",
"publishedAt": "2026-11-02T09:30:00.000Z",
"showUpdatedDate": true,
"listing": "everywhere",
"deletedAt": "2026-11-10T08:00:00.000Z",
"collection": {
"slug": "basics",
"name": "Basics"
},
"order": 0,
"body": "Create a board, then share your portal.",
"content": {
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Create a board, then share your portal."
}
]
}
]
},
"url": "https://help.example.com/docs/getting-started",
"access": "inherit",
"groups": [],
"noAccess": "inherit",
"customSlug": false,
"description": "",
"keywords": [
"onboarding"
],
"noindex": false,
"changes": null,
"createdAt": "2026-11-02T09:30:00.000Z",
"updatedAt": "2026-11-02T09:30:00.000Z"
}{
"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": "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"
}
}