Create or update an agent definition (AS17)
curl --request POST \
--url https://api.eddy.engineer/v1/agents \
--header 'Content-Type: application/json' \
--data '
{
"doc": {},
"expected_version": 123,
"id": "<string>",
"team": "<string>",
"visibility": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/agents"
payload = {
"doc": {},
"expected_version": 123,
"id": "<string>",
"team": "<string>",
"visibility": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
doc: {},
expected_version: 123,
id: '<string>',
team: '<string>',
visibility: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/agents', 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.eddy.engineer/v1/agents",
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([
'doc' => [
],
'expected_version' => 123,
'id' => '<string>',
'team' => '<string>',
'visibility' => '<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.eddy.engineer/v1/agents"
payload := strings.NewReader("{\n \"doc\": {},\n \"expected_version\": 123,\n \"id\": \"<string>\",\n \"team\": \"<string>\",\n \"visibility\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.eddy.engineer/v1/agents")
.header("Content-Type", "application/json")
.body("{\n \"doc\": {},\n \"expected_version\": 123,\n \"id\": \"<string>\",\n \"team\": \"<string>\",\n \"visibility\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"doc\": {},\n \"expected_version\": 123,\n \"id\": \"<string>\",\n \"team\": \"<string>\",\n \"visibility\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"agent": {},
"problems": [
{
"message": "<string>",
"path": "<string>"
}
],
"reserved": [
{
"note": "<string>",
"path": "<string>",
"unit": "<string>"
}
]
}Meta
Create or update an agent definition (AS17)
Saves an agent's draft: a project with app tag `agent` whose document is `ss.agent/1` (no `id` creates one; the id `runs` is reserved). The draft must keep its shape (422 AGENT_INVALID); meaning problems are answered beside it and refused only when a run starts. `expected_version` refuses a stale save (409), as for projects. An `ss.agent/1` document: {schema, name, description?, instructions, model {id: default | claude-sonnet-5-5 | claude-opus-5-5 | claude-haiku-5-5 | claude-sonnet-5 | claude-opus-5 (a gateway prefix allowed), effort: low | medium | high | xhigh | max, max_tokens?}, tools [selectors: `fn.<app>.<name>`, `<family>:<effect>`, a glob such as `fea.*` or `solve_*`, or one operation by its tool name or operation name], knowledge [`project:<id>`], approvals {read, compute, costly, write, external: allow | ask | deny}, budget {credits, tokens, wall_s, turns, cpu_s (reserved)}, notes?, and the reserved sections triggers (AS18), outputs (AS18), policy (AS19), evals (AS20), stored but not acted on}.
POST
/
v1
/
agents
Create or update an agent definition (AS17)
curl --request POST \
--url https://api.eddy.engineer/v1/agents \
--header 'Content-Type: application/json' \
--data '
{
"doc": {},
"expected_version": 123,
"id": "<string>",
"team": "<string>",
"visibility": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/agents"
payload = {
"doc": {},
"expected_version": 123,
"id": "<string>",
"team": "<string>",
"visibility": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
doc: {},
expected_version: 123,
id: '<string>',
team: '<string>',
visibility: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/agents', 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.eddy.engineer/v1/agents",
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([
'doc' => [
],
'expected_version' => 123,
'id' => '<string>',
'team' => '<string>',
'visibility' => '<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.eddy.engineer/v1/agents"
payload := strings.NewReader("{\n \"doc\": {},\n \"expected_version\": 123,\n \"id\": \"<string>\",\n \"team\": \"<string>\",\n \"visibility\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.eddy.engineer/v1/agents")
.header("Content-Type", "application/json")
.body("{\n \"doc\": {},\n \"expected_version\": 123,\n \"id\": \"<string>\",\n \"team\": \"<string>\",\n \"visibility\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"doc\": {},\n \"expected_version\": 123,\n \"id\": \"<string>\",\n \"team\": \"<string>\",\n \"visibility\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"agent": {},
"problems": [
{
"message": "<string>",
"path": "<string>"
}
],
"reserved": [
{
"note": "<string>",
"path": "<string>",
"unit": "<string>"
}
]
}Body
application/json
An ss.agent/1 document: {schema, name, description?, instructions, model {id: default | claude-sonnet-5-5 | claude-opus-5-5 | claude-haiku-5-5 | claude-sonnet-5 | claude-opus-5 (a gateway prefix allowed), effort: low | medium | high | xhigh | max, max_tokens?}, tools [selectors: fn.<app>.<name>, <family>:<effect>, a glob such as fea.* or solve_*, or one operation by its tool name or operation name], knowledge [project:<id>], approvals {read, compute, costly, write, external: allow | ask | deny}, budget {credits, tokens, wall_s, turns, cpu_s (reserved)}, notes?, and the reserved sections triggers (AS18), outputs (AS18), policy (AS19), evals (AS20), stored but not acted on}.