The design packet: everything an agent needs to SEE a recipe or assembly, content-addressed (J12.c)
curl --request POST \
--url https://api.eddy.engineer/v1/design.packet \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assembly": {},
"before": {},
"contact_tile": 123,
"cutaways": false,
"density": 123,
"explode": 1.6,
"goal": {},
"inline": false,
"name": "<string>",
"overlays": [
{
"at": [
123
],
"color": [
123
],
"label": "<string>",
"max": [
123
],
"min": [
123
]
}
],
"px_per_mm": 3,
"recipe": {},
"sections": [
{
"axis": "<string>",
"pos": 123
}
],
"segments": 32,
"sheet": true,
"sheet_size": "<string>",
"tile": 512,
"views": [
"<string>"
]
}
'import requests
url = "https://api.eddy.engineer/v1/design.packet"
payload = {
"assembly": {},
"before": {},
"contact_tile": 123,
"cutaways": False,
"density": 123,
"explode": 1.6,
"goal": {},
"inline": False,
"name": "<string>",
"overlays": [
{
"at": [123],
"color": [123],
"label": "<string>",
"max": [123],
"min": [123]
}
],
"px_per_mm": 3,
"recipe": {},
"sections": [
{
"axis": "<string>",
"pos": 123
}
],
"segments": 32,
"sheet": True,
"sheet_size": "<string>",
"tile": 512,
"views": ["<string>"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assembly: {},
before: {},
contact_tile: 123,
cutaways: false,
density: 123,
explode: 1.6,
goal: {},
inline: false,
name: '<string>',
overlays: [{at: [123], color: [123], label: '<string>', max: [123], min: [123]}],
px_per_mm: 3,
recipe: {},
sections: [{axis: '<string>', pos: 123}],
segments: 32,
sheet: true,
sheet_size: '<string>',
tile: 512,
views: ['<string>']
})
};
fetch('https://api.eddy.engineer/v1/design.packet', 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/design.packet",
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([
'assembly' => [
],
'before' => [
],
'contact_tile' => 123,
'cutaways' => false,
'density' => 123,
'explode' => 1.6,
'goal' => [
],
'inline' => false,
'name' => '<string>',
'overlays' => [
[
'at' => [
123
],
'color' => [
123
],
'label' => '<string>',
'max' => [
123
],
'min' => [
123
]
]
],
'px_per_mm' => 3,
'recipe' => [
],
'sections' => [
[
'axis' => '<string>',
'pos' => 123
]
],
'segments' => 32,
'sheet' => true,
'sheet_size' => '<string>',
'tile' => 512,
'views' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/design.packet"
payload := strings.NewReader("{\n \"assembly\": {},\n \"before\": {},\n \"contact_tile\": 123,\n \"cutaways\": false,\n \"density\": 123,\n \"explode\": 1.6,\n \"goal\": {},\n \"inline\": false,\n \"name\": \"<string>\",\n \"overlays\": [\n {\n \"at\": [\n 123\n ],\n \"color\": [\n 123\n ],\n \"label\": \"<string>\",\n \"max\": [\n 123\n ],\n \"min\": [\n 123\n ]\n }\n ],\n \"px_per_mm\": 3,\n \"recipe\": {},\n \"sections\": [\n {\n \"axis\": \"<string>\",\n \"pos\": 123\n }\n ],\n \"segments\": 32,\n \"sheet\": true,\n \"sheet_size\": \"<string>\",\n \"tile\": 512,\n \"views\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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/design.packet")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assembly\": {},\n \"before\": {},\n \"contact_tile\": 123,\n \"cutaways\": false,\n \"density\": 123,\n \"explode\": 1.6,\n \"goal\": {},\n \"inline\": false,\n \"name\": \"<string>\",\n \"overlays\": [\n {\n \"at\": [\n 123\n ],\n \"color\": [\n 123\n ],\n \"label\": \"<string>\",\n \"max\": [\n 123\n ],\n \"min\": [\n 123\n ]\n }\n ],\n \"px_per_mm\": 3,\n \"recipe\": {},\n \"sections\": [\n {\n \"axis\": \"<string>\",\n \"pos\": 123\n }\n ],\n \"segments\": 32,\n \"sheet\": true,\n \"sheet_size\": \"<string>\",\n \"tile\": 512,\n \"views\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/design.packet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assembly\": {},\n \"before\": {},\n \"contact_tile\": 123,\n \"cutaways\": false,\n \"density\": 123,\n \"explode\": 1.6,\n \"goal\": {},\n \"inline\": false,\n \"name\": \"<string>\",\n \"overlays\": [\n {\n \"at\": [\n 123\n ],\n \"color\": [\n 123\n ],\n \"label\": \"<string>\",\n \"max\": [\n 123\n ],\n \"min\": [\n 123\n ]\n }\n ],\n \"px_per_mm\": 3,\n \"recipe\": {},\n \"sections\": [\n {\n \"axis\": \"<string>\",\n \"pos\": 123\n }\n ],\n \"segments\": 32,\n \"sheet\": true,\n \"sheet_size\": \"<string>\",\n \"tile\": 512,\n \"views\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"blob_uri": "<string>",
"bom": [
{}
],
"changed_faces": [
123
],
"drawing": {},
"images": [
{
"blob_id": "<string>",
"blob_uri": "<string>",
"bytes": 123,
"data_url": "<string>",
"height": 123,
"kind": "contact",
"media_type": "<string>",
"name": "<string>",
"view": "<string>",
"width": 123
}
],
"mass_properties": {},
"overlays": {},
"packet_key": "<string>",
"recipe_hash": "<string>",
"views": [
"<string>"
]
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Design
The design packet: everything an agent needs to SEE a recipe or assembly, content-addressed (J12.c)
One bundle per recipe or assembly: the canonical views (annotated, one shared scale, keep-in / keep-out volumes and datums from the G4 goal drawn as overlays, the faces the last edit touched painted from before) and their contact sheet, the dimensioned drawing sheet with derived dimensions (composed through POST /v1/cad.sheet or /v1/asm.sheet with auto_dims, rasterized as PNG), an exploded view and the BOM for an assembly, exact mass properties. Every image is a pure function of the request and is stored as a blob (/v1/blobs/{id}); the manifest’s hash is packet_key. inline: true adds a data URL per image for a model that reads pictures. Images stay on the PROPOSAL side of the design loop — the goal’s satisfaction is still the engine’s.
POST
/
v1
/
design.packet
The design packet: everything an agent needs to SEE a recipe or assembly, content-addressed (J12.c)
curl --request POST \
--url https://api.eddy.engineer/v1/design.packet \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assembly": {},
"before": {},
"contact_tile": 123,
"cutaways": false,
"density": 123,
"explode": 1.6,
"goal": {},
"inline": false,
"name": "<string>",
"overlays": [
{
"at": [
123
],
"color": [
123
],
"label": "<string>",
"max": [
123
],
"min": [
123
]
}
],
"px_per_mm": 3,
"recipe": {},
"sections": [
{
"axis": "<string>",
"pos": 123
}
],
"segments": 32,
"sheet": true,
"sheet_size": "<string>",
"tile": 512,
"views": [
"<string>"
]
}
'import requests
url = "https://api.eddy.engineer/v1/design.packet"
payload = {
"assembly": {},
"before": {},
"contact_tile": 123,
"cutaways": False,
"density": 123,
"explode": 1.6,
"goal": {},
"inline": False,
"name": "<string>",
"overlays": [
{
"at": [123],
"color": [123],
"label": "<string>",
"max": [123],
"min": [123]
}
],
"px_per_mm": 3,
"recipe": {},
"sections": [
{
"axis": "<string>",
"pos": 123
}
],
"segments": 32,
"sheet": True,
"sheet_size": "<string>",
"tile": 512,
"views": ["<string>"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assembly: {},
before: {},
contact_tile: 123,
cutaways: false,
density: 123,
explode: 1.6,
goal: {},
inline: false,
name: '<string>',
overlays: [{at: [123], color: [123], label: '<string>', max: [123], min: [123]}],
px_per_mm: 3,
recipe: {},
sections: [{axis: '<string>', pos: 123}],
segments: 32,
sheet: true,
sheet_size: '<string>',
tile: 512,
views: ['<string>']
})
};
fetch('https://api.eddy.engineer/v1/design.packet', 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/design.packet",
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([
'assembly' => [
],
'before' => [
],
'contact_tile' => 123,
'cutaways' => false,
'density' => 123,
'explode' => 1.6,
'goal' => [
],
'inline' => false,
'name' => '<string>',
'overlays' => [
[
'at' => [
123
],
'color' => [
123
],
'label' => '<string>',
'max' => [
123
],
'min' => [
123
]
]
],
'px_per_mm' => 3,
'recipe' => [
],
'sections' => [
[
'axis' => '<string>',
'pos' => 123
]
],
'segments' => 32,
'sheet' => true,
'sheet_size' => '<string>',
'tile' => 512,
'views' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/design.packet"
payload := strings.NewReader("{\n \"assembly\": {},\n \"before\": {},\n \"contact_tile\": 123,\n \"cutaways\": false,\n \"density\": 123,\n \"explode\": 1.6,\n \"goal\": {},\n \"inline\": false,\n \"name\": \"<string>\",\n \"overlays\": [\n {\n \"at\": [\n 123\n ],\n \"color\": [\n 123\n ],\n \"label\": \"<string>\",\n \"max\": [\n 123\n ],\n \"min\": [\n 123\n ]\n }\n ],\n \"px_per_mm\": 3,\n \"recipe\": {},\n \"sections\": [\n {\n \"axis\": \"<string>\",\n \"pos\": 123\n }\n ],\n \"segments\": 32,\n \"sheet\": true,\n \"sheet_size\": \"<string>\",\n \"tile\": 512,\n \"views\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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/design.packet")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assembly\": {},\n \"before\": {},\n \"contact_tile\": 123,\n \"cutaways\": false,\n \"density\": 123,\n \"explode\": 1.6,\n \"goal\": {},\n \"inline\": false,\n \"name\": \"<string>\",\n \"overlays\": [\n {\n \"at\": [\n 123\n ],\n \"color\": [\n 123\n ],\n \"label\": \"<string>\",\n \"max\": [\n 123\n ],\n \"min\": [\n 123\n ]\n }\n ],\n \"px_per_mm\": 3,\n \"recipe\": {},\n \"sections\": [\n {\n \"axis\": \"<string>\",\n \"pos\": 123\n }\n ],\n \"segments\": 32,\n \"sheet\": true,\n \"sheet_size\": \"<string>\",\n \"tile\": 512,\n \"views\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/design.packet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assembly\": {},\n \"before\": {},\n \"contact_tile\": 123,\n \"cutaways\": false,\n \"density\": 123,\n \"explode\": 1.6,\n \"goal\": {},\n \"inline\": false,\n \"name\": \"<string>\",\n \"overlays\": [\n {\n \"at\": [\n 123\n ],\n \"color\": [\n 123\n ],\n \"label\": \"<string>\",\n \"max\": [\n 123\n ],\n \"min\": [\n 123\n ]\n }\n ],\n \"px_per_mm\": 3,\n \"recipe\": {},\n \"sections\": [\n {\n \"axis\": \"<string>\",\n \"pos\": 123\n }\n ],\n \"segments\": 32,\n \"sheet\": true,\n \"sheet_size\": \"<string>\",\n \"tile\": 512,\n \"views\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"blob_uri": "<string>",
"bom": [
{}
],
"changed_faces": [
123
],
"drawing": {},
"images": [
{
"blob_id": "<string>",
"blob_uri": "<string>",
"bytes": 123,
"data_url": "<string>",
"height": 123,
"kind": "contact",
"media_type": "<string>",
"name": "<string>",
"view": "<string>",
"width": 123
}
],
"mass_properties": {},
"overlays": {},
"packet_key": "<string>",
"recipe_hash": "<string>",
"views": [
"<string>"
]
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
application/json