Skip to main content
PUT
/
{instance}
/
edit-message-thread
Edit Message Thread
curl --request PUT \
  --url https://app.hypersender.com/api/sms/v1/{instance}/edit-message-thread \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "is_archived": true,
  "messageThreadId": "<string>"
}'
{
  "id": "<string>",
  "phone_id": "<string>",
  "last_message_id": "<string>",
  "from_phone_number": "<string>",
  "to_phone_number": "<string>",
  "is_archived": true,
  "last_message_content": "<string>",
  "last_message_at": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>"
}
Edit message thread archived status

Authorizations

Authorization
string
header
required

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

Path Parameters

instance
string
required

Instance UUID copied from hypersender dashboard

Example:

"{{ instance_id }}"

Body

application/json
is_archived
boolean

Specifies whether the message thread should be marked as archived.

messageThreadId
string

Specifies the message thread id you want to be archived

Response

Successful response

id
string
phone_id
string
last_message_id
string
from_phone_number
string
to_phone_number
string
is_archived
boolean
last_message_content
string
last_message_at
string
created_at
string
updated_at
string
I