Tuti APIInbox

Reply to a conversation

Reply in a conversation as the team, write an internal note, or write as its user. A reply leaves it waiting on the user, unless the user wrote after what the team saw, unanswered: then it stays open and waiting on the team.

Needs a read + write key.

POST/conversations/{number}/messages

Authorization Bearer token

Path parameters

  • numberinteger · more than 0required

    The conversation's number in the project

Body

application/json · object · required

  • bodystring · 1–10000 charactersrequired

    The message: plain text, up to 10,000 characters

  • authorobject

    Write as the conversation's user, by their id in your app (API keys only; not with note or close)

    Show 1 property
    • idstring · 1–255 charactersrequired

      Their id in your app

  • noteboolean

    An internal note: only the team sees it; it's never sent and doesn't change the status

  • closeboolean

    The team's reply closes the conversation (Send and close), rather than leaving it waiting on the user

  • seenstring · date-time · matches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$

    When the latest message the team saw was written: one from the user after it keeps the conversation open and waiting on the team (without it, the latest as the reply is asked for)

  • attachmentsarray of string · at most 10 items

    Files uploaded for it in the app (their ids), sent with it: 10 MB each, 25 MB together

    Each item: at least 1 character

Responses

  • 200The message written

    application/json · object

    The message written

    • idstringrequired

      The message's id

    • authorstringrequired

      Who wrote it: the user, the team, the AI, or Tuti itself (a notice)

      One of"user""team""ai""tuti"

    • namestring · nullablerequired

      The name of whoever wrote it, when they have an account (a teammate, someone from your app); null otherwise

    • channelstringrequired

      How it came: the widget, email, the API or Tuti's app

      One of"widget""email""api""app"

    • bodystringrequired

      What it says, plain text

    • notebooleanrequired

      An internal note: only the team sees it, never sent

    • attachmentsarray of ConversationAttachmentrequired

      The files it came with

      Show 5 properties
      • idstringrequired

        The file's id

      • filenamestringrequired

        Its name

      • contentTypestringrequired

        Its type

      • sizeintegerrequired

        Its size in bytes

      • urlstring · nullable

        In conversations.get: a link to it, signed for a while (images to show, other files saved under their name); null without media storage

    • attachmentsDroppedintegerrequired

      How many files it came with couldn't be kept (no media storage, or an import couldn't copy them)

    • createdAtstringrequired

      When it was written (ISO 8601)

    • keptOpenboolean

      A reply's (not a note's or the user's): whether it stays open and waiting on the team, as the user wrote after what the team saw (seen), unanswered

    • closedboolean

      With close: whether it closed the conversation (not when it was kept open)

  • 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

  • 403It isn't allowed: the key is read-only, its creator isn't a project owner or admin where only they may, only a person can do it in the app, a setting is off, or someone's address isn't confirmed. The code says which.

    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

  • 404Nothing by that name, number or id in this project.

    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/conversations/12/messages' \
  --request POST \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "body": "Thanks, Sam! A fix is on its way."
}'
const response = await fetch("https://tuti.so/api/v1/conversations/12/messages", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "body": "Thanks, Sam! A fix is on its way."
  }),
});
const text = await response.text();
import requests

response = requests.post(
    "https://tuti.so/api/v1/conversations/12/messages",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    data="{\n  \"body\": \"Thanks, Sam! A fix is on its way.\"\n}",
)
print(response.text)
{
  "id": "cm3k9x2ab0002qz8h9c4b7a3d",
  "author": "user",
  "name": "Sam Lee",
  "channel": "widget",
  "body": "The export button does nothing on the reports page.",
  "note": false,
  "attachments": [
    {
      "id": "cm3k9x2ab0001qz8h4f7d2e1c",
      "filename": "screenshot.png",
      "contentType": "image/png",
      "size": 48213,
      "url": "https://media.example.com/attachments/screenshot.png?signature=abc"
    }
  ],
  "attachmentsDropped": 0,
  "createdAt": "2026-11-18T09:30:00.000Z",
  "keptOpen": false,
  "closed": true
}
{
  "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": "forbidden",
    "message": "This key can only read. Create a read + write key to change things."
  }
}
{
  "error": {
    "code": "not_found",
    "message": "No such post"
  }
}
{
  "error": {
    "code": "rate_limited",
    "message": "Up to 600 requests a minute per key"
  }
}
{
  "error": {
    "code": "internal_error",
    "message": "Something went wrong"
  }
}