Read and change a Tuti project from code: its feedback, changelog, docs, inbox, Autopilot, users and portal. Each request acts on the project its key belongs to.
Getting a key
Project owners and admins create keys in the app, in Settings โ Developers. A Read only key runs the operations that read; a Read and write key runs the rest too, except the few that only a person can run, in the app (their description says so). The key is shown once, when it's created.
Authentication
Send the key as a bearer token with every request:
Authorization: Bearer tuti_โฆ
A key acts as the team, with its creator's current role: operations for owners and admins work only while its creator is one, and the key stops working when it's revoked or its creator leaves the team.
Errors
An error has a status and a JSON body: code for code to check, message for people.
{ "error": { "code": "not_found", "message": "There's no post #42" } }
400: the input isn't valid
401: no key, or one that no longer works
402: the project's plan doesn't include it or is at its limit, it's out of AI credits, or a payment didn't go through
403: it isn't allowed (a read-only key, its creator's role, one only a person can run in the app, or a setting that's off)
404: no such thing
409: it conflicts with how things are now
429: too many requests
500: something went wrong on Tuti's side
502: a service Tuti uses failed (e.g. the AI model)
503: a feature isn't set up on this server, or Tuti couldn't start the work just now (try again in a moment)
Paging
Lists that page take limit and cursor and return nextCursor: send it back as cursor for the next page; null means there are no more. Other lists return everything at once, or at most a fixed number (their description gives it).
Rate limits
Up to 600 requests a minute per key. Past that, requests get a 429 with a Retry-After header: the seconds until the next minute starts. Some operations have limits of their own (their description gives them); their 429 has no Retry-After.

