Get a code change with its proposed actions, most likely first
Path parameters
idstring · 1–100 charactersrequiredThe code change's id
Responses
200The code changeapplication/json · object
The code change
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
statestringrequiredIts analysis:
analysing(for up to 30 minutes),ready,nothing_to_do,failedorpaused(out of AI credits, or the plan didn't include code changes)One of
"analysing""ready""nothing_to_do""failed""paused"reasonstringrequiredWhy there's nothing to do, where it failed, or why it's paused; empty otherwise
retryAtstring · nullablerequiredFailed because the AI provider didn't answer: when it's analysed again by itself (null: it isn't)
summarystringrequiredWhat changed for users, as Autopilot read it
waitingintegerrequiredProposed actions waiting for the team
tunedarray of stringrequiredThe Advanced tuning values its analysis ran with that the project changed, by path
whystringrequiredWhy Autopilot proposes its actions
changelogobject · nullablerequiredThe changelog entry with the pull request's bullet, if one has it
ShowHide 2 properties
numberintegerrequiredThe entry's number
titlestringrequiredThe entry's title
actionsarray of CodeChangeActionrequiredIts proposed actions, most likely first
ShowHide 36 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 …")
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

