Tuti APIDocs

Verify an article

Verify a published docs article against the project's GitHub repository, and write an Autopilot update fixing what's out of date. Sends repository files (secrets left out) to the AI provider; costs AI credits where used. One runs per article at a time: starting it again returns the one running

Needs a read + write key.

POST/articles/{slug}/verify

Authorization Bearer token

Path parameters

  • slugstring · 1–80 charactersrequired

    The article's slug: the end of its address, /docs/<slug>

Responses

  • 200The run: running while it checks (see articles.verifications), or skipped when run again at the same commit on the same version. Only while the project analyses merged pull requests and has a repository (409 otherwise)

    application/json · ArticleVerification

    The run: running while it checks (see articles.verifications), or skipped when run again at the same commit on the same version. Only while the project analyses merged pull requests and has a repository (409 otherwise)

    • idstringrequired

      The run's id

    • statestringrequired

      running, done, changed (another edit landed while it ran: no fix written), failed, or skipped (verified at this commit already, on the same version)

      One of"running""done""changed""failed""skipped"

    • reasonstringrequired

      Why it failed, was skipped, or wrote no fix; empty otherwise

    • repostringrequired

      The GitHub repository it read (owner/name)

    • commitstringrequired

      The commit of the repository's default branch it read, its latest when it ran

    • revisionstring · nullablerequired

      The article's version it checked: its newest, unpublished changes and every edit waiting in them included

    • countsobjectrequired

      How many statements it found of each kind

      Show 3 properties
      • currentintegerrequired

        Statements still true

      • outdatedintegerrequired

        Statements out of date

      • unclearintegerrequired

        Statements the files can't tell

    • statementsarray of objectrequired

      What it found per statement

      Show 5 properties
      • statementstringrequired

        What the article says, in short

      • sourcestring

        The sentence it's in, quoted from the article

      • verdictstringrequired

        Whether it's still true (current), out of date (outdated), or can't be told (unclear)

        One of"current""outdated""unclear"

      • evidencearray of stringrequired

        The repository's files that show it

      • notestringrequired

        For the team: what the code says

    • fixobject · nullablerequired

      Its fix for what's out of date, and what became of it; null when it wrote none

      Show 6 properties
      • idstringrequired

        The fix's id: an Autopilot update (codeChangeActions.dismiss, .undo)

      • statusstringrequired

        waiting: it waits for the team on the article's review (codeChanges.target), approved (with the article's changes), dismissed or undone

        One of"waiting""approved""dismissed""undone"

      • revisionstring · nullablerequired

        The article's version the fix made

      • decidedBystring · nullablerequired

        Who approved, dismissed or undid it

      • decidedAtstring · nullablerequired

        When (ISO 8601)

      • dismissReasonstringrequired

        Why it was dismissed; empty otherwise

    • startedBystring · nullablerequired

      Who started it; null for Autopilot

    • startedReasonstringrequired

      Why Autopilot started it, after pull requests' edits piled up on the article; empty when someone did

    • createdAtstringrequired

      When it started (ISO 8601)

    • finishedAtstring · nullablerequired

      When it finished; null while it runs (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

    • 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

  • 402The project's plan doesn't include this or is at its limit, it's out of AI credits, or a payment didn't go through. The message says what's needed.

    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

  • 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

    • 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

  • 409It can't be done as things are now: for example the post was merged, or someone changed it meanwhile. The code says which.

    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

  • 503This feature isn't set up on this server (for example AI or billing), or Tuti couldn't start the work just now: 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/articles/getting-started/verify' \
  --request POST \
  --header 'Authorization: Bearer YOUR_API_KEY'
const response = await fetch("https://tuti.so/api/v1/articles/getting-started/verify", {
  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/verify",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
)
print(response.text)
{
  "id": "cm3v1a2b3c4d5e6f7g8h9i0j1",
  "state": "done",
  "reason": "",
  "repo": "acme/app",
  "commit": "4f2c9e1b7a3d",
  "revision": "cm3x9a1b2c3d4e5f6g7h8i9j0",
  "counts": {
    "current": 11,
    "outdated": 1,
    "unclear": 2
  },
  "statements": [
    {
      "statement": "Invites expire after 7 days.",
      "source": "An invite link expires after 7 days.",
      "verdict": "outdated",
      "evidence": [
        "src/invites.ts"
      ],
      "note": "Invites now expire after 14 days."
    }
  ],
  "fix": {
    "id": "cm3f1x2y3z4a5b6c7d8e9f0g1",
    "status": "waiting",
    "revision": "cm3x9a1b2c3d4e5f6g7h8i9j2",
    "decidedBy": null,
    "decidedAt": null,
    "dismissReason": ""
  },
  "startedBy": "Ada Admin",
  "startedReason": "",
  "createdAt": "2026-11-02T09:30:00.000Z",
  "finishedAt": "2026-11-02T09:31:12.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": "plan_required",
    "message": "A custom domain needs the Pro plan. See Settings → Billing."
  }
}
{
  "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": "merged",
    "message": "This post was merged into another one; vote there instead"
  }
}
{
  "error": {
    "code": "rate_limited",
    "message": "Up to 600 requests a minute per key"
  }
}