agents
Exec hermes CLI
Run an allowlisted hermes <argv…> command inside the agent pod as an argv array (never a shell string). Tier-3 destructive commands require confirm=true. --yolo is never accepted. Every invocation is audit-logged.
POST
/
api
/
v1
/
agents
/
{agent_id}
/
exec
Exec hermes CLI
curl --request POST \
--url https://api.seaotter.dev/api/v1/agents/{agent_id}/exec \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"argv": [
"status"
],
"confirm": false,
"timeout_seconds": 60
}
'import requests
url = "https://api.seaotter.dev/api/v1/agents/{agent_id}/exec"
payload = {
"argv": ["status"],
"confirm": False,
"timeout_seconds": 60
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({argv: ['status'], confirm: false, timeout_seconds: 60})
};
fetch('https://api.seaotter.dev/api/v1/agents/{agent_id}/exec', 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.seaotter.dev/api/v1/agents/{agent_id}/exec",
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([
'argv' => [
'status'
],
'confirm' => false,
'timeout_seconds' => 60
]),
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.seaotter.dev/api/v1/agents/{agent_id}/exec"
payload := strings.NewReader("{\n \"argv\": [\n \"status\"\n ],\n \"confirm\": false,\n \"timeout_seconds\": 60\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.seaotter.dev/api/v1/agents/{agent_id}/exec")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"argv\": [\n \"status\"\n ],\n \"confirm\": false,\n \"timeout_seconds\": 60\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.seaotter.dev/api/v1/agents/{agent_id}/exec")
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 \"argv\": [\n \"status\"\n ],\n \"confirm\": false,\n \"timeout_seconds\": 60\n}"
response = http.request(request)
puts response.read_body{
"exit_code": 123,
"stdout": "<string>",
"stderr": "<string>",
"argv": [
"<string>"
],
"duration_ms": 123,
"tier": 123
}{
"detail": "Agent not found"
}{
"detail": "Agent not found"
}{
"detail": "Agent not found"
}{
"detail": "Agent not found"
}{
"detail": "Agent not found"
}{
"detail": "Agent not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "Agent not found"
}Authorizations
Clerk session JWT for the web app (active organization required), or an organization-scoped SEAOTTER access key (so_…) from POST /api/v1/api-keys for programmatic / docs try-it / MCP use. The same so_… value is both Authorization: Bearer so_… and SEAOTTER_API_KEY.
Path Parameters
Body
application/json
Run an allowlisted hermes <argv…> command in the agent pod (no shell).
⌘I
Exec hermes CLI
curl --request POST \
--url https://api.seaotter.dev/api/v1/agents/{agent_id}/exec \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"argv": [
"status"
],
"confirm": false,
"timeout_seconds": 60
}
'import requests
url = "https://api.seaotter.dev/api/v1/agents/{agent_id}/exec"
payload = {
"argv": ["status"],
"confirm": False,
"timeout_seconds": 60
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({argv: ['status'], confirm: false, timeout_seconds: 60})
};
fetch('https://api.seaotter.dev/api/v1/agents/{agent_id}/exec', 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.seaotter.dev/api/v1/agents/{agent_id}/exec",
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([
'argv' => [
'status'
],
'confirm' => false,
'timeout_seconds' => 60
]),
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.seaotter.dev/api/v1/agents/{agent_id}/exec"
payload := strings.NewReader("{\n \"argv\": [\n \"status\"\n ],\n \"confirm\": false,\n \"timeout_seconds\": 60\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.seaotter.dev/api/v1/agents/{agent_id}/exec")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"argv\": [\n \"status\"\n ],\n \"confirm\": false,\n \"timeout_seconds\": 60\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.seaotter.dev/api/v1/agents/{agent_id}/exec")
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 \"argv\": [\n \"status\"\n ],\n \"confirm\": false,\n \"timeout_seconds\": 60\n}"
response = http.request(request)
puts response.read_body{
"exit_code": 123,
"stdout": "<string>",
"stderr": "<string>",
"argv": [
"<string>"
],
"duration_ms": 123,
"tier": 123
}{
"detail": "Agent not found"
}{
"detail": "Agent not found"
}{
"detail": "Agent not found"
}{
"detail": "Agent not found"
}{
"detail": "Agent not found"
}{
"detail": "Agent not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "Agent not found"
}
