Tuti APIPortal

Get the widget settings

Get the widget's settings: the launcher's name, colour, corner and icon, and the panel's Home.

GET/widget

Authorization Bearer token

Responses

  • 200The widget's settings

    application/json · WidgetSettings

    The widget's settings

    • labelstringrequired

      The launcher's name, a round button: read out by screen readers and its tooltip

    • colorstring · nullablerequired

      The launcher's colour, #rrggbb; null follows the portal's accent colour where it stands out, else the brand green

    • positionstringrequired

      Its corner

      One of"bottom-right""bottom-left"

    • linksarray of PortalLinkrequired

      Home's quick links

      Show 2 properties
      • labelstringrequired

        What it says

      • urlstringrequired

        Where it goes: a full https:// address

    • iconstringrequired

      The launcher's icon as set; on a plan without the launcher's icon it shows chat

      One of"chat""help""megaphone""lightbulb""image"

    • iconImageUploadedImage · nullablerequired

      The uploaded icon, when the icon is image

      Show 4 properties
      • idstringrequired

        The upload's id

      • urlstringrequired

        A lasting link to the image

      • widthintegerrequired

        Its width in pixels

      • heightintegerrequired

        Its height in pixels

    • titlestringrequired

      The panel's Home: its heading, empty for “How can we help?”

    • greetingstringrequired

      The greeting above Home's heading, empty for “Hi there 👋”, with the visitor's first name once their site signs them in

    • hiddenarray of stringrequired

      The parts turned off, gone from Home and the tabs

      Each item one of"docs""messages""feedback""whatsNew"

    • onPortalbooleanrequired

      Whether the launcher shows on every page of the project's own portal too (true for new projects)

    • aiFirstbooleanrequired

      Whether a new message in Messages goes to the docs' AI first, where the server has AI answers and the project has docs, with “Ask a person” to pass it to the team; one with files goes to the team (true for new projects)

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

response = requests.get(
    "https://tuti.so/api/v1/widget",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
)
print(response.text)
{
  "label": "Help & feedback",
  "color": "#5b21b6",
  "position": "bottom-right",
  "links": [
    {
      "label": "Status",
      "url": "https://status.example.com"
    }
  ],
  "icon": "chat",
  "iconImage": {
    "id": "cm3media0001",
    "url": "https://media.example.com/cm3media0001/480.webp",
    "width": 480,
    "height": 120
  },
  "title": "Questions about Acme?",
  "greeting": "",
  "hidden": [
    "whatsNew"
  ],
  "onPortal": true,
  "aiFirst": true
}
{
  "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"
  }
}