RunMesh
curl --request GET \
--url https://api.example.com/v1/runmesh/nodes \
--header 'Content-Type: application/json' \
--data '
{
"publicKey": "<string>",
"deviceLabel": "<string>",
"os": "<string>",
"appVersion": "<string>"
}
'import requests
url = "https://api.example.com/v1/runmesh/nodes"
payload = {
"publicKey": "<string>",
"deviceLabel": "<string>",
"os": "<string>",
"appVersion": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
publicKey: '<string>',
deviceLabel: '<string>',
os: '<string>',
appVersion: '<string>'
})
};
fetch('https://api.example.com/v1/runmesh/nodes', 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.example.com/v1/runmesh/nodes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'publicKey' => '<string>',
'deviceLabel' => '<string>',
'os' => '<string>',
'appVersion' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.example.com/v1/runmesh/nodes"
payload := strings.NewReader("{\n \"publicKey\": \"<string>\",\n \"deviceLabel\": \"<string>\",\n \"os\": \"<string>\",\n \"appVersion\": \"<string>\"\n}")
req, _ := http.NewRequest("GET", url, payload)
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.get("https://api.example.com/v1/runmesh/nodes")
.header("Content-Type", "application/json")
.body("{\n \"publicKey\": \"<string>\",\n \"deviceLabel\": \"<string>\",\n \"os\": \"<string>\",\n \"appVersion\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/runmesh/nodes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"publicKey\": \"<string>\",\n \"deviceLabel\": \"<string>\",\n \"os\": \"<string>\",\n \"appVersion\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyRunMesh
RunMesh
Link, list, configure, rename, and revoke private mesh nodes
GET
/
v1
/
runmesh
/
nodes
RunMesh
curl --request GET \
--url https://api.example.com/v1/runmesh/nodes \
--header 'Content-Type: application/json' \
--data '
{
"publicKey": "<string>",
"deviceLabel": "<string>",
"os": "<string>",
"appVersion": "<string>"
}
'import requests
url = "https://api.example.com/v1/runmesh/nodes"
payload = {
"publicKey": "<string>",
"deviceLabel": "<string>",
"os": "<string>",
"appVersion": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
publicKey: '<string>',
deviceLabel: '<string>',
os: '<string>',
appVersion: '<string>'
})
};
fetch('https://api.example.com/v1/runmesh/nodes', 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.example.com/v1/runmesh/nodes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'publicKey' => '<string>',
'deviceLabel' => '<string>',
'os' => '<string>',
'appVersion' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.example.com/v1/runmesh/nodes"
payload := strings.NewReader("{\n \"publicKey\": \"<string>\",\n \"deviceLabel\": \"<string>\",\n \"os\": \"<string>\",\n \"appVersion\": \"<string>\"\n}")
req, _ := http.NewRequest("GET", url, payload)
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.get("https://api.example.com/v1/runmesh/nodes")
.header("Content-Type", "application/json")
.body("{\n \"publicKey\": \"<string>\",\n \"deviceLabel\": \"<string>\",\n \"os\": \"<string>\",\n \"appVersion\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/runmesh/nodes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"publicKey\": \"<string>\",\n \"deviceLabel\": \"<string>\",\n \"os\": \"<string>\",\n \"appVersion\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyDevice Link Flow
Device linking starts before normal user auth because the device does not have an approved identity yet.| Method | Path | Auth | Description |
|---|---|---|---|
POST | /v1/runmesh/devices/link/start | none | Create a short-lived link code for a device public key |
POST | /v1/runmesh/devices/link/poll | none | Poll a link code until approved or expired |
POST | /v1/runmesh/devices/link/approve | user/API key | Approve a pending code into the current org |
Start Link
string
required
Device public key.
string
Human-readable device label.
string
Client OS, such as
macos.string
Client app version.
cURL
curl -X POST https://api.runtools.ai/v1/runmesh/devices/link/start \
-H "Content-Type: application/json" \
-d '{
"publicKey": "device-public-key",
"deviceLabel": "Office Workstation",
"os": "macos"
}'
201 Created
{
"data": {
"code": "ABCD12",
"url": "https://runtools.ai/devices/link",
"expiresAt": "2026-05-10T12:00:00.000Z"
}
}
Authenticated Node APIs
All routes below require normal auth.| Method | Path | Scope | Description |
|---|---|---|---|
GET | /v1/runmesh/overview | runmesh:read | Node counts for the org |
GET | /v1/runmesh/nodes | runmesh:read | List visible nodes |
GET | /v1/runmesh/nodes/{id} | runmesh:read | Get one node |
GET | /v1/runmesh/nodes/{id}/config | runmesh:read | Generate peer config for a node |
PATCH | /v1/runmesh/nodes/{id} | runmesh:write | Rename a node |
DELETE | /v1/runmesh/nodes/{id} | runmesh:write | Revoke a node |
POST | /v1/runmesh/nodes/{id}/revoke | runmesh:write | Revoke a node |
GET | /v1/runmesh/audit | runmesh:read | List RunMesh audit events |
GET | /v1/runmesh/devices/{id}/activity | activity:read | Activity for one device |
boolean
Include all visible org nodes.
string
Use
owner=me to list only nodes owned by the current user.cURL
curl "https://api.runtools.ai/v1/runmesh/nodes?owner=me" \
-H "X-API-Key: $RUNTOOLS_API_KEY"
Local Device Agents
Create a local device agent withexecutionMode: "local-mac" and a targetDeviceId. Runs can be started from any client, but the work executes on the bound device through RunMesh.
{
"slug": "code-on-my-mac",
"executionMode": "local-mac",
"targetDeviceId": "node_abc123",
"tools": ["exec_command", "write_stdin", "apply_patch", "view_image", "web_search"]
}
⌘I