Get a post's or an article's review in Autopilot: the pull requests behind it, every update on it, waiting or decided, and what else those pull requests update that still waits
Tuti APIAutopilot
Get a target's updates
/code-change-targets/{type}/{id}Authorization Bearer token
Path parameters
typestringrequiredfeedbackfor a post,articlesfor an articleOne of
"feedback""articles"idstring · 1–100 charactersrequiredThe post's id, or the article's, or for a new article's draft not written yet, its update's id: the part of a
pathfrom codeChanges.targets after the/(the part before it istype)
Responses
200The post's or article's reviewapplication/json · object
The post's or article's review
typestringrequiredA post, or an article
One of
"feedback""articles"titlestringrequiredThe post's or article's title
articleIdstringAn article's id
revisionstring · nullableAn article's newest revision: what Approve publishes, codeChangeActions.apply's
revisionteammateEditbooleanWhether the article's unpublished changes hold a teammate's edit too
changesReadersbooleanWhether its unpublished changes change it as readers see it
outOfDatearray of stringIts waiting edits that are out of date (written on an earlier version): nothing of them shows until they're written again
writingarray of stringThose of them being written again (their pull request analysed again)
writeFailedarray of stringWhy their pull request's last analysis failed, each once
overviewstringWhat the article's waiting edits change, in a few lines; empty for none
updateobject · nullablerequiredA post's update waiting: each pull request's part as one status change with one comment; null for none
ShowHide 8 properties
partsarray of stringrequiredIts parts: each pull request's part, the first merged first
revisionstringrequiredIts version, codeChangeActions.apply's
revision: approving any part approves all of it, only as reviewedkindstringrequiredIts one status change
One of
"resolves""moves_forward"commentstringrequiredIts one comment, theirs joined
statusstringrequiredWaiting for the team while a part does, else going out by itself
One of
"pending""scheduled"applyLikelybooleanrequiredTicked as the page opens
emailsintegerrequiredHow many people approving it emails
waitReasonstring · nullablerequiredWhy it waits as it is: its comment too long to post
reachinteger · nullablerequiredHow many it reaches now: a post's people (author, voters, commenters, subscribers), an article's views in 30 days
askedobject · nullablerequiredA post's: what its users asked; null for an article
ShowHide 5 properties
excerptstringrequiredIts description's first lines
votersarray of objectrequiredIts first voters, up to 4
ShowHide 3 properties
idstringrequirednamestringrequiredimagestring · nullablerequired
voteCountintegerrequiredOf how many
conversationsarray of objectrequiredIts Inbox conversations, up to 3, the latest first
ShowHide 2 properties
numberintegerrequiredsubjectstringrequired
conversationCountintegerrequiredOf how many
alsoarray of objectrequiredWhat the pull requests behind its waiting updates update elsewhere that still waits
ShowHide 6 properties
codeChangeIdstringrequirednumberintegerrequiredIts pull request's number
pathstringrequiredIts review's path, for codeChanges.target
titlestringrequiredThe post's or article's title
kindstringrequiredWhat it does:
linksthe pull request to a post,resolves(completes) a post,moves_forward(a progress update),article_edit,new_article(a draft) orchangelog_lineOne of
"links""resolves""moves_forward""article_edit""new_article""changelog_line"stalebooleanrequiredOut of date (written on an earlier version of its article), so it can't go out until written again
postobject · nullablerequiredThe post (feedback)
ShowHide 10 properties
numberintegerrequiredThe post's number
titlestringrequiredThe post's title
statusstringrequiredIts status
One of
"open""under_review""planned""in_progress""completed""closed"boardstringrequiredIts board's slug
votesintegerrequiredHow many voted for it
commentsintegerrequiredHow many comments it has
authorobjectrequiredWho posted it
ShowHide 1 property
namestringrequiredTheir name
visibilitystringrequiredWho sees it besides the team: everyone, its author, or nobody
One of
"public""private""team"createdAtstringrequiredWhen it was posted
urlstringrequiredThe post on the portal
articleobject · nullablerequiredThe article (or null, for a new article's draft not written yet)
ShowHide 4 properties
slugstringrequiredThe article's slug
titlestringrequiredThe article's title
collectionstring · nullablerequiredIts collection's name; null for none
draftbooleanrequiredA draft: approving an edit keeps it in the draft, which the team publishes from Docs
pullRequestsarray of CodeChangePullRequestrequiredThe pull requests behind its waiting updates (all of them, once none waits), the latest merged first
ShowHide 7 properties
idstringrequiredThe code change's id
repostringrequiredThe repository, as owner/name
numberintegerrequiredThe pull request's number on GitHub
urlstringrequiredThe pull request on GitHub
titlestringrequiredThe pull request's title
authorstringrequiredIts author's GitHub login
mergedAtstringrequiredWhen it merged
changesarray of objectrequiredEvery pull request behind its updates: what it changed for users, and why Autopilot suggests them
ShowHide 9 properties
idstringrequiredThe code change's id
repostringrequiredThe repository, as owner/name
numberintegerrequiredThe pull request's number on GitHub
urlstringrequiredThe pull request on GitHub
titlestringrequiredThe pull request's title
authorstringrequiredIts author's GitHub login
mergedAtstringrequiredWhen it merged
summarystringrequiredWhat it changed for users
whystringrequiredWhy Autopilot suggests its updates
actionsarray of objectrequiredEvery update on it, waiting or decided, most likely first
ShowHide 38 properties
idstringrequiredThe action's id
codeChangeIdstring · nullablerequiredThe code change (pull request) it's from; null for a Verify run's fix
createdAtstringrequiredWhen it was proposed (an article's edits are layered in this order)
reviewPathstring · nullablerequiredWhere it's reviewed under Autopilot:
feedback/<post id>orarticles/<id>(codeChanges.target'stypeandid); null for the changelog linekindstringrequiredWhat it does:
linksthe pull request to a post,resolves(completes) a post,moves_forward(a progress update),article_edit,new_article(a draft) orchangelog_lineOne of
"links""resolves""moves_forward""article_edit""new_article""changelog_line"statusstringrequiredpending(waiting for the team),scheduled(going out by itself after the hold),stale(out of date),applied,dismissedorundoneOne of
"pending""applied""dismissed""stale""undone""scheduled"probabilitynumberrequiredHow sure Autopilot is, 0 to 1
confidencestringrequiredlikelyabove its kind's threshold, elsemaybeOne of
"likely""maybe"applyLikelybooleanrequiredTicked as the review page opens
emailedintegerFor a post it completed or moved to In progress: how many it emailed so (Undo can't take those back)
emailsintegerFor a post it completes or moves forward: how many people approving (or publishing) it emails
reasonstringrequiredWhy Autopilot proposes it
commentstringThe team's comment, for a post it moves forward (as proposed, or as posted once applied; one completing it posted with it too)
postobject · nullablerequiredThe post it updates; null for an article or the changelog
ShowHide 10 properties
numberintegerrequiredThe post's number
titlestringrequiredThe post's title
statusstringrequiredIts status
One of
"open""under_review""planned""in_progress""completed""closed"boardstringrequiredIts board's slug
votesintegerrequiredHow many voted for it
commentsintegerrequiredHow many comments it has
authorobjectrequiredWho posted it
ShowHide 1 property
namestringrequiredTheir name
visibilitystringrequiredWho sees it besides the team: everyone, its author, or nobody
One of
"public""private""team"createdAtstringrequiredWhen it was posted
urlstringrequiredThe post on the portal
articleobject · nullablerequiredThe article it edits (or, for a new article once its draft exists, the draft)
ShowHide 4 properties
slugstringrequiredThe article's slug
titlestringrequiredThe article's title
collectionstring · nullablerequiredIts collection's name; null for none
draftbooleanrequiredA draft: approving an edit keeps it in the draft, which the team publishes from Docs
problemstringAn article edit's: what's wrong with the article, or missing from it
One of
"wrong""missing"beforestringAn article edit's text before (plain text)
afterstringAn article edit's text after, or a new article's text (plain text)
revisionstringAn article edit's own change: its tagged revision
basedOnstring · nullableThe revision that edit was written on
titlestringA new article's title
placeobject · nullableA new article's: where approving saves its draft (null: in no collection). A collection deleted since is none; an article deleted or moved since, last
ShowHide 4 properties
collectionobject · nullablerequiredAn existing collection (its slug, name and Lucide icon)
ShowHide 3 properties
slugstringrequirednamestringrequirediconstring · nullablerequired
newCollectionobject · nullablerequiredA new collection approving makes, readers seeing it only once an article in it is published
ShowHide 2 properties
namestringrequirediconstring · nullablerequired
afterArticleobject · nullablerequiredThe article it goes after; else
first, else lastShowHide 2 properties
slugstringrequiredtitlestringrequired
firstbooleanrequiredIt goes first in its collection
linestringThe pull request's line in the changelog (as proposed, or as written once applied)
decidedBystring · nullablerequiredWho applied, dismissed, undid or stopped it, or held a comment it wasn't sure of: "Autopilot" for one it applied by itself; null while nobody has
autobooleanrequiredApplied by Autopilot itself, nobody approving it
unsurebooleanrequiredAutopilot went to apply it by itself and couldn't tell whether it went out: someone should check
unpublishedbooleanrequiredAn article edit approved into the article's unpublished changes, not published
canUndobooleanrequiredApplied, with what it changed recorded: codeChangeActions.undo can put it back
undoRemovesCollectionstringA new article's draft: the collection approving made, by name, which Undo removes too
putsBackStatusbooleanrequiredUndo puts the post's status back (applying moved it)
togetherarray of stringA post's update applied as one, from several pull requests: its parts (this one among them), which Undo puts back together
decidedAtstring · nullablerequiredWhen it was applied, dismissed, undone or stopped, or its comment held; null while nobody has
dismissReasonstringrequiredWhy it was dismissed, if someone said
dueAtstring · nullablerequiredA scheduled one: when it goes out by itself
wouldHaveGoneOutAtstring · nullablerequiredOne someone stopped: when it would have gone out by itself
waitReasonstring · nullablerequiredWhy it waits for the team after all (it stopped qualifying, or someone stopped it: "Stopped by …")
numberinteger · nullablerequiredIts pull request's number; null for a Verify fix
verificationobject · nullablerequiredFor a Verify fix: the run that wrote it
ShowHide 4 properties
idstringrequiredrepostringrequiredcommitstringrequiredcreatedAtstringrequired
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
errorobjectrequiredShowHide 2 properties
codestringrequiredWhat 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
errorobjectrequiredShowHide 2 properties
codestringrequiredWhat 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
errorobjectrequiredShowHide 2 properties
codestringrequiredWhat 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
errorobjectrequiredShowHide 2 properties
codestringrequiredWhat 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
errorobjectrequiredShowHide 2 properties
codestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change

