CLI
curl --request POST \
--url 'https://api.minimo.it/public/v1/inbox/threads/1234/ai' \
--header 'Authorization: Bearer {{BEARER_TOKEN}}' \
--header 'Content-Type: application/json' \
--data '{"enabled": false}'const res = await fetch('https://api.minimo.it/public/v1/inbox/threads/1234/ai', {
method: 'POST',
headers: {
'Authorization': 'Bearer {{BEARER_TOKEN}}',
'Content-Type': 'application/json',
},
body: JSON.stringify({"enabled": false}),
});
const { data } = await res.json();
console.log(data);import requests
res = requests.post(
'https://api.minimo.it/public/v1/inbox/threads/1234/ai',
headers={'Authorization': 'Bearer {{BEARER_TOKEN}}'},
json={'enabled': False},
)
print(res.json())<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.minimo.it/public/v1/inbox/threads/{threadId}/ai",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => false
]),
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}/ai"
payload := strings.NewReader("{\n \"enabled\": false\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.minimo.it/public/v1/inbox/threads/{threadId}/ai")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.minimo.it/public/v1/inbox/threads/{threadId}/ai")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": false\n}"
response = http.request(request)
puts response.read_body{
"data": {
"thread": {
"threadId": 1234,
"status": "open",
"unreadMessages": 2,
"pinned": false,
"channels": [
"whatsapp"
],
"contact": {
"contactId": 5678,
"name": "Mario Rossi",
"email": null,
"phone": "393331234567"
},
"assignedTo": null,
"needsHuman": true,
"ai": {
"state": "disabled",
"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."
}Threads
Turn AI Off or On
Hand one conversation to a person, or give it back to the AI
POST
/
public
/
v1
/
inbox
/
threads
/
{threadId}
/
ai
CLI
curl --request POST \
--url 'https://api.minimo.it/public/v1/inbox/threads/1234/ai' \
--header 'Authorization: Bearer {{BEARER_TOKEN}}' \
--header 'Content-Type: application/json' \
--data '{"enabled": false}'const res = await fetch('https://api.minimo.it/public/v1/inbox/threads/1234/ai', {
method: 'POST',
headers: {
'Authorization': 'Bearer {{BEARER_TOKEN}}',
'Content-Type': 'application/json',
},
body: JSON.stringify({"enabled": false}),
});
const { data } = await res.json();
console.log(data);import requests
res = requests.post(
'https://api.minimo.it/public/v1/inbox/threads/1234/ai',
headers={'Authorization': 'Bearer {{BEARER_TOKEN}}'},
json={'enabled': False},
)
print(res.json())<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.minimo.it/public/v1/inbox/threads/{threadId}/ai",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => false
]),
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}/ai"
payload := strings.NewReader("{\n \"enabled\": false\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.minimo.it/public/v1/inbox/threads/{threadId}/ai")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.minimo.it/public/v1/inbox/threads/{threadId}/ai")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": false\n}"
response = http.request(request)
puts response.read_body{
"data": {
"thread": {
"threadId": 1234,
"status": "open",
"unreadMessages": 2,
"pinned": false,
"channels": [
"whatsapp"
],
"contact": {
"contactId": 5678,
"name": "Mario Rossi",
"email": null,
"phone": "393331234567"
},
"assignedTo": null,
"needsHuman": true,
"ai": {
"state": "disabled",
"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."
}Changes only this thread: the assistant’s settings stay as they are. Sends nothing to the contact.
{ "enabled": false }: the AI stops answering this contact and a person takes over, with no timer.{ "enabled": true }: the AI answers again. It also ends a pause started by a teammate’s reply.
ai.state in the response shows the result (active, paused or disabled). See
AI and handover.
Permissions
The API key needs the Inbox permission.Authorizations
Body
application/json