Tuti APIAutopilot

Get a target's updates

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

GET/code-change-targets/{type}/{id}

Authorization Bearer token

Path parameters

  • typestringrequired

    feedback for a post, articles for an article

    One of"feedback""articles"

  • idstring · 1–100 charactersrequired

    The 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 path from codeChanges.targets after the / (the part before it is type)

Responses

  • 200The post's or article's review

    application/json · object

    The post's or article's review

    • typestringrequired

      A post, or an article

      One of"feedback""articles"

    • titlestringrequired

      The post's or article's title

    • articleIdstring

      An article's id

    • revisionstring · nullable

      An article's newest revision: what Approve publishes, codeChangeActions.apply's revision

    • teammateEditboolean

      Whether the article's unpublished changes hold a teammate's edit too

    • changesReadersboolean

      Whether its unpublished changes change it as readers see it

    • outOfDatearray of string

      Its waiting edits that are out of date (written on an earlier version): nothing of them shows until they're written again

    • writingarray of string

      Those of them being written again (their pull request analysed again)

    • writeFailedarray of string

      Why their pull request's last analysis failed, each once

    • overviewstring

      What the article's waiting edits change, in a few lines; empty for none

    • updateobject · nullablerequired

      A post's update waiting: each pull request's part as one status change with one comment; null for none

      Show 8 properties
      • partsarray of stringrequired

        Its parts: each pull request's part, the first merged first

      • revisionstringrequired

        Its version, codeChangeActions.apply's revision: approving any part approves all of it, only as reviewed

      • kindstringrequired

        Its one status change

        One of"resolves""moves_forward"

      • commentstringrequired

        Its one comment, theirs joined

      • statusstringrequired

        Waiting for the team while a part does, else going out by itself

        One of"pending""scheduled"

      • applyLikelybooleanrequired

        Ticked as the page opens

      • emailsintegerrequired

        How many people approving it emails

      • waitReasonstring · nullablerequired

        Why it waits as it is: its comment too long to post

    • reachinteger · nullablerequired

      How many it reaches now: a post's people (author, voters, commenters, subscribers), an article's views in 30 days

    • askedobject · nullablerequired

      A post's: what its users asked; null for an article

      Show 5 properties
      • excerptstringrequired

        Its description's first lines

      • votersarray of objectrequired

        Its first voters, up to 4

        Show 3 properties
        • idstringrequired
        • namestringrequired
        • imagestring · nullablerequired
      • voteCountintegerrequired

        Of how many

      • conversationsarray of objectrequired

        Its Inbox conversations, up to 3, the latest first

        Show 2 properties
        • numberintegerrequired
        • subjectstringrequired
      • conversationCountintegerrequired

        Of how many

    • alsoarray of objectrequired

      What the pull requests behind its waiting updates update elsewhere that still waits

      Show 6 properties
      • codeChangeIdstringrequired
      • numberintegerrequired

        Its pull request's number

      • pathstringrequired

        Its review's path, for codeChanges.target

      • titlestringrequired

        The post's or article's title

      • kindstringrequired

        What it does: links the pull request to a post, resolves (completes) a post, moves_forward (a progress update), article_edit, new_article (a draft) or changelog_line

        One of"links""resolves""moves_forward""article_edit""new_article""changelog_line"

      • stalebooleanrequired

        Out of date (written on an earlier version of its article), so it can't go out until written again

    • postobject · nullablerequired

      The post (feedback)

      Show 10 properties
      • numberintegerrequired

        The post's number

      • titlestringrequired

        The post's title

      • statusstringrequired

        Its status

        One of"open""under_review""planned""in_progress""completed""closed"

      • boardstringrequired

        Its board's slug

      • votesintegerrequired

        How many voted for it

      • commentsintegerrequired

        How many comments it has

      • authorobjectrequired

        Who posted it

        Show 1 property
        • namestringrequired

          Their name

      • visibilitystringrequired

        Who sees it besides the team: everyone, its author, or nobody

        One of"public""private""team"

      • createdAtstringrequired

        When it was posted

      • urlstringrequired

        The post on the portal

    • articleobject · nullablerequired

      The article (or null, for a new article's draft not written yet)

      Show 4 properties
      • slugstringrequired

        The article's slug

      • titlestringrequired

        The article's title

      • collectionstring · nullablerequired

        Its collection's name; null for none

      • draftbooleanrequired

        A draft: approving an edit keeps it in the draft, which the team publishes from Docs

    • pullRequestsarray of CodeChangePullRequestrequired

      The pull requests behind its waiting updates (all of them, once none waits), the latest merged first

      Show 7 properties
      • idstringrequired

        The code change's id

      • repostringrequired

        The repository, as owner/name

      • numberintegerrequired

        The pull request's number on GitHub

      • urlstringrequired

        The pull request on GitHub

      • titlestringrequired

        The pull request's title

      • authorstringrequired

        Its author's GitHub login

      • mergedAtstringrequired

        When it merged

    • changesarray of objectrequired

      Every pull request behind its updates: what it changed for users, and why Autopilot suggests them

      Show 9 properties
      • idstringrequired

        The code change's id

      • repostringrequired

        The repository, as owner/name

      • numberintegerrequired

        The pull request's number on GitHub

      • urlstringrequired

        The pull request on GitHub

      • titlestringrequired

        The pull request's title

      • authorstringrequired

        Its author's GitHub login

      • mergedAtstringrequired

        When it merged

      • summarystringrequired

        What it changed for users

      • whystringrequired

        Why Autopilot suggests its updates

    • actionsarray of objectrequired

      Every update on it, waiting or decided, most likely first

      Show 38 properties
      • idstringrequired

        The action's id

      • codeChangeIdstring · nullablerequired

        The code change (pull request) it's from; null for a Verify run's fix

      • createdAtstringrequired

        When it was proposed (an article's edits are layered in this order)

      • reviewPathstring · nullablerequired

        Where it's reviewed under Autopilot: feedback/<post id> or articles/<id> (codeChanges.target's type and id); null for the changelog line

      • kindstringrequired

        What it does: links the pull request to a post, resolves (completes) a post, moves_forward (a progress update), article_edit, new_article (a draft) or changelog_line

        One of"links""resolves""moves_forward""article_edit""new_article""changelog_line"

      • statusstringrequired

        pending (waiting for the team), scheduled (going out by itself after the hold), stale (out of date), applied, dismissed or undone

        One of"pending""applied""dismissed""stale""undone""scheduled"

      • probabilitynumberrequired

        How sure Autopilot is, 0 to 1

      • confidencestringrequired

        likely above its kind's threshold, else maybe

        One of"likely""maybe"

      • applyLikelybooleanrequired

        Ticked as the review page opens

      • emailedinteger

        For a post it completed or moved to In progress: how many it emailed so (Undo can't take those back)

      • emailsinteger

        For a post it completes or moves forward: how many people approving (or publishing) it emails

      • reasonstringrequired

        Why Autopilot proposes it

      • commentstring

        The team's comment, for a post it moves forward (as proposed, or as posted once applied; one completing it posted with it too)

      • postobject · nullablerequired

        The post it updates; null for an article or the changelog

        Show 10 properties
        • numberintegerrequired

          The post's number

        • titlestringrequired

          The post's title

        • statusstringrequired

          Its status

          One of"open""under_review""planned""in_progress""completed""closed"

        • boardstringrequired

          Its board's slug

        • votesintegerrequired

          How many voted for it

        • commentsintegerrequired

          How many comments it has

        • authorobjectrequired

          Who posted it

          Show 1 property
          • namestringrequired

            Their name

        • visibilitystringrequired

          Who sees it besides the team: everyone, its author, or nobody

          One of"public""private""team"

        • createdAtstringrequired

          When it was posted

        • urlstringrequired

          The post on the portal

      • articleobject · nullablerequired

        The article it edits (or, for a new article once its draft exists, the draft)

        Show 4 properties
        • slugstringrequired

          The article's slug

        • titlestringrequired

          The article's title

        • collectionstring · nullablerequired

          Its collection's name; null for none

        • draftbooleanrequired

          A draft: approving an edit keeps it in the draft, which the team publishes from Docs

      • problemstring

        An article edit's: what's wrong with the article, or missing from it

        One of"wrong""missing"

      • beforestring

        An article edit's text before (plain text)

      • afterstring

        An article edit's text after, or a new article's text (plain text)

      • revisionstring

        An article edit's own change: its tagged revision

      • basedOnstring · nullable

        The revision that edit was written on

      • titlestring

        A new article's title

      • placeobject · nullable

        A 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

        Show 4 properties
        • collectionobject · nullablerequired

          An existing collection (its slug, name and Lucide icon)

          Show 3 properties
          • slugstringrequired
          • namestringrequired
          • iconstring · nullablerequired
        • newCollectionobject · nullablerequired

          A new collection approving makes, readers seeing it only once an article in it is published

          Show 2 properties
          • namestringrequired
          • iconstring · nullablerequired
        • afterArticleobject · nullablerequired

          The article it goes after; else first, else last

          Show 2 properties
          • slugstringrequired
          • titlestringrequired
        • firstbooleanrequired

          It goes first in its collection

      • linestring

        The pull request's line in the changelog (as proposed, or as written once applied)

      • decidedBystring · nullablerequired

        Who 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

      • autobooleanrequired

        Applied by Autopilot itself, nobody approving it

      • unsurebooleanrequired

        Autopilot went to apply it by itself and couldn't tell whether it went out: someone should check

      • unpublishedbooleanrequired

        An article edit approved into the article's unpublished changes, not published

      • canUndobooleanrequired

        Applied, with what it changed recorded: codeChangeActions.undo can put it back

      • undoRemovesCollectionstring

        A new article's draft: the collection approving made, by name, which Undo removes too

      • putsBackStatusbooleanrequired

        Undo puts the post's status back (applying moved it)

      • togetherarray of string

        A post's update applied as one, from several pull requests: its parts (this one among them), which Undo puts back together

      • decidedAtstring · nullablerequired

        When it was applied, dismissed, undone or stopped, or its comment held; null while nobody has

      • dismissReasonstringrequired

        Why it was dismissed, if someone said

      • dueAtstring · nullablerequired

        A scheduled one: when it goes out by itself

      • wouldHaveGoneOutAtstring · nullablerequired

        One someone stopped: when it would have gone out by itself

      • waitReasonstring · nullablerequired

        Why it waits for the team after all (it stopped qualifying, or someone stopped it: "Stopped by …")

      • numberinteger · nullablerequired

        Its pull request's number; null for a Verify fix

      • verificationobject · nullablerequired

        For a Verify fix: the run that wrote it

        Show 4 properties
        • idstringrequired
        • repostringrequired
        • commitstringrequired
        • createdAtstringrequired
  • 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

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What 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

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 404Nothing by that name, number or id in this project.

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

response = requests.get(
    "https://tuti.so/api/v1/code-change-targets/feedback/cm3x9post0000000000000000",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
)
print(response.text)
{
  "type": "feedback",
  "title": "Repeating events",
  "articleId": "cm3x9article00000000000000",
  "revision": "cm3x9rev10000000000000000",
  "teammateEdit": false,
  "changesReaders": true,
  "outOfDate": [],
  "writing": [],
  "writeFailed": [],
  "overview": "Adds weekly repeats to the events guide.",
  "update": {
    "parts": [
      "cm3x9a1b2c3d4e5f6g7h8i9j1"
    ],
    "revision": "Xq3t9b2LmP0aZk1e",
    "kind": "resolves",
    "comment": "Weekly repeats are out today.",
    "status": "pending",
    "applyLikely": true,
    "emails": 14,
    "waitReason": null
  },
  "reach": 37,
  "asked": {
    "excerpt": "It would help to repeat our standup every week.",
    "voters": [
      {
        "id": "cm3x9user0000000000000000",
        "name": "Pat Reader",
        "image": null
      }
    ],
    "voteCount": 12,
    "conversations": [
      {
        "number": 7,
        "subject": "Recurring events?"
      }
    ],
    "conversationCount": 1
  },
  "also": [
    {
      "codeChangeId": "cm3x9a1b2c3d4e5f6g7h8i9j0",
      "number": 412,
      "path": "articles/cm3x9article00000000000000",
      "title": "Repeating events",
      "kind": "resolves",
      "stale": false
    }
  ],
  "post": {
    "number": 42,
    "title": "Repeating events",
    "status": "planned",
    "board": "feature-requests",
    "votes": 12,
    "comments": 3,
    "author": {
      "name": "Pat Reader"
    },
    "visibility": "public",
    "createdAt": "2026-11-18T09:30:00.000Z",
    "url": "https://acme.tuti.so/feedback/feature-requests/repeating-events-42"
  },
  "article": null,
  "pullRequests": [
    {
      "id": "cm3x9a1b2c3d4e5f6g7h8i9j0",
      "repo": "acme/app",
      "number": 412,
      "url": "https://github.com/acme/app/pull/412",
      "title": "Add weekly repeats",
      "author": "octocat",
      "mergedAt": "2026-11-18T09:30:00.000Z"
    }
  ],
  "changes": [
    {
      "id": "cm3x9a1b2c3d4e5f6g7h8i9j0",
      "repo": "acme/app",
      "number": 412,
      "url": "https://github.com/acme/app/pull/412",
      "title": "Add weekly repeats",
      "author": "octocat",
      "mergedAt": "2026-11-18T09:30:00.000Z",
      "summary": "Events can repeat weekly.",
      "why": "Two posts ask for this."
    }
  ],
  "actions": [
    {
      "id": "cm3x9a1b2c3d4e5f6g7h8i9j1",
      "codeChangeId": "cm3x9a1b2c3d4e5f6g7h8i9j0",
      "createdAt": "2026-11-18T09:30:00.000Z",
      "reviewPath": "feedback/cm3x9post0000000000000000",
      "kind": "resolves",
      "status": "pending",
      "probability": 0.92,
      "confidence": "likely",
      "applyLikely": true,
      "emailed": 0,
      "emails": 14,
      "reason": "The pull request ships weekly repeats, which this post asks for.",
      "comment": "Weekly repeats are out today; monthly ones are next.",
      "post": {
        "number": 42,
        "title": "Repeating events",
        "status": "planned",
        "board": "feature-requests",
        "votes": 12,
        "comments": 3,
        "author": {
          "name": "Pat Reader"
        },
        "visibility": "public",
        "createdAt": "2026-11-18T09:30:00.000Z",
        "url": "https://acme.tuti.so/feedback/feature-requests/repeating-events-42"
      },
      "article": null,
      "problem": "wrong",
      "before": "Events happen once.",
      "after": "Events can repeat every week.",
      "revision": "cm3x9rev10000000000000000",
      "basedOn": "cm3x9rev00000000000000000",
      "title": "Repeating events",
      "place": {
        "collection": {
          "slug": "events",
          "name": "Events",
          "icon": "calendar"
        },
        "newCollection": {
          "name": "Scheduling",
          "icon": "clock"
        },
        "afterArticle": {
          "slug": "create-an-event",
          "title": "Create an event"
        },
        "first": false
      },
      "line": "Events can repeat weekly.",
      "decidedBy": null,
      "auto": false,
      "unsure": false,
      "unpublished": false,
      "canUndo": false,
      "undoRemovesCollection": "Scheduling",
      "putsBackStatus": false,
      "together": [
        "cm3x9a1b2c3d4e5f6g7h8i9j1",
        "cm3x9a1b2c3d4e5f6g7h8i9j2"
      ],
      "decidedAt": null,
      "dismissReason": "",
      "dueAt": null,
      "wouldHaveGoneOutAt": null,
      "waitReason": null,
      "number": 412,
      "verification": null
    }
  ]
}
{
  "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": "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"
  }
}