Tuti APIDocs

Search articles

Search the published docs articles: best matches first, at most limit, each with the passage that matched

GET/search/articles

Authorization Bearer token

Query parameters

  • qstring · 1–200 charactersrequired

    What to search for, up to 200 characters. Each word also matches the words it starts ("sig" finds "signing"), so it works as someone types

  • limitinteger · 1–20

    How many results at most, 1 to 20 (default 10)

    Default: 10

Responses

  • 200What the search found

    application/json · object

    What the search found

    • resultsarray of objectrequired

      The articles found, best matches first

      Show 4 properties
      • slugstringrequired

        The article's slug

      • titlestringrequired

        The article's title

      • snippetstringrequired

        The passage that matched

      • urlstringrequired

        The article's page on the portal

  • 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

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

response = requests.get(
    "https://tuti.so/api/v1/search/articles?q=invite%20my%20team",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
)
print(response.text)
{
  "results": [
    {
      "slug": "invite-your-team",
      "title": "Invite your team",
      "snippet": "Owners and admins invite teammates from the Team page.",
      "url": "https://help.example.com/docs/invite-your-team"
    }
  ]
}
{
  "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": "rate_limited",
    "message": "Up to 600 requests a minute per key"
  }
}
{
  "error": {
    "code": "internal_error",
    "message": "Something went wrong"
  }
}