cURL
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 the archived status of a message thread.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Instance UUID copied from hypersender dashboard
"{{ instance_id }}"
Specifies whether the message thread should be marked as archived.
Specifies the message thread id you want to be archived
Successful response