Get a workspace by id
curl --request GET \
--url https://api.routemcp.io/api/v1/mcp/workspaces/{id} \
--header 'Authorization: <api-key>'import requests
url = "https://api.routemcp.io/api/v1/mcp/workspaces/{id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.routemcp.io/api/v1/mcp/workspaces/{id}', 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.routemcp.io/api/v1/mcp/workspaces/{id}",
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: <api-key>"
],
]);
$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.routemcp.io/api/v1/mcp/workspaces/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.routemcp.io/api/v1/mcp/workspaces/{id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.routemcp.io/api/v1/mcp/workspaces/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "0191e6a2-1c4d-7a3b-9f10-2b3c4d5e6f70",
"organizationId": "0191e6a2-0000-7000-8000-000000000001",
"name": "Support Bot",
"mode": "router",
"environment": "sandbox",
"allowedTools": null,
"toolkitFilter": [
"github",
"gmail"
],
"settings": {},
"statelessMode": false,
"status": "active",
"llm": {
"configured": true,
"model": "anthropic/claude-sonnet-4-6",
"verificationStatus": "verified",
"verifiedAt": "2026-05-29T10:05:00.000Z",
"updatedAt": "2026-05-29T10:05:00.000Z"
},
"createdAt": "2026-05-29T10:00:00.000Z",
"updatedAt": "2026-05-29T10:00:00.000Z"
}
}{
"success": false,
"statusCode": 404,
"message": "workspace <id> not found",
"timestamp": "2026-02-06T12:00:00.000Z",
"path": "/api/v1/example"
}{
"success": false,
"statusCode": 429,
"message": "Too Many Requests",
"timestamp": "2026-02-06T12:00:00.000Z",
"path": "/api/v1/example"
}{
"success": false,
"statusCode": 500,
"message": "Internal server error.",
"timestamp": "2026-02-06T12:00:00.000Z",
"path": "/api/v1/example"
}Workspaces
Get a workspace by id
Returns a single workspace by id. Responds with 404 if the id is unknown or refers to a server that is not a workspace.
GET
/
mcp
/
workspaces
/
{id}
Get a workspace by id
curl --request GET \
--url https://api.routemcp.io/api/v1/mcp/workspaces/{id} \
--header 'Authorization: <api-key>'import requests
url = "https://api.routemcp.io/api/v1/mcp/workspaces/{id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.routemcp.io/api/v1/mcp/workspaces/{id}', 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.routemcp.io/api/v1/mcp/workspaces/{id}",
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: <api-key>"
],
]);
$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.routemcp.io/api/v1/mcp/workspaces/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.routemcp.io/api/v1/mcp/workspaces/{id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.routemcp.io/api/v1/mcp/workspaces/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "0191e6a2-1c4d-7a3b-9f10-2b3c4d5e6f70",
"organizationId": "0191e6a2-0000-7000-8000-000000000001",
"name": "Support Bot",
"mode": "router",
"environment": "sandbox",
"allowedTools": null,
"toolkitFilter": [
"github",
"gmail"
],
"settings": {},
"statelessMode": false,
"status": "active",
"llm": {
"configured": true,
"model": "anthropic/claude-sonnet-4-6",
"verificationStatus": "verified",
"verifiedAt": "2026-05-29T10:05:00.000Z",
"updatedAt": "2026-05-29T10:05:00.000Z"
},
"createdAt": "2026-05-29T10:00:00.000Z",
"updatedAt": "2026-05-29T10:00:00.000Z"
}
}{
"success": false,
"statusCode": 404,
"message": "workspace <id> not found",
"timestamp": "2026-02-06T12:00:00.000Z",
"path": "/api/v1/example"
}{
"success": false,
"statusCode": 429,
"message": "Too Many Requests",
"timestamp": "2026-02-06T12:00:00.000Z",
"path": "/api/v1/example"
}{
"success": false,
"statusCode": 500,
"message": "Internal server error.",
"timestamp": "2026-02-06T12:00:00.000Z",
"path": "/api/v1/example"
}⌘I