Tuti APIUsers

List companies

List the companies your users are at, by their company property, the most users first unless sort says otherwise. users.list's company lists a company's users.

GET/companies

Authorization Bearer token

Query parameters

  • sortstring

    The most users first, the most votes, or the biggest total

    Default: "users"

    One of"users""votes""total"

  • limitinteger · 1–100

    How many a page has, up to 100

    Default: 50

  • cursorinteger · at least 0

    Where the page starts: the previous page's nextCursor

    Default: 0

Responses

  • 200A page of companies

    application/json · object

    A page of companies

    • propertystring · nullablerequired

      The number property total adds up: Who's asking, as picked in project.update (askingProperty); null if none is

    • companiesarray of objectrequired

      A page of companies

      Show 4 properties
      • namestringrequired

        The company, as your users' company property has it

      • usersintegerrequired

        How many of your users are at it

      • votesintegerrequired

        Its users' votes on others' posts, each counted once

      • totalnumber · nullablerequired

        The sum of property over its users who have it as a number; null when none is picked or none of them has one

    • nextCursorstring · nullablerequired

      The next page's cursor, or null on the last page

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

response = requests.get(
    "https://tuti.so/api/v1/companies",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
)
print(response.text)
{
  "property": "mrr",
  "companies": [
    {
      "name": "Acme",
      "users": 12,
      "votes": 30,
      "total": 4800
    }
  ],
  "nextCursor": "50"
}
{
  "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"
  }
}