CLI
curl --request PATCH \
--url 'https://api.minimo.it/public/v1/inbox/threads/1234' \
--header 'Authorization: Bearer {{BEARER_TOKEN}}' \
--header 'Content-Type: application/json' \
--data '{"markRead": true, "assignTo": "me"}'const res = await fetch('https://api.minimo.it/public/v1/inbox/threads/1234', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer {{BEARER_TOKEN}}',
'Content-Type': 'application/json',
},
body: JSON.stringify({"markRead": true, "assignTo": "me"}),
});
const { data } = await res.json();
console.log(data);import requests
res = requests.patch(
'https://api.minimo.it/public/v1/inbox/threads/1234',
headers={'Authorization': 'Bearer {{BEARER_TOKEN}}'},
json={'markRead': True, 'assignTo': 'me'},
)
print(res.json())<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.minimo.it/public/v1/inbox/threads/{threadId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'markRead' => true,
'assignTo' => 'me'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.minimo.it/public/v1/inbox/threads/{threadId}"
payload := strings.NewReader("{\n \"markRead\": true,\n \"assignTo\": \"me\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.minimo.it/public/v1/inbox/threads/{threadId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"markRead\": true,\n \"assignTo\": \"me\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.minimo.it/public/v1/inbox/threads/{threadId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"markRead\": true,\n \"assignTo\": \"me\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"thread": {
"threadId": 1234,
"status": "open",
"unreadMessages": 0,
"pinned": false,
"channels": [
"whatsapp"
],
"contact": {
"contactId": 5678,
"name": "Mario Rossi",
"email": null,
"phone": "393331234567"
},
"assignedTo": {
"userId": 42,
"name": "Giulia Bianchi"
},
"needsHuman": true,
"ai": {
"state": "active",
"since": null
},
"snoozedUntil": null,
"updatedAt": "2026-11-13T09:00:00.000Z",
"lastMessage": {
"messageId": 90112,
"direction": "inbound",
"channel": "whatsapp",
"subject": null,
"preview": "Can I talk to a person?",
"at": "2026-11-13T09:00:00.000Z"
}
}
}
}{
"status": "FAIL",
"message": "WHATSAPP_WINDOW_CLOSED",
"userMessage": "WhatsApp allows free text only within 24 hours of the contact's last WhatsApp message. Send an approved template instead."
}{
"status": "FAIL",
"message": "WHATSAPP_WINDOW_CLOSED",
"userMessage": "WhatsApp allows free text only within 24 hours of the contact's last WhatsApp message. Send an approved template instead."
}Threads
Update Thread
Mark read or unread, close, reopen, snooze, assign or pin a thread
PATCH
/
public
/
v1
/
inbox
/
threads
/
{threadId}
CLI
curl --request PATCH \
--url 'https://api.minimo.it/public/v1/inbox/threads/1234' \
--header 'Authorization: Bearer {{BEARER_TOKEN}}' \
--header 'Content-Type: application/json' \
--data '{"markRead": true, "assignTo": "me"}'const res = await fetch('https://api.minimo.it/public/v1/inbox/threads/1234', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer {{BEARER_TOKEN}}',
'Content-Type': 'application/json',
},
body: JSON.stringify({"markRead": true, "assignTo": "me"}),
});
const { data } = await res.json();
console.log(data);import requests
res = requests.patch(
'https://api.minimo.it/public/v1/inbox/threads/1234',
headers={'Authorization': 'Bearer {{BEARER_TOKEN}}'},
json={'markRead': True, 'assignTo': 'me'},
)
print(res.json())<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.minimo.it/public/v1/inbox/threads/{threadId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'markRead' => true,
'assignTo' => 'me'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.minimo.it/public/v1/inbox/threads/{threadId}"
payload := strings.NewReader("{\n \"markRead\": true,\n \"assignTo\": \"me\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.minimo.it/public/v1/inbox/threads/{threadId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"markRead\": true,\n \"assignTo\": \"me\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.minimo.it/public/v1/inbox/threads/{threadId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"markRead\": true,\n \"assignTo\": \"me\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"thread": {
"threadId": 1234,
"status": "open",
"unreadMessages": 0,
"pinned": false,
"channels": [
"whatsapp"
],
"contact": {
"contactId": 5678,
"name": "Mario Rossi",
"email": null,
"phone": "393331234567"
},
"assignedTo": {
"userId": 42,
"name": "Giulia Bianchi"
},
"needsHuman": true,
"ai": {
"state": "active",
"since": null
},
"snoozedUntil": null,
"updatedAt": "2026-11-13T09:00:00.000Z",
"lastMessage": {
"messageId": 90112,
"direction": "inbound",
"channel": "whatsapp",
"subject": null,
"preview": "Can I talk to a person?",
"at": "2026-11-13T09:00:00.000Z"
}
}
}
}{
"status": "FAIL",
"message": "WHATSAPP_WINDOW_CLOSED",
"userMessage": "WhatsApp allows free text only within 24 hours of the contact's last WhatsApp message. Send an approved template instead."
}{
"status": "FAIL",
"message": "WHATSAPP_WINDOW_CLOSED",
"userMessage": "WhatsApp allows free text only within 24 hours of the contact's last WhatsApp message. Send an approved template instead."
}Acts as the user who created the key and sends nothing to the contact. Pass at least one field. Booleans must be
JSON booleans (
true, not "true").
Use Cases
- Mark as handled:
{ "markRead": true, "status": "closed" } - Take a conversation:
{ "assignTo": "me" }assigns it to the key’s user and clears the AI’s handover request - Come back later:
{ "status": "snoozed", "snoozedUntil": "2026-11-20T09:00:00Z" }
Permissions
The API key needs the Inbox permission.Common Errors
| Status | Cause | Solution |
|---|---|---|
400 | No field, a field of the wrong type, snoozed without a future snoozedUntil | Check the body |
403 | The user id in assignTo is not a member of the workspace | Use a userId from a thread’s assignedTo |
404 | Unknown thread, or a thread of another workspace | Use a threadId from List Threads |
Authorizations
Body
application/json