דלג לתוכן הראשי
POST
Required token scopes: Add notes to all chats The note is attached to a message of the chat: the one you send in messageId, or else the chat’s latest message. A chat with no messages gets a note without messageId. The note’s author is your API token. Send customName to show your own name in the inbox (for example your system’s name); otherwise the inbox shows a default name for API notes.

הרשאות

Authorization
string
header
נדרש

API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.

פרמטרי נתיב

chatId
string
נדרש

The unique identifier of the chat. You can obtain this value by using the Search Chats endpoint with the contact's phone number

גוף

application/json
text
string
נדרש

The note text, up to 4096 characters

Maximum string length: 4096
messageId
string

ID of a message in this chat to attach the note to. Defaults to the chat's latest message. A message of another chat returns 400

customName
string

Author name shown in the inbox instead of the default. Up to 50 characters, must contain a visible character

Maximum string length: 50

תגובה

The created note

An internal note on a chat

_id
string
נדרש

Unique note ID

דוגמה:

"6731f0c2a1b2c3d4e5f60718"

chatId
string
נדרש

ID of the chat the note belongs to

דוגמה:

"67a87067aeed4dee1271cb4d"

text
string
נדרש

The note text

author
object
נדרש

Who wrote the note. Kept as it is on every edit

createdAt
integer
נדרש

Creation time, Unix milliseconds

דוגמה:

1762851000000

updatedAt
integer
נדרש

Last change time, Unix milliseconds

דוגמה:

1762851000000

messageId
string

ID of the chat message the note is attached to. Missing when the chat had no messages

lastEditor
object

Who made the last text edit. Missing on notes that were never edited