Tuti APIAutopilot

List code changes

List code changes (Autopilot): the latest 100 merged pull requests, each with how many updates it suggests waiting for the team; those with updates waiting first

GET/code-changes

Authorization Bearer token

Responses

  • 200The project's code changes

    application/json · object

    The project's code changes

    • codeChangesarray of CodeChangerequired

      Those with updates waiting first, then the latest merged first

      Show 15 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

      • statestringrequired

        Its analysis: analysing (for up to 30 minutes), ready, nothing_to_do, failed or paused (out of AI credits, or the plan didn't include code changes)

        One of"analysing""ready""nothing_to_do""failed""paused"

      • reasonstringrequired

        Why there's nothing to do, where it failed, or why it's paused; empty otherwise

      • retryAtstring · nullablerequired

        Failed because the AI provider didn't answer: when it's analysed again by itself (null: it isn't)

      • summarystringrequired

        What changed for users, as Autopilot read it

      • waitingintegerrequired

        Proposed actions waiting for the team

      • tunedarray of stringrequired

        The Advanced tuning values its analysis ran with that the project changed, by path

      • scheduledarray of stringrequired

        Its updates going out by themselves (for publishNow and stop), by id

      • nextDueAtstring · nullablerequired

        When the first of those goes

  • 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

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

response = requests.get(
    "https://tuti.so/api/v1/code-changes",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
)
print(response.text)
{
  "codeChanges": [
    {
      "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",
      "state": "ready",
      "reason": "",
      "retryAt": null,
      "summary": "Events can repeat weekly.",
      "waiting": 2,
      "tuned": [
        "decide.rounds"
      ],
      "scheduled": [],
      "nextDueAt": null
    }
  ]
}
{
  "error": {
    "code": "unauthorized",
    "message": "This API key isn't valid or was revoked"
  }
}
{
  "error": {
    "code": "rate_limited",
    "message": "Up to 600 requests a minute per key"
  }
}
{
  "error": {
    "code": "internal_error",
    "message": "Something went wrong"
  }
}