Tuti APIFeedback

List possible duplicates

List possible duplicates waiting for the team, most alike first, up to 100: a newer post that may repeat an older one

GET/duplicates

Authorization Bearer token

Responses

  • 200The possible duplicates

    application/json · object

    The possible duplicates

    • duplicatesarray of PossibleDuplicaterequired

      Up to 100, most alike first; merged posts left out

      Show 4 properties
      • idstringrequired

        The suggestion's id: duplicates.dismiss takes it

      • similaritynumberrequired

        How alike the two read, up to 1 (the same)

      • postobjectrequired

        The newer post, which may repeat original

        Show 2 properties
        • numberintegerrequired

          Its number in the project, which the API names it by

        • titlestringrequired

          Its title

      • originalobjectrequired

        The older post

        Show 2 properties
        • numberintegerrequired

          Its number in the project, which the API names it by

        • titlestringrequired

          Its title

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

response = requests.get(
    "https://tuti.so/api/v1/duplicates",
    headers={
        "Authorization": "Bearer YOUR_API_KEY"
    },
)
print(response.text)
{
  "duplicates": [
    {
      "id": "cm3kb7de10003ab12cd34ef56",
      "similarity": 0.91,
      "post": {
        "number": 42,
        "title": "Dark mode"
      },
      "original": {
        "number": 42,
        "title": "Dark mode"
      }
    }
  ]
}
{
  "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"
  }
}