Check for a recent MCP connection
curl --request GET \
--url https://api.monid.ai/v1/mcp/connection \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.monid.ai/v1/mcp/connection"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.monid.ai/v1/mcp/connection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.monid.ai/v1/mcp/connection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.monid.ai/v1/mcp/connection"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.monid.ai/v1/mcp/connection")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monid.ai/v1/mcp/connection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"connected": true
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}MCP
Check for a recent MCP connection
Reports whether the named agent (Claude or Grok Bot) connected the caller, in the caller’s workspace, over MCP with OAuth. A teammate’s connection in the same workspace does not count. The window is fixed. It lasts 10 minutes from the agent’s first accepted request, and later requests do not extend it. The dashboard polls it after the user adds Monid to that agent. Nothing is stored permanently, and the signal expires on its own.
GET
/
v1
/
mcp
/
connection
Check for a recent MCP connection
curl --request GET \
--url https://api.monid.ai/v1/mcp/connection \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.monid.ai/v1/mcp/connection"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.monid.ai/v1/mcp/connection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.monid.ai/v1/mcp/connection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.monid.ai/v1/mcp/connection"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.monid.ai/v1/mcp/connection")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monid.ai/v1/mcp/connection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"connected": true
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}{
"code": 400,
"message": "Bad Request",
"errorCode": "BAD_REQUEST",
"hints": {}
}Query Parameters
Response
Connection state for the caller, in the caller's workspace, and the agent