Skip to main content
POST
/
chat
/
v2
/
{id}
/
sendNote
Send a note message
curl --request POST \
  --url http:localhost:3000/v2/chat/v2/{id}/sendNote \
  --header 'Content-Type: application/json' \
  --header 'x-API-Key: <api-key>' \
  --data '{
  "_id": "<string>",
  "number": 123,
  "companyId": "<string>",
  "status": {
    "status": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "type": "CHAT_MESSAGE",
  "chatId": "<string>",
  "blocks": [
    {}
  ],
  "childMessageIds": [
    "<string>"
  ],
  "readByUserIds": [
    "<string>"
  ],
  "metadata": {
    "type": "<string>",
    "subId": "<string>",
    "date": "2023-11-07T05:31:56Z",
    "initialTab": "<string>"
  },
  "accessLevel": {
    "_id": "<string>",
    "level": 123,
    "name": "<string>"
  }
}'
{
  "_id": "<string>"
}

Authorizations

x-API-Key
string
header
required

Path Parameters

id
string<objectid>
required

Chat ID

Body

application/json

Base message structure for chat, note, activity, and email messages. Base class for all entities in the system, providing common properties and methods.

_id
string<objectid>

Unique identifier of the entity

number
integer

Unique number of the entity, used for identification

companyId
string<objectid>

The ID of the company this entity belongs to

status
object

Entity Status information

type
enum<string>

The type of the message, e.g. chat, activity, email, or note.

Available options:
CHAT_MESSAGE,
ACTIVITY_MESSAGE,
EMAIL_MESSAGE,
NOTE_MESSAGE
chatId
string<objectid>

The ID of the chat this message belongs to.

blocks
object[]

The blocks that make up the content of the message.

childMessageIds
string<objectid>[]

IDs of child messages for threading.

readByUserIds
string<objectid>[]

IDs of users who have read this message.

metadata
object

Metadata for the message, such as reference IDs or additional information. additional information about the message / entity for cases where the chat can not be mapped to a single entity. Like with Jobs (An exdate job) or Stornos which have the referenceId for the chat.

accessLevel
object

Response

Note message sent

_id
string