Tuti APIDocs

Get AI answers' settings

Get how the docs' AI answers: answer length, instructions and off-limits topics

GET/assistant

Authorization Bearer token

Responses

  • 200The AI answers' settings

    application/json · AssistantSettings

    The AI answers' settings

    • tonestringrequired

      Deprecated, and always empty: a tone is part of instructions

      One of""

    • lengthstringrequired

      How long answers are: short (one to three sentences), medium (a short paragraph) or detailed

      One of"short""medium""detailed"

    • instructionsstringrequired

      Standing instructions for the AI, the tone to write in included

    • offLimitsarray of stringrequired

      Topics the AI doesn't answer: a question that names one gets “I can't help with that here” without asking the AI

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

response = requests.get(
    "https://tuti.so/api/v1/assistant",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
)
print(response.text)
{
  "tone": "",
  "length": "medium",
  "instructions": "Friendly and plain; address the reader as you.",
  "offLimits": [
    "refund",
    "legal advice"
  ]
}
{
  "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"
  }
}