Skip to main content
POST
/
v3
/
orders
/
{id}
/
message-history
Add order message history
curl --request POST \
  --url https://api.myscalev.com/v3/orders/{id}/message-history \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "follow_up_chat_id": 123
}
'
{
  "id": 123,
  "message_history": [
    {
      "id": 123,
      "is_from_bot": true,
      "message": "<string>",
      "name": "<string>",
      "provider": "<string>",
      "recipient_name": "<string>",
      "recipient_phone": "<string>",
      "sender_name": "<string>",
      "sender_phone": "<string>",
      "timestamp": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json

Message data

follow_up_chat_id
integer
required

Follow-up chat ID

Response

Message added successfully

id
integer

Order primary key

message_history
MessageHistoryItem · object[]

Message history associated with the order