curl --request POST \
--url https://api.eddy.engineer/v1/cad.export \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"recipe": {},
"name": "superstring",
"segments": 32,
"units": "mm"
}
'import requests
url = "https://api.eddy.engineer/v1/cad.export"
payload = {
"recipe": {},
"name": "superstring",
"segments": 32,
"units": "mm"
}
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({recipe: {}, name: 'superstring', segments: 32, units: 'mm'})
};
fetch('https://api.eddy.engineer/v1/cad.export', 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/cad.export",
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([
'recipe' => [
],
'name' => 'superstring',
'segments' => 32,
'units' => 'mm'
]),
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/cad.export"
payload := strings.NewReader("{\n \"recipe\": {},\n \"name\": \"superstring\",\n \"segments\": 32,\n \"units\": \"mm\"\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/cad.export")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"recipe\": {},\n \"name\": \"superstring\",\n \"segments\": 32,\n \"units\": \"mm\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/cad.export")
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 \"recipe\": {},\n \"name\": \"superstring\",\n \"segments\": 32,\n \"units\": \"mm\"\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Export the rebuilt recipe solid as STL / 3MF / STEP / USD BrepArray (C track C10, C25)
Rebuilds the recipe and exports its solid: binary STL, a 3MF package (minimal OPC zip), faceted STEP (step: FACETED_BREP over welded triangle poly-loops) or analytic STEP (step_analytic, C10.1: ADVANCED_FACEs over true PLANE / CYLINDRICAL_SURFACE geometry inside that envelope, the faceted writer otherwise — the response header x-superstring-export-fallback names why when it fell back). Every writer declares MILLIMETRES; units says what the recipe’s numbers mean and the geometry is scaled to mm before writing (cm ×10, m ×1000, in ×25.4). Byte-deterministic: an unchanged design exports to identical bytes. Returns the binary body with a download filename. usd_brep (C25) writes the EXACT B-rep as NVIDIA’s omniSolid BrepArray (OpenUSD text, model/vnd.usda, metersPerUnit 0.001): planes, cylinders, cones, spheres, tori and NURBS faces with every edge curve a NURBS, validated by NVIDIA’s usd-validation and read back by SMLib (usd-brep 1.0.0) to the closed-form volume; traced crossing curves, oblique fillet blends and multi-shell bodies refuse typed (HTTP 400).
curl --request POST \
--url https://api.eddy.engineer/v1/cad.export \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"recipe": {},
"name": "superstring",
"segments": 32,
"units": "mm"
}
'import requests
url = "https://api.eddy.engineer/v1/cad.export"
payload = {
"recipe": {},
"name": "superstring",
"segments": 32,
"units": "mm"
}
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({recipe: {}, name: 'superstring', segments: 32, units: 'mm'})
};
fetch('https://api.eddy.engineer/v1/cad.export', 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/cad.export",
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([
'recipe' => [
],
'name' => 'superstring',
'segments' => 32,
'units' => 'mm'
]),
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/cad.export"
payload := strings.NewReader("{\n \"recipe\": {},\n \"name\": \"superstring\",\n \"segments\": 32,\n \"units\": \"mm\"\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/cad.export")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"recipe\": {},\n \"name\": \"superstring\",\n \"segments\": 32,\n \"units\": \"mm\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/cad.export")
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 \"recipe\": {},\n \"name\": \"superstring\",\n \"segments\": 32,\n \"units\": \"mm\"\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
Response
The exported bytes (model/stl, model/3mf, or application/step) with a content-disposition filename; x-superstring-export-fallback names why a step_analytic export wrote facets