API reference
Support desk
How your support desk is set up: its settings, whether it is online, and its numbers.
Base URL https://partners.monotree.com/api/v1
· every call needs a token
Endpoints
get/support/stats
Get support stats
get
/support/settings
Get the desk's settings
patch
/support/settings
Change the desk's settings
get
/support/presence
Get whether support is online
post
/support/presence
Switch support online or offline
Get support stats
/support/stats
support:read The numbers of your support desk over a period, as the Stats tab in the portal shows them: new and solved threads, first-answer and solving times, topics, ratings, what became of the assistant's drafts, and what went to Monotree. Every number has a name that stays; labels are in English. A share is a whole percentage, or null where there is nothing to take a share of. A thread you started yourself counts once the customer has written in it; threads dismissed by the desk itself are left out.
Parameters
days
integer · query
1 today, -1 yesterday, 7, 30 or 90 days up to and including today, 0 all time.
one of 1, -1, 7, 30, 90, 0 · default 30
customer
string · query
external_ref: and your own reference.
Response · 200 The numbers.
object
string
days
integer
one of 1, -1, 7, 30, 90, 0
span_days
integer
from
string
to
string
kpis
array of objects
new, solved, response, solving, unchanged, drafted.
facts
object
threads_per_day
number
escalated_share_percent
integer, nullable
no_reply_needed_share_percent
integer, nullable
reopened_share_percent
integer, nullable
auto_replies
integer
oldest_waiting_minutes
integer, nullable
urgent
integer
daily
array of objects
channels
array of objects
key is chat or email.
kinds
array of objects
key is a kind, or unread for threads the assistant has not read.
topics
array of objects
ratings
object
asked
integer
rated
integer
answered_share_percent
integer, nullable
rated as a share of asked.
positive
integer
negative
integer
helpful_share_percent
integer, nullable
positive as a share of rated.
negative_threads
array of objects
customers
array of objects
key is the customer's ID (cus_…), label its company name.
draft_outcomes
array of objects
key is sent_unchanged, edited, replaced, no_reply_accepted or discarded; all five rows are always there.
draft_versions
object
sent
array of objects
key is 1, 2, 3, or 4 for a fourth or later.
with_questions
integer
questions_answered
integer
escalations
array of objects
key is created (a new escalation) or duplicate (added to one already sent).
waiting_ages
array of objects
key is under_1h, 1h_to_4h, 4h_to_24h, 1d_to_3d or over_3d. Not bound to the period.
started_by_hour
object
grid
array of arrays
max
integer
staff
array of objects
key is the seller's ID (sel_…), label their name. Answers sent over the API are not counted.
assistant
object
drafts
integer
failed
integer
threads
integer
drafts_per_thread
number, nullable
median_seconds
integer, nullable
Errors
invalid_token: the token is missing, revoked or expired.
insufficient_ability: the token lacks the ability this call needs.
not_found: no such customer for your company and mode.
validation_error: days is not one of the six periods.
rate_limited: too many requests. The general limit is 120 requests a minute for all your tokens of one mode (live or sandbox) together, and 300 a minute per IP address before the token is checked. Some calls have a lower limit of their own, which counts only calls that did what they ask (a call refused with another error uses up no place); the Rate limits guide lists them. Wait for the number of seconds in the Retry-After header.
curl https://partners.monotree.com/api/v1/support/stats \
-H "Authorization: Bearer $MONOTREE_TOKEN"$client = new GuzzleHttp\Client();
$response = $client->request('GET', 'https://partners.monotree.com/api/v1/support/stats', [
'headers' => [
'Authorization' => 'Bearer '.getenv('MONOTREE_TOKEN'),
],
]);
$data = json_decode($response->getBody(), true);const response = await fetch('https://partners.monotree.com/api/v1/support/stats', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.MONOTREE_TOKEN}`,
},
});
const data = await response.json();import os
import requests
response = requests.get(
"https://partners.monotree.com/api/v1/support/stats",
headers={
"Authorization": f"Bearer {os.environ['MONOTREE_TOKEN']}",
},
)
data = response.json(){
"object": "support_stats",
"days": 7,
"span_days": 7,
"from": "2026-11-08",
"to": "2026-11-14",
"kpis": [
{
"key": "new",
"label": "New threads",
"unit": "threads",
"value": 3,
"today": 3,
"before": 0,
"change_percent": null,
"higher_is_better": null,
"series": [
0,
0,
0,
0,
0,
0,
3
]
},
{
"key": "solved",
"label": "Solved",
"unit": "threads",
"value": 0,
"today": 0,
"before": 0,
"change_percent": null,
"higher_is_better": true,
"series": [
0,
0,
0,
0,
0,
0,
0
]
},
{
"key": "response",
"label": "First answer, median",
"unit": "minutes",
"value": 0,
"today": null,
"before": null,
"change_percent": null,
"higher_is_better": false,
"series": []
},
{
"key": "solving",
"label": "Solved in, median",
"unit": "minutes",
"value": null,
"today": null,
"before": null,
"change_percent": null,
"higher_is_better": false,
"series": []
},
{
"key": "unchanged",
"label": "Drafts sent unchanged",
"unit": "percent",
"value": 0,
"today": null,
"before": null,
"change_percent": null,
"higher_is_better": true,
"series": []
},
{
"key": "drafted",
"label": "Drafts by the assistant",
"unit": "drafts",
"value": 8,
"today": 8,
"before": 0,
"change_percent": null,
"higher_is_better": null,
"series": [
0,
0,
0,
0,
0,
0,
8
]
}
],
"facts": {
"threads_per_day": 0.4,
"escalated_share_percent": 100,
"no_reply_needed_share_percent": 33,
"reopened_share_percent": 33,
"auto_replies": 3,
"oldest_waiting_minutes": null,
"urgent": 0
},
"daily": [
{
"day": "2026-11-13",
"new": 0,
"solved": 0,
"drafted": 0,
"channels": {
"chat": 0,
"email": 0
}
},
{
"day": "2026-11-14",
"new": 3,
"solved": 0,
"drafted": 8,
"channels": {
"chat": 2,
"email": 1
}
}
],
"channels": [
{
"key": "chat",
"label": "Chat",
"count": 2,
"share_percent": 67
},
{
"key": "email",
"label": "E-mail",
"count": 1,
"share_percent": 33
}
],
"kinds": [
{
"key": "bug",
"label": "Bug",
"count": 1,
"share_percent": 33
},
{
"key": "other",
"label": "Other",
"count": 1,
"share_percent": 33
},
{
"key": "question",
"label": "Question",
"count": 1,
"share_percent": 33
}
],
"topics": [
{
"tag_id": null,
"label": "No topic",
"count": 2,
"before": null,
"change_percent": null,
"unsure_share_percent": 0,
"rewritten": 0,
"fell_short_share_percent": 0,
"handed_to_person_share_percent": 0,
"escalated_share_percent": 100,
"negative_ratings": 0
},
{
"tag_id": 1,
"label": "Invitations",
"count": 1,
"before": 0,
"change_percent": null,
"unsure_share_percent": 100,
"rewritten": 0,
"fell_short_share_percent": 100,
"handed_to_person_share_percent": 0,
"escalated_share_percent": 100,
"negative_ratings": 0
}
],
"ratings": {
"asked": 0,
"rated": 0,
"answered_share_percent": null,
"positive": 0,
"negative": 0,
"helpful_share_percent": null,
"negative_threads": []
},
"customers": [
{
"key": "Boulangerie Martin",
"label": "Boulangerie Martin",
"count": 2,
"share_percent": 67
},
{
"key": "Le Petit Bistrot",
"label": "Le Petit Bistrot",
"count": 1,
"share_percent": 33
}
],
"draft_outcomes": [
{
"key": "sent_unchanged",
"label": "Sent as it was",
"count": 0,
"share_percent": 0
},
{
"key": "edited",
"label": "Sent after an edit",
"count": 1,
"share_percent": 33
},
{
"key": "replaced",
"label": "Replaced by own answer",
"count": 0,
"share_percent": 0
},
{
"key": "no_reply_accepted",
"label": "Nothing to answer",
"count": 1,
"share_percent": 33
},
{
"key": "discarded",
"label": "Not used",
"count": 1,
"share_percent": 33
}
],
"draft_versions": {
"sent": [
{
"key": "1",
"label": "The first draft",
"count": 0,
"share_percent": 0
},
{
"key": "2",
"label": "The second",
"count": 1,
"share_percent": 100
},
{
"key": "3",
"label": "The third",
"count": 0,
"share_percent": 0
},
{
"key": "4",
"label": "A fourth or later",
"count": 0,
"share_percent": 0
}
],
"with_questions": 4,
"questions_answered": 1
},
"escalations": [
{
"key": "created",
"label": "New escalation",
"count": 1,
"share_percent": 33
},
{
"key": "duplicate",
"label": "Added to one sent",
"count": 2,
"share_percent": 67
}
],
"waiting_ages": [
{
"key": "Under an hour",
"label": "Under an hour",
"count": 0,
"share_percent": null
},
{
"key": "1 to 4 hours",
"label": "1 to 4 hours",
"count": 0,
"share_percent": null
},
{
"key": "4 to 24 hours",
"label": "4 to 24 hours",
"count": 0,
"share_percent": null
},
{
"key": "1 to 3 days",
"label": "1 to 3 days",
"count": 0,
"share_percent": null
},
{
"key": "Over 3 days",
"label": "Over 3 days",
"count": 0,
"share_percent": null
}
],
"started_by_hour": {
"grid": [
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
],
"max": 3
},
"staff": [],
"assistant": {
"drafts": 8,
"failed": 0,
"threads": 3,
"drafts_per_thread": 2.7,
"median_seconds": 17
}
}
Only mpt_test_… tokens work here; nothing reaches a real customer. Kept in this browser tab only.
Get the desk's settings
/support/settings
support:configure How your support desk is set up: the same settings as the Settings tab of the Support page. A sandbox token reads and changes a sandbox desk of its own, which only threads of sandbox customers go by.
Response · 200 The settings.
object
string
auto_draft
boolean
auto
string
off: it drafts for a thread's messages until your desk has answered once. drafts: for every message of theirs. sends: it also sends the drafts it is highly sure of; the rest wait for a person, with needs_person set on the thread, and no automatic reply is sent.
one of off, drafts, sends
auto_reply
boolean
auto_reply_text.
timezone
string
hours
object
timezone: [opens, closes], or null for a closed day.
mon
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
tue
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
wed
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
thu
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
fri
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
sat
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
sun
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
holidays
string, nullable
one of FR, ES, IT, BE, DK
holidays_extra
array of strings
auto_reply_text
string
{next_open} becomes when the desk opens next, such as "tomorrow at 09:00".
at least 1 characters · at most 600 characters
staff_language
string
one of en, fr, es, it, de, nl, da
debug
boolean
reopen_days
integer
from 0 · up to 90
idle_close_days
integer
resolution no_response. Checked once a day; a snoozed thread is left alone until it wakes. If they write again within reopen_days, the thread opens again.
from 1 · up to 90
signature
boolean
signed).
ask_rating
boolean
Errors
invalid_token: the token is missing, revoked or expired.
insufficient_ability: the token lacks the ability this call needs.
rate_limited: too many requests. The general limit is 120 requests a minute for all your tokens of one mode (live or sandbox) together, and 300 a minute per IP address before the token is checked. Some calls have a lower limit of their own, which counts only calls that did what they ask (a call refused with another error uses up no place); the Rate limits guide lists them. Wait for the number of seconds in the Retry-After header.
curl https://partners.monotree.com/api/v1/support/settings \
-H "Authorization: Bearer $MONOTREE_TOKEN"$client = new GuzzleHttp\Client();
$response = $client->request('GET', 'https://partners.monotree.com/api/v1/support/settings', [
'headers' => [
'Authorization' => 'Bearer '.getenv('MONOTREE_TOKEN'),
],
]);
$data = json_decode($response->getBody(), true);const response = await fetch('https://partners.monotree.com/api/v1/support/settings', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.MONOTREE_TOKEN}`,
},
});
const data = await response.json();import os
import requests
response = requests.get(
"https://partners.monotree.com/api/v1/support/settings",
headers={
"Authorization": f"Bearer {os.environ['MONOTREE_TOKEN']}",
},
)
data = response.json(){
"object": "support_settings",
"auto_draft": true,
"auto": "off",
"auto_reply": true,
"timezone": "Europe/Paris",
"hours": {
"mon": [
"09:00",
"18:00"
],
"tue": [
"09:00",
"18:00"
],
"wed": [
"09:00",
"18:00"
],
"thu": [
"09:00",
"18:00"
],
"fri": [
"09:00",
"18:00"
],
"sat": null,
"sun": null
},
"holidays": "FR",
"holidays_extra": [],
"auto_reply_text": "Thanks for your message. We are closed right now and will answer {next_open}.",
"staff_language": "en",
"debug": false,
"reopen_days": 7,
"idle_close_days": 7,
"signature": true,
"ask_rating": true
}
Only mpt_test_… tokens work here; nothing reaches a real customer. Kept in this browser tab only.
Change the desk's settings
/support/settings
support:configure Changes the settings you send and leaves the rest. In hours, send only the days that change: a day left out keeps its hours, and null closes a day. A value that is not valid is refused with 422 and nothing is changed.
Request body
auto_draft
boolean
auto
string
one of off, drafts, sends
auto_reply
boolean
timezone
string
hours
object
timezone: [opens, closes], or null for a closed day.
mon
required
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
tue
required
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
wed
required
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
thu
required
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
fri
required
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
sat
required
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
sun
required
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
holidays
string, nullable
one of FR, ES, IT, BE, DK
holidays_extra
array of strings
auto_reply_text
string
at least 1 characters · at most 600 characters
staff_language
string
one of en, fr, es, it, de, nl, da
debug
boolean
reopen_days
integer
from 0 · up to 90
idle_close_days
integer
from 1 · up to 90
signature
boolean
ask_rating
boolean
Response · 200 The settings as they now stand.
object
string
auto_draft
boolean
auto
string
off: it drafts for a thread's messages until your desk has answered once. drafts: for every message of theirs. sends: it also sends the drafts it is highly sure of; the rest wait for a person, with needs_person set on the thread, and no automatic reply is sent.
one of off, drafts, sends
auto_reply
boolean
auto_reply_text.
timezone
string
hours
object
timezone: [opens, closes], or null for a closed day.
mon
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
tue
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
wed
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
thu
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
fri
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
sat
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
sun
array of strings, nullable
HH:MM times with the first before the second. Null for a closed day.
holidays
string, nullable
one of FR, ES, IT, BE, DK
holidays_extra
array of strings
auto_reply_text
string
{next_open} becomes when the desk opens next, such as "tomorrow at 09:00".
at least 1 characters · at most 600 characters
staff_language
string
one of en, fr, es, it, de, nl, da
debug
boolean
reopen_days
integer
from 0 · up to 90
idle_close_days
integer
resolution no_response. Checked once a day; a snoozed thread is left alone until it wakes. If they write again within reopen_days, the thread opens again.
from 1 · up to 90
signature
boolean
signed).
ask_rating
boolean
Errors
invalid_token: the token is missing, revoked or expired.
insufficient_ability: the token lacks the ability this call needs.
validation_error: a value is not allowed, hours is missing or lacks a day, or a day closes before it opens.
rate_limited: too many requests. The general limit is 120 requests a minute for all your tokens of one mode (live or sandbox) together, and 300 a minute per IP address before the token is checked. Some calls have a lower limit of their own, which counts only calls that did what they ask (a call refused with another error uses up no place); the Rate limits guide lists them. Wait for the number of seconds in the Retry-After header.
curl -X PATCH https://partners.monotree.com/api/v1/support/settings \
-H "Authorization: Bearer $MONOTREE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"auto": "drafts",
"reopen_days": 14,
"hours": {
"mon": [
"08:00",
"17:00"
],
"tue": [
"08:00",
"17:00"
],
"wed": [
"08:00",
"17:00"
],
"thu": [
"08:00",
"17:00"
],
"fri": [
"08:00",
"16:00"
],
"sat": null,
"sun": null
}
}'$client = new GuzzleHttp\Client();
$response = $client->request('PATCH', 'https://partners.monotree.com/api/v1/support/settings', [
'headers' => [
'Authorization' => 'Bearer '.getenv('MONOTREE_TOKEN'),
],
'json' => [
'auto' => 'drafts',
'reopen_days' => 14,
'hours' => [
'mon' => [
'08:00',
'17:00',
],
'tue' => [
'08:00',
'17:00',
],
'wed' => [
'08:00',
'17:00',
],
'thu' => [
'08:00',
'17:00',
],
'fri' => [
'08:00',
'16:00',
],
'sat' => null,
'sun' => null,
],
],
]);
$data = json_decode($response->getBody(), true);const response = await fetch('https://partners.monotree.com/api/v1/support/settings', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.MONOTREE_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"auto": "drafts",
"reopen_days": 14,
"hours": {
"mon": [
"08:00",
"17:00"
],
"tue": [
"08:00",
"17:00"
],
"wed": [
"08:00",
"17:00"
],
"thu": [
"08:00",
"17:00"
],
"fri": [
"08:00",
"16:00"
],
"sat": null,
"sun": null
}
}),
});
const data = await response.json();import os
import requests
response = requests.patch(
"https://partners.monotree.com/api/v1/support/settings",
headers={
"Authorization": f"Bearer {os.environ['MONOTREE_TOKEN']}",
},
json={
"auto": "drafts",
"reopen_days": 14,
"hours": {
"mon": [
"08:00",
"17:00"
],
"tue": [
"08:00",
"17:00"
],
"wed": [
"08:00",
"17:00"
],
"thu": [
"08:00",
"17:00"
],
"fri": [
"08:00",
"16:00"
],
"sat": None,
"sun": None
}
},
)
data = response.json(){
"object": "support_settings",
"auto_draft": true,
"auto": "off",
"auto_reply": true,
"timezone": "Europe/Paris",
"hours": {
"mon": [
"09:00",
"18:00"
],
"tue": [
"09:00",
"18:00"
],
"wed": [
"09:00",
"18:00"
],
"thu": [
"09:00",
"18:00"
],
"fri": [
"09:00",
"18:00"
],
"sat": null,
"sun": null
},
"holidays": "FR",
"holidays_extra": [],
"auto_reply_text": "Thanks for your message. We are closed right now and will answer {next_open}.",
"staff_language": "en",
"debug": false,
"reopen_days": 7,
"idle_close_days": 7,
"signature": true,
"ask_rating": true
}
Only mpt_test_… tokens work here; nothing reaches a real customer. Kept in this browser tab only.
Get whether support is online
/support/presence
support:configure Whether your desk is there to answer right now. The office hours (less the holidays) say, unless someone forced it. While the desk is offline, a new thread gets the automatic reply (if auto_reply is on).
Response · 200 The presence.
object
string
online
boolean
forced
string, nullable
one of online, offline
forced_until
string, nullable
forced_by
string, nullable
API · and the name of the token.
changes_at
string, nullable
Errors
invalid_token: the token is missing, revoked or expired.
insufficient_ability: the token lacks the ability this call needs.
rate_limited: too many requests. The general limit is 120 requests a minute for all your tokens of one mode (live or sandbox) together, and 300 a minute per IP address before the token is checked. Some calls have a lower limit of their own, which counts only calls that did what they ask (a call refused with another error uses up no place); the Rate limits guide lists them. Wait for the number of seconds in the Retry-After header.
curl https://partners.monotree.com/api/v1/support/presence \
-H "Authorization: Bearer $MONOTREE_TOKEN"$client = new GuzzleHttp\Client();
$response = $client->request('GET', 'https://partners.monotree.com/api/v1/support/presence', [
'headers' => [
'Authorization' => 'Bearer '.getenv('MONOTREE_TOKEN'),
],
]);
$data = json_decode($response->getBody(), true);const response = await fetch('https://partners.monotree.com/api/v1/support/presence', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.MONOTREE_TOKEN}`,
},
});
const data = await response.json();import os
import requests
response = requests.get(
"https://partners.monotree.com/api/v1/support/presence",
headers={
"Authorization": f"Bearer {os.environ['MONOTREE_TOKEN']}",
},
)
data = response.json(){
"object": "support_presence",
"online": true,
"forced": "online",
"forced_until": "2026-11-14T13:45:37Z",
"forced_by": "API · Back office, production",
"changes_at": "2026-11-16T08:00:00Z"
}
Only mpt_test_… tokens work here; nothing reaches a real customer. Kept in this browser tab only.
Switch support online or offline
/support/presence
support:configure true or false forces the desk online or offline whatever the office hours say; null follows the hours again. A forced state ends by itself at forced_until: online after an hour (an hour after the last answer one of your people sent in the portal), offline when support opens next. Forcing what the hours already say forces nothing and clears a forced state.
Accepts an optional Idempotency-Key header to make a retry safe.
Request body
online
required
boolean, nullable
true: online. false: offline. null: follow the office hours again.
Response · 200 The presence as it now stands.
object
string
online
boolean
forced
string, nullable
one of online, offline
forced_until
string, nullable
forced_by
string, nullable
API · and the name of the token.
changes_at
string, nullable
Errors
invalid_idempotency_key: the Idempotency-Key is longer than 255 characters.
invalid_token: the token is missing, revoked or expired.
insufficient_ability: the token lacks the ability this call needs.
idempotency_in_progress: a call with the same Idempotency-Key is still running.
validation_error: online is missing, or is not true, false or null. idempotency_key_reused: the Idempotency-Key was used for a different request.
rate_limited: too many requests. The general limit is 120 requests a minute for all your tokens of one mode (live or sandbox) together, and 300 a minute per IP address before the token is checked. Some calls have a lower limit of their own, which counts only calls that did what they ask (a call refused with another error uses up no place); the Rate limits guide lists them. Wait for the number of seconds in the Retry-After header.
curl -X POST https://partners.monotree.com/api/v1/support/presence \
-H "Authorization: Bearer $MONOTREE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"online": true
}'$client = new GuzzleHttp\Client();
$response = $client->request('POST', 'https://partners.monotree.com/api/v1/support/presence', [
'headers' => [
'Authorization' => 'Bearer '.getenv('MONOTREE_TOKEN'),
],
'json' => [
'online' => true,
],
]);
$data = json_decode($response->getBody(), true);const response = await fetch('https://partners.monotree.com/api/v1/support/presence', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.MONOTREE_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"online": true
}),
});
const data = await response.json();import os
import requests
response = requests.post(
"https://partners.monotree.com/api/v1/support/presence",
headers={
"Authorization": f"Bearer {os.environ['MONOTREE_TOKEN']}",
},
json={
"online": True
},
)
data = response.json(){
"object": "support_presence",
"online": true,
"forced": "online",
"forced_until": "2026-11-14T13:45:37Z",
"forced_by": "API · Back office, production",
"changes_at": "2026-11-16T08:00:00Z"
}
Only mpt_test_… tokens work here; nothing reaches a real customer. Kept in this browser tab only.